社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  问与答

django1.8.4同步数据库无法生成列表 不知道哪里出错了 求教

Mason_____-weibo • 9 年前 • 3773 次点击  

F:\python2>django-admin.py startproject learn_models

F:\python2>cd learn_models

F:\python2\learn_models>django-admin.py startapp people

F:\python2\learn_models>python manage.py makemigrations Migrations for 'people': 0001_initial.py: - Create model Person

F:\python2\learn_models>python manage.py migrate Operations to perform: Synchronize unmigrated apps: messages, staticfiles Apply all migrations: sessions, contenttypes, admin, auth, people 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 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 people.0001_initial... OK Applying sessions.0001_initial... OK

F:\python2\learn_models>python manage.py syncdb C:\Python34\lib\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: contenttypes, people, sessions, auth, admin Synchronizing apps without migrations: Creating tables... Running deferred SQL... Installing custom SQL... Running migrations: No migrations to apply.

You have installed Django's auth system, and don't have any superusers defined. Would you like to create one now? (yes/no): yes Username (leave blank to use 'administrator'): people Email address: ddd Error: Enter a valid email address. Email address: Operation cancelled.

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/1275
 
3773 次点击  
文章 [ 2 ]  |  最新文章 9 年前