django – Unknown command syncdb running python manage.py syncdb

django – 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

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

django – Unknown command syncdb running python manage.py syncdb

$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.

Leave a Reply

Your email address will not be published. Required fields are marked *