Forums

Errors from $python ./manage.py syncdb, unknown command synced?

Hi,

I am following the tutorial Creating a new Django project on PythonAnywhere, but for the command below, from my console, got the following error:

*$ python ./manage.py syncdb

Unknown command: 'synced'

Type 'manage.py help' for usage.*

I noticed in the late part of the tutorial, there is one section for Setup the database in settings.py, and synced

Is the error caused because I have not setup my database properly? Here is the DB Section from my settings.py:

# Database # https://docs.djangoproject.com/en/1.10/ref/settings/#databases

DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } }

Please help

Thanks

Looks like you mistyped syncdb as synced

sorry, it was caused during my posting by spelling correction. see below for the error message:

**(django17) 19:12 ~/VideoTest $ python ./manage.py syncdb

Unknown command: 'syncdb'

Type 'manage.py help' for usage**.

thanks

are you using django 1.10 or django 1.7? newer versions of django don't have the syncdb command anymore (you just directly migrate)

I am using Django 1.10, glad to know that I don't need to use the syncdb anymore. Since I just follow the tutorial, do I need to migrate?

Thanks

If you're following a tutorial and you're getting confused by missing commands, the first thing you need to do is make sure that the tutorial that you're using is for the version of Django that you're running.

I see, just found the tutorial was for django 1.3, very old one.

Thanks