Write about your project in this area.
Create and activate a virtualenv:
virtualenv venv
source venv/bin/activate
Install dependencies:
pip install -r requirements.txt
NOTE: After installing dependencies, pip-tools is also installed. You can now use it to manage package dependencies of your project.
'''
Add a new package to requirements.in and run the following command to auto-update requirements.txt file
'''
pip-compile requirements.in
'''
Run the following command to sync your virtualenv
'''
pip-sync
For more details, https://github.com/nvie/pip-tools
Migrate, create a superuser, and run the server:
python manage.py migrate
python manage.py makemigrations tasklist
python manage.py createsuperuser
python manage.py runserver
Edit the environment variables in '.env.template' file and then RENAME the file to '.env'
NOTE: This file has already been added to .gitignore, hence it will not be pushed to your repository. While deployment or using CI tools like travis or circle-ci, you have to take care of setting the environment variables seperately.
This project uses dj-database-url library to setup databases. Use the DATABASE_URL environment variable to configure your Django application. set this environment variable with the complete database url. For more info: https://github.com/kennethreitz/dj-database-url
This project uses dj-email-url library to setup email servers. Provide your smtp server url in the EMAIL_URL environment variable. For more info: https://github.com/migonzalvar/dj-email-url
There's a 'static' directory configured already inside the project that is to be used to keep satic JavaScript, CSS, etc files to be used in templates.
Some test cases have been included in the authentication/test directory. Use the following command to run test cases in all apps.
python manage.py test