[Fixed]-Django 1.9 sqlflush ImproperlyConfigured error

1👍

You didn’t tell django-admin what project’s DB you want to flush. There are a few options:

  • Use python manage.py sqlflush instead.
  • Use django-admin sqlflush --settings=mysite.settings where mysite.settings is your settings module.
  • Set the DJANGO_SETTINGS_MODULE environment variable in your operating system to mysite.settings where mysite.settings is your settings module. Then you can use django-admin sqlflush.
👤geckon

Leave a comment