Skip to content

Perform a super-reset of the application

When working to set up the application (local or in deployment), you may want to keep the following commands handy.

Reset from server

A good one-line command to have handy is the following:

1
$ python manage.py build && python manage.py ingest --reset --force

Note that it will replace everything in the database with the live data from GitHub.

Full reset

This is another super-reset command:

1
$ python manage.py build && find . -path "*/migrations/*.py" -not -name "__init__.py" -delete && find . -path "*/migrations/*.pyc"  -delete && rm db.sqlite3 && python manage.py makemigrations && python manage.py migrate && python manage.py ingest