作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
python manage.py syncdb Creating table auth_permission Creating table auth_group_pe-6ren">
我运行这个:
C:\mysite>python manage.py syncdb
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
You just installed Django's auth system, which means you don't have any superuse
rs defined.
Would you like to create one now? (yes/no): yes
Username: balu
E-mail address: vabasu@gmail.com
Password:
Password (again):
Superuser created successfully.
Installing index for auth.Permission model
Installing index for auth.Group_permissions model
Installing index for auth.User_user_permissions model
Installing index for auth.User_groups model
Installing index for auth.Message model
No fixtures found.
最佳答案
如果你想在syncdb期间安装你的装置,我相信你需要将它们放入 <app>/fixtures/
目录并调用文件 initial_data.<ext>
另请检查:
http://docs.djangoproject.com/en/dev/howto/initial-data/#automatically-loading-initial-data-fixtures
关于django - 为什么当我运行 "No fixtures found."命令时得到 "python manage.py syncdb"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3328708/
我是一名优秀的程序员,十分优秀!