6. deal with syncdb in django

/btms$ python manage.py syncdb
Creating tables ...
Creating table django_admin_log
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_content_type
Creating table django_session

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'erp'): erp
Email address: erp@gmail.com
Password:
Password (again):
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)



after typing these line ie.,
$python manage.py syncdb

when u do these that is syncdb (sycronize the database) then you will get two things.
ie., 

1.database will created

ie., db.sqlite3







2.admin superuser will be created.....for login of admin window





 















No comments:

Post a Comment