"Unknown command syncdb" running "python manage.py syncdb"
If you look at the release notes for django 1.9
, syncdb
command is removed.
Please use migrate
instead. Moving forward, the migration commands would be as documented here
Please note that the django-1.9 release is not stable as of today.
Edit: Django 1.9 is stable now
In Django 1.9 onwards syncdb
command is removed. So instead of use that one, you can use migrate
command,eg: python manage.py migrate
.Then you can run your server by python manage.py runserver
command.
the new django 1.9 has removed "syncdb", run "python manage.py migrate", if you are trying to create a super user, run "python manage.py createsuperuser"
$python manage.py syncdb
is deprecated and not supported now.
So instead of this follow below instructions..
Whatever model you have created: First run:
$python manage.py makemigrations
After running this command you model will be reflected in a migration.
Then you have to run:
$python manage.py migrate
Then run server:
$python manage.py runserver
Now, your project will run perfectly.