Почему я не получаю “Найденных приспособлений”. когда я запускаю “Python manage.py syncdb” команда?

Я выполняю это:

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.
8
задан Pablo Santa Cruz 26 February 2011 в 11:23
поделиться

1 ответ

Если вы хотите, чтобы ваши приборы были установлены во время syncdb, я считаю, что вам нужно поместить их в каталог / fixtures / и вызвать файл initial_data.

Также проверьте это:

http://docs.djangoproject.com/en/dev/howto/initial-data/#automatically-loading-initial-data-fixtures

10
ответ дан 5 December 2019 в 17:33
поделиться
Другие вопросы по тегам:

Похожие вопросы: