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),