Commits

Joshua Ginsberg committed 8744863

Include proper admin.py and update test project accordingly. Fixes #117

  • Participants
  • Parent commits d34db3f

Comments (0)

Files changed (3)

+from django.contrib import admin
+from piston.models import Nonce, Token, Consumer
+
+admin.site.register(Nonce)
+admin.site.register(Token)
+admin.site.register(Consumer)

tests/test_project/settings.py

     'django.contrib.contenttypes', 
     'django.contrib.sessions', 
     'django.contrib.sites',
+    'django.contrib.admin',
     'piston',
     'test_project.apps.testapp',
 )

tests/test_project/urls.py

 from django.conf.urls.defaults import *
+from django.contrib import admin
+admin.autodiscover()
 
-
-urlpatterns = patterns('',
-    url(r'api/', include('test_project.apps.testapp.urls'))
+urlpatterns = patterns(
+    '',
+    url(r'api/', include('test_project.apps.testapp.urls')),
+    url(r'^admin/', include(admin.site.urls)),
 )