Py学习  »  问与答

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

Mason_____-weibo • 8 年前 • 3182 次点击  

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
 
3182 次点击  
文章 [ 2 ]  |  最新文章 8 年前
E胖太阳
Reply   •   1 楼
E胖太阳    8 年前

Email address: ddd Error: Enter a valid email address. Email address: Operation cancelled.

amaozhao
Reply   •   2 楼
amaozhao    8 年前

看提示啊! 说你输入的email地址不合法.