Skip to content

Instantly share code, notes, and snippets.

@minism
Created February 12, 2013 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minism/4773163 to your computer and use it in GitHub Desktop.
Save minism/4773163 to your computer and use it in GitHub Desktop.
Truncate autopopulated django tables to prepare loaddata
SET FOREIGN_KEY_CHECKS=0;
truncate table `auth_user_user_permissions`;
truncate table `auth_permission`;
truncate table `django_content_type`;
SET FOREIGN_KEY_CHECKS=1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment