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
wheremysite.settings
is your settings module. - Set the
DJANGO_SETTINGS_MODULE
environment variable in your operating system tomysite.settings
wheremysite.settings
is your settings module. Then you can usedjango-admin sqlflush
.
Source:stackexchange.com