It seems like it would be a lot easier to use a normal sqlite3
database and just delete it after each run.
Also, if you have test data you'd like to reload regularly, I
recommend using a regular database, creating your test data in the
admin, then using ./manage.py dumpdata to create a fixture. Then, you
could use that fixture for your development and your unit tests.
Shawn
Django version 1.1.1, using settings 'mysite.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Creating table django_admin_log
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table books_publisher
Creating table books_author
Creating table books_book
the only problem is that when I make the first request it blocks for
console input with the following message :
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)
If I create a user with the same name created in the startup
middleware I get unique constraint database violation, if I choose no
everything proceeds smoothly and I can log on with my stub user. I
don't want the first request blocking everytime to ask for a new user,
can I remove that prompt?
Thanks.
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>
http://docs.djangoproject.com/en/1.2/ref/django-admin/#syncdb
Shawn