Commits

Carl Meyer committed aa48d7a

Update test_project to DATABASES setting.

Comments (0)

Files changed (2)

test_project/settings.py

 
 SITE_ID = 1
 
-DATABASE_ENGINE = 'sqlite3'
-DATABASE_NAME = os.path.join(BASE, 'adminfiles-test.db')
+DATABASES = {
+    "default": {
+        "ENGINE": 'django.db.backends.sqlite3',
+        "NAME":os.path.join(BASE, 'adminfiles-test.db'),
+    }
+}
 
 MEDIA_ROOT = os.path.join(BASE, 'media')
 MEDIA_URL = '/media/'

test_project/urls.py

 admin.autodiscover()
 
 urlpatterns = patterns('',
-    (r'^admin/', include(admin.site.urls)),
+    (r'', include(admin.site.urls)),
     (r'^adminfiles/', include('adminfiles.urls')),
 )