Tuesday, 18 October 2016

Unknown command: 'syncdb'

Whenever I execute this command on terminal "python manage.py syncdb" why I got this error:




Solution:

You may notice that when you run this command "python manage.py help" in terminal there is no option for "syncdb" as shown in screen shot.


Because "syncdb" command is deprecated in django 1.7. Use python manage.py migrate for that purpose.

 
 

No comments:

Post a Comment