Skip to content

Instantly share code, notes, and snippets.

View VelociCopter's full-sized avatar

August Zinsser VelociCopter

View GitHub Profile
@VelociCopter
VelociCopter / Nuke DBs
Last active March 27, 2018 15:43
Django Dev Notes
# To clear all DB entries and schema in a Django project backed with postgres/psql...
# -- OPTION 1: MANUAL ––
# Remove DB entries
python manage.py flush
# Remove all of the migration files
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc" -delete