Managing subjects in a human research context.
Project description
huscy.subjects
Requirements
- Python 3.6+
- A supported version of Django
Tox tests on Django versions 2.1, 2.2, 3.0 and 3.1.
Installation
To install husy.subjects
simply run:
pip install huscy.subjects
Configuration
First of all, the huscy.subjects
application has to be hooked into the project.
- Add
huscy.subjects
and further required apps toINSTALLED_APPS
in settings module:
INSTALLED_APPS = (
...
'django_countries',
'phonenumber_field',
'rest_framework',
'rest_framework_nested',
'huscy.subjects',
)
- Create
huscy.subjects
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 database tables:
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.subjects-1.0.2.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for huscy.subjects-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dc4bd6277d424a2ddf45df0ea20c604ad7dd5675391e3602cdef27124716ce3 |
|
MD5 | ba3d7ee5db443353d09d28eeb75bdb50 |
|
BLAKE2b-256 | 571535c98ba2b21899fd1fc4f65fc7a836cf294c857b3f4578ea7b24d00c65d8 |