2010-07-25 26 views
8

corro esto:Por qué me aparece "No se encontraron accesorios". cuando ejecuto el comando "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: [email protected] 
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. 

Respuesta

10

Si usted quiere tener sus accesorios a ser instalados durante syncdb Creo que necesita para ponerlos en <app>/fixtures/ directorio y llamar al archivo initial_data.<ext>

Comprobar esto también:

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

+1

Además, PyYAML debe instalarse si los dispositivos están en formato YAML, de lo contrario, aparecerá el mensaje "No se encontraron dispositivos". https://docs.djangoproject.com/en/dev/topics/serialization/#serialization-formats – monofonik

+0

Puede ver lo que está disponible al usar la función 'get_public_serializer_formats()' de 'django.core.serializers'. – deterb

Cuestiones relacionadas