Execute python manage.py syncdb, quote unknown command: ' syncdb '

Source: Internet
Author: User
Tags sessions

D:\python27\lib\site-packages\django\bin\t_project>python manage.py syncdb

Unknown command: ' syncdb '

Type ' manage.py help ' for usage.


Solution:

Use migrate instead of SYSCDB in Django 1.9 and future versions

d:\python27\lib\site-packages\django\bin\t_project> python manage.py migrate

Operations to perform:

Apply all migrations:admin, auth, contenttypes, Sessions

Running Migrations:

Applying contenttypes.0001_initial ... Ok

Applying auth.0001_initial ... Ok

Applying admin.0001_initial ... Ok

Applying Admin.0002_logentry_remove_auto_add ... Ok

Applying Contenttypes.0002_remove_content_type_name ... Ok

Applying auth.0002_alter_permission_name_max_length ... Ok

Applying auth.0003_alter_user_email_max_length ... Ok

Applying auth.0004_alter_user_username_opts ... Ok

Applying Auth.0005_alter_user_last_login_null ... Ok

Applying auth.0006_require_contenttypes_0002 ... Ok

Applying auth.0007_alter_validators_add_error_messages ... Ok

Applying auth.0008_alter_user_username_max_length ... Ok

Applying sessions.0001_initial ... Ok



This article is from the "Multi-Surveyors" blog, please be sure to keep this source http://icestick8586.blog.51cto.com/9867871/1882838

Execute python manage.py syncdb, quote unknown command: ' syncdb '

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.