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.projectsinto yourINSTALLED_APPSat 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.projectsdatabase 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file huscy.projects-0.1.2a12.tar.gz.
File metadata
- Download URL: huscy.projects-0.1.2a12.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18d981b1b2d762338b7cd55add04a7443cf73b06352e50be1880287841ce5283
|
|
| MD5 |
286ca77a42f7b87ae4d175bb1f979e62
|
|
| BLAKE2b-256 |
7fcc51d3a525d0145d423926d8da6ff96ae42c96c90ed3b18bc22736cb30c03f
|
File details
Details for the file huscy.projects-0.1.2a12-py3-none-any.whl.
File metadata
- Download URL: huscy.projects-0.1.2a12-py3-none-any.whl
- Upload date:
- Size: 53.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df52136af2a1fa293e385a729e283cfdc489069a5d21bb2df0d5f8165b71d61e
|
|
| MD5 |
282a9ca72d7a802297ac6952b7b0cf17
|
|
| BLAKE2b-256 |
ceeedb4eb6032c5420ed10cd0260fec5cda1a5765800aee0862e1f3f766e12d1
|