summaryrefslogtreecommitdiff
path: root/django/conf/project_template/project_name
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-01-18 19:34:54 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-01-18 23:06:00 +0100
commit10e0cfc0e4e77b85e8261c908baf1c4814ded3f8 (patch)
tree26c894168f5875b9f7a2ace228a1b937698cc36d /django/conf/project_template/project_name
parent74d8fdcfa6a49cb30210c690dff08fc62b642e2a (diff)
Fixed #21712 -- Moved autodiscover() to AdminConfig.ready().
Thanks Marc Tamlyn for the initial version of the patch.
Diffstat (limited to 'django/conf/project_template/project_name')
-rw-r--r--django/conf/project_template/project_name/settings.py2
-rw-r--r--django/conf/project_template/project_name/urls.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/django/conf/project_template/project_name/settings.py b/django/conf/project_template/project_name/settings.py
index efe8091e81..198a3e0d92 100644
--- a/django/conf/project_template/project_name/settings.py
+++ b/django/conf/project_template/project_name/settings.py
@@ -30,7 +30,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = (
- 'django.contrib.admin',
+ 'django.contrib.admin.apps.AdminConfig',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
diff --git a/django/conf/project_template/project_name/urls.py b/django/conf/project_template/project_name/urls.py
index f03a29478d..d85c6f8e28 100644
--- a/django/conf/project_template/project_name/urls.py
+++ b/django/conf/project_template/project_name/urls.py
@@ -1,7 +1,5 @@
from django.conf.urls import patterns, include, url
-
from django.contrib import admin
-admin.autodiscover()
urlpatterns = patterns('',
# Examples: