Install sqlite3:
$ sudo apt-get install sqlite3
Make the database:
$ cd databases
$ sqlite3 db.sqlite3
sqlite> .exit
$ cd ..
Make migrations:
$ python manage.py makemigrations
Run migrations:
$ python manage.py migrate
Create a super user:
$ python manage.py createsuperuser
Populate database with default models:
$ python manage.py configure_dog
Running the django web server
Run the server
Run the django site:
$ source .venv/bin/activate
$ python3 manage.py runserver 0.0.0.0:8000
Go to 127.0.0.1:8000 to access the site
Documentation
Contributing
Documentation is written with [Sphinx](http://www.sphinx-doc.org/en/stable/).
The .rst files are located in the `sphinx` folder.
To open the documentation in your browser:
$ python manage.py open-docs
To build the documentation after changes:
$ python manage.py build-docs
Testing
Running tests locally
Run all tests:
$ driver=chrome REMOTE_USER=admin python manage.py --keepdb
Run specific tests:
$ driver=[driver] REMOTE_USER=admin python manage.py --keepdb testing.[test file].[test class].[test]