From 08574a4a3b3bd903ce5d3bd78f545e4ace04c2ef Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Wed, 8 Jun 2011 11:23:39 +0200 Subject: [PATCH] Readded admin --- pastebin/conf/settings.py | 1 + pastebin/conf/urls.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pastebin/conf/settings.py b/pastebin/conf/settings.py index 1ef2e63..e38b2d1 100644 --- a/pastebin/conf/settings.py +++ b/pastebin/conf/settings.py @@ -97,6 +97,7 @@ INSTALLED_APPS = ( 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.staticfiles', + 'django.contrib.admin', 'mptt', 'pastebin', 'pastebin.apps.dpaste', diff --git a/pastebin/conf/urls.py b/pastebin/conf/urls.py index 311d5ad..fb078d0 100644 --- a/pastebin/conf/urls.py +++ b/pastebin/conf/urls.py @@ -13,6 +13,8 @@ urlpatterns = patterns('', # Static url(r'^about/$', 'django.views.generic.simple.direct_to_template', {'template': 'about.html'}, name='about'), + url(r'^admin/', include(admin.site.urls)), + # API url(r'^api/(?P[^/]+)/$', snippet_resource), url(r'^api/$', snippet_resource),