1. Tuk Bredsdorff
  2. django-adminfiles

Commits

Carl Meyer  committed aa48d7a

Update test_project to DATABASES setting.

  • Participants
  • Parent commits 19c6879
  • Branches default

Comments (0)

Files changed (2)

File test_project/settings.py

View file
  • Ignore whitespace
 
 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/'

File test_project/urls.py

View file
  • Ignore whitespace
 admin.autodiscover()
 
 urlpatterns = patterns('',
-    (r'^admin/', include(admin.site.urls)),
+    (r'', include(admin.site.urls)),
     (r'^adminfiles/', include('adminfiles.urls')),
 )