Make artists and groups available in the admin interface.
authorDavid ‘Bombe’ Roden <bombe@demoscenemusic.org>
Wed, 8 May 2013 20:40:40 +0000 (22:40 +0200)
committerDavid ‘Bombe’ Roden <bombe@demoscenemusic.org>
Wed, 8 May 2013 20:40:40 +0000 (22:40 +0200)
data/admin.py [new file with mode: 0644]
urls.py

diff --git a/data/admin.py b/data/admin.py
new file mode 100644 (file)
index 0000000..af370b9
--- /dev/null
@@ -0,0 +1,5 @@
+from DemosceneMusic.data.models import Artist, Group
+from django.contrib import admin
+
+admin.site.register(Artist)
+admin.site.register(Group)
diff --git a/urls.py b/urls.py
index f7714be..b7b85ab 100644 (file)
--- a/urls.py
+++ b/urls.py
@@ -1,8 +1,7 @@
 from django.conf.urls.defaults import patterns, include, url
 
-# Uncomment the next two lines to enable the admin:
-# from django.contrib import admin
-# admin.autodiscover()
+from django.contrib import admin
+admin.autodiscover()
 
 urlpatterns = patterns('',
     # Examples:
@@ -12,6 +11,5 @@ urlpatterns = patterns('',
     # Uncomment the admin/doc line below to enable admin documentation:
     # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
 
-    # Uncomment the next line to enable the admin:
-    # url(r'^admin/', include(admin.site.urls)),
+    url(r'^admin/', include(admin.site.urls)),
 )