Saturday, April 23, 2016

Unknown command: 'syncdb' in Python | Django

If you try to use python syncdb in latest version of Django, it throws the following error.

Unknown command: 'syncdb'
Type ' help' for usage.

You won't find any syncdb command in help too. This is because syncdb command is deprecated in Django 1.7.

Use  python migrate instead.

If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

No comments:
Write comments