Skip to content

Instantly share code, notes, and snippets.

@Nearhan
Last active December 11, 2015 16:19
Show Gist options
  • Save Nearhan/4627127 to your computer and use it in GitHub Desktop.
Save Nearhan/4627127 to your computer and use it in GitHub Desktop.
Drops and Cascades all tables in Django
python manage.py sqlclear myapp auth sites sessions contenttypes | sed 's/";/" CASCADE;/' | python manage.py dbshell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment