Skip to main content

Managing projects in a research context.

Project description

huscy.projects

PyPi Version PyPi Status PyPI Downloads PyPI License Python Versions Django Versions Coverage Status

Requirements

  • Python 3.6+
  • A supported version of Django

Tox tests on Django versions 2.2, 3.0 and 3.1.

Installation

To install husy.projects simply run:

pip install huscy.projects

Configuration

We need to hook huscy.projects into our project.

  1. Add huscy.projects into your INSTALLED_APPS at settings module:
INSTALLED_APPS = (
	...
	'guardian',
	'rest_framework',

	'huscy.projects',
)
  1. Add Django Guardian ObjectPermissionBackend to AUTHENTICATION_BACKENDS
AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'guardian.backends.ObjectPermissionBackend',
)
  1. Create huscy.projects database tables by running:
python manage.py migrate

Development

After checking out the repository you should activate any virtual environment. Install all development and test dependencies:

make install

Create migration files and database tables:

make makemigrations
make migrate

We assume you're having a running postgres database with a user huscy and a database also called huscy. You can easily create them by running

sudo -u postgres createuser -d huscy
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE huscy TO huscy;"
sudo -u postgres psql -c "ALTER USER huscy WITH PASSWORD '123';"
sudo -u postgres createdb huscy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

huscy.projects-0.2.1a17.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

huscy.projects-0.2.1a17-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file huscy.projects-0.2.1a17.tar.gz.

File metadata

  • Download URL: huscy.projects-0.2.1a17.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for huscy.projects-0.2.1a17.tar.gz
Algorithm Hash digest
SHA256 88bb053a1de2a8506e321c56668cc301e44be03ed1bd9e7653e2b384fe570d58
MD5 f64d1f81027a494c374b77924c4d70a6
BLAKE2b-256 f3e30baa694ce96cbd3c8b40e31b89da621b1215865105d77e117a8d8537561b

See more details on using hashes here.

File details

Details for the file huscy.projects-0.2.1a17-py3-none-any.whl.

File metadata

  • Download URL: huscy.projects-0.2.1a17-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for huscy.projects-0.2.1a17-py3-none-any.whl
Algorithm Hash digest
SHA256 09b0b43c1c58d864e12b48cb3f246e4736f9afd365a16ef962ed7b5b754034d9
MD5 0b1551ab044be6be1ed4f8b82609bb91
BLAKE2b-256 3c76568829eafb3a6db817bb97c82293a4eb2ddb9254b2be64d24560732b1da2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page