What should I use instead of syncdb in Django 1.9?

后端 未结 4 963
长情又很酷
长情又很酷 2020-12-01 01:56

Take a look at this:

$ pypy ./manage.py syncdb
/usr/lib64/pypy-2.4.0/site-packages/django/core/management/commands/syncdb.py:24: RemovedInDjango19Warning: Th         


        
4条回答
  •  旧时难觅i
    2020-12-01 02:23

    You should use the makemigrations and migrate commands that were introduced in django 1.7

    https://docs.djangoproject.com/en/1.7/topics/migrations/

提交回复
热议问题