No project description provided
Project description
huscy.projects
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.
- Add
huscy.projects
into yourINSTALLED_APPS
at 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',
)
- 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
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
huscy.projects-0.1.1a9.tar.gz
(19.4 kB
view hashes)
Built Distribution
Close
Hashes for huscy.projects-0.1.1a9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d79a3201c3e8f45c9bb33ec6115d931da00e29b46348304dbc9559facb3649d |
|
MD5 | 67f34d6d77ef4eb5929968e41933c197 |
|
BLAKE2b-256 | cf5c25da42d56ed6637c5eded825c77b991020a87659f1a68ab78bcacbce92b0 |