From 38e00104010bc14eb7c5559e4b98588c42f024c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 8 May 2013 22:40:40 +0200 Subject: [PATCH] Make artists and groups available in the admin interface. --- data/admin.py | 5 +++++ urls.py | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 data/admin.py diff --git a/data/admin.py b/data/admin.py new file mode 100644 index 0000000..af370b9 --- /dev/null +++ b/data/admin.py @@ -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 --- 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)), ) -- 2.7.4