yekabathula-macbookair2:roster yekabathula$ python manage.py migrate
Operations to perform:
Synchronize unmigrated apps: staticfiles, messages
Apply all migrations: admin, contenttypes, api, auth, sessions
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
Rendering model states... DONE
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying api.0001_initial... 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 sessions.0001_initial... OK
yekabathula-macbookair2:roster yekabathula$ python manage.py syncdb
/Library/Python/2.7/site-packages/django/core/management/commands/syncdb.py:24: RemovedInDjango19Warning: The syncdb command will be removed in Django 1.9
warnings.warn("The syncdb command will be removed in Django 1.9", RemovedInDjango19Warning)
Operations to perform:
Synchronize unmigrated apps: staticfiles, messages
Apply all migrations: admin, contenttypes, api, auth, sessions
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
No migrations to apply.
Sau khi thực hiện python manage.py di chuyển, bảng không được tạo trong cơ sở dữ liệu từ mô hình của tôi, bạn có thể tạo các bảng khác từ django_session v.v .. Có điều gì khác mà tôi cần để làm theo ở đây?Di chuyển Django 1.8 không tạo bảng
Bạn đã thực hiện 'makemigrations' trước khi thực hiện 'di chuyển'? – karthikr
Vâng, tôi đã làm. với 'makemigrations', nó có thể đóng tập tin di trú. Nhưng khi tôi làm 'di chuyển', nó không tạo ra các bảng. – YSK
Nếu bạn đang nâng cấp, hãy đảm bảo bạn đã xóa tất cả các tệp di chuyển về phía nam cũ khỏi thư mục di chuyển. – karthikr