Readded admin

This commit is contained in:
Martin Mahner 2011-06-08 11:23:39 +02:00
parent b25f26ebbb
commit 08574a4a3b
2 changed files with 3 additions and 0 deletions

View file

@ -97,6 +97,7 @@ INSTALLED_APPS = (
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.sites', 'django.contrib.sites',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'django.contrib.admin',
'mptt', 'mptt',
'pastebin', 'pastebin',
'pastebin.apps.dpaste', 'pastebin.apps.dpaste',

View file

@ -13,6 +13,8 @@ urlpatterns = patterns('',
# Static # Static
url(r'^about/$', 'django.views.generic.simple.direct_to_template', {'template': 'about.html'}, name='about'), url(r'^about/$', 'django.views.generic.simple.direct_to_template', {'template': 'about.html'}, name='about'),
url(r'^admin/', include(admin.site.urls)),
# API # API
url(r'^api/(?P<secret_id>[^/]+)/$', snippet_resource), url(r'^api/(?P<secret_id>[^/]+)/$', snippet_resource),
url(r'^api/$', snippet_resource), url(r'^api/$', snippet_resource),