8👍
You need to mention the name of the specific app that comes with django, such as
python manage.py sql auth
python manage.py sql admin
I find it a bit clumsy that you can’t give fully-qualified names (such as django.contrib.auth), but using just the last part of the name seems to work fine.
2👍
This is no longer possible with django migrations (django>=1.7). The sql management command is no longer available.
Though it operates slightly differently, the sqlmigrate management command can be used to find the sql commands for individual migrations.
./manage.py sqlmigrate auth 0001
./manage.py sqlmigrate auth 0002
...
- [Django]-Django global name 'PageNotAnInteger' is not defined
- [Django]-How to stop server ran in Daemon mode in Django?
- [Django]-Initial form data from model – Django
- [Django]-Datetime field in a DjangoModelFactory breaks integrated tests (2.1)
Source:stackexchange.com