Middleware executes with each request, so it's probably not the best
place for such a thing.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to