diff options
-rw-r--r-- | examples/djangoproject/djangoproject/settings.py | 2 | ||||
-rw-r--r-- | examples/djangoproject/djangoproject/urls.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/examples/djangoproject/djangoproject/settings.py b/examples/djangoproject/djangoproject/settings.py index 0361033..accec56 100644 --- a/examples/djangoproject/djangoproject/settings.py +++ b/examples/djangoproject/djangoproject/settings.py @@ -115,7 +115,7 @@ INSTALLED_APPS = ( 'django.contrib.staticfiles', 'sneak_peek_tag', # Uncomment the next line to enable the admin: - # 'django.contrib.admin', + 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', ) diff --git a/examples/djangoproject/djangoproject/urls.py b/examples/djangoproject/djangoproject/urls.py index 7c1817b..37cf2ee 100644 --- a/examples/djangoproject/djangoproject/urls.py +++ b/examples/djangoproject/djangoproject/urls.py @@ -1,7 +1,11 @@ from django.conf.urls import patterns, include, url from django.views.generic.base import TemplateView +from django.contrib import admin +admin.autodiscover() + urlpatterns = patterns('', url(r'^$', TemplateView.as_view(template_name='index.html'), name='index'), + url(r'^admin/', include(admin.site.urls)), ) |