Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More installation streamlining: Added default urlconfs, for both main…

… and admin, to project_template. Changed ROOT_URLCONF in default main and admin settings to point at their respective default urlconfs

git-svn-id: http://code.djangoproject.com/svn/django/trunk@124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a22f823e0034bf607b841bd704cfd4d2cc6621a1 1 parent 820e12d
@adrianholovaty adrianholovaty authored
View
2  django/conf/project_template/settings/admin.py
@@ -5,7 +5,7 @@
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates".
)
-ROOT_URLCONF = 'django.conf.urls.admin'
+ROOT_URLCONF = '{{ project_name }}.settings.urls.admin'
MIDDLEWARE_CLASSES = (
'django.middleware.admin.AdminUserRequired',
'django.middleware.common.CommonMiddleware',
View
2  django/conf/project_template/settings/main.py
@@ -26,6 +26,8 @@
# Example: "http://media.lawrence.com"
MEDIA_URL = ''
+ROOT_URLCONF = '{{ project_name }}.settings.urls.main'
+
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates".
)
View
0  django/conf/project_template/settings/urls/__init__.py
No changes.
View
5 django/conf/project_template/settings/urls/admin.py
@@ -0,0 +1,5 @@
+from django.conf.urls.defaults import *
+
+urlpatterns = patterns('',
+ (r'^admin/', include('django.conf.urls.admin')),
+)
View
6 django/conf/project_template/settings/urls/main.py
@@ -0,0 +1,6 @@
+from django.conf.urls.defaults import *
+
+urlpatterns = patterns('',
+ # Example:
+ # (r'^{{ project_name }}/', include('{{ project_name }}.apps.foo.urls.foo')),
+)
Please sign in to comment.
Something went wrong with that request. Please try again.