Managing projects in a research context.
Project description
huscy.projects
Requirements
- Python 3.6+
- A supported version of Django
Tox tests on Django versions 2.2, 3.2 and 4.0.
Installation
To install husy.projects
simply run:
pip install huscy.projects
Add huscy.projects
and further required apps to INSTALLED_APPS
in your settings module:
INSTALLED_APPS = (
...
'guardian',
'rest_framework',
'huscy.projects',
)
Add Django Guardian ObjectPermissionBackend to AUTHENTICATION_BACKENDS
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
'guardian.backends.ObjectPermissionBackend',
)
Hook the urls from huscy.projects
into your urls.py:
urlpatterns = [
...
path('/api/', include('huscy.projects.urls')),
]
Create huscy.projects
database tables by running:
python manage.py migrate
Development
Install PostgreSQL and create a database user called huscy
and a database called huscy
.
sudo -u postgres createdb huscy
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';"
Checking out the repository start your virtual environment (if necessary).
Install all development and test dependencies:
make install
Create Database tables:
make migrate
Run tests to see if everything works fine:
make test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for huscy.projects-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7220f74bce2966e9c948f479c7b2c55eb8d5f5f2a51aeb43f116fe327ae5fae |
|
MD5 | 6a4a1d40a1171faad868e35b1cefb2d9 |
|
BLAKE2b-256 | a52a524b619f1cffaf704a5dcead99abfdc2648eac286e221a3448d2946933f3 |