This...

https://code.djangoproject.com/attachment/ticket/2879/django_live_server_1.0.2.diff

With changes to reflect the fact that the database settings layout has 
changed since 1.0, like so...

=================
         # Must do database stuff in this new thread if database in memory.
         from django.conf import settings

-        if ( settings.DATABASE_ENGINE == 'sqlite3' and 
-            (not settings.TEST_DATABASE_NAME 
-             or settings.TEST_DATABASE_NAME == ':memory:') ):
+        database = settings.DATABASES['default']
+
+        if ( database.get('ENGINE', None).split('.')[-1] == 'sqlite3' and
+            (not database.get('TEST_NAME', None)
+             or database.get('TEST_NAME') == ':memory:') ):
             from django.db import connection
             db_name = connection.creation.create_test_db(0)
             # Import the fixture data into the test database.
===================

If possible I'll try to find some time to:

1. Package this up into a usable form on PyPI
2. Update the ticket with a working patch, and perhaps try to push it along 
some.
(If you wanted to help make sure that it makes it into trunk that'd be 
great!)

  Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/5-5AtUJiq2kJ.
To post to this group, send email to django-users@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