Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored
2  django/conf/project_template/settings/admin.py
@@ -5,7 +5,7 @@
5 5
 TEMPLATE_DIRS = (
6 6
     # Put strings here, like "/home/html/django_templates".
7 7
 )
8  
-ROOT_URLCONF = 'django.conf.urls.admin'
  8
+ROOT_URLCONF = '{{ project_name }}.settings.urls.admin'
9 9
 MIDDLEWARE_CLASSES = (
10 10
     'django.middleware.admin.AdminUserRequired',
11 11
     'django.middleware.common.CommonMiddleware',
2  django/conf/project_template/settings/main.py
@@ -26,6 +26,8 @@
26 26
 # Example: "http://media.lawrence.com"
27 27
 MEDIA_URL = ''
28 28
 
  29
+ROOT_URLCONF = '{{ project_name }}.settings.urls.main'
  30
+
29 31
 TEMPLATE_DIRS = (
30 32
     # Put strings here, like "/home/html/django_templates".
31 33
 )
0  django/conf/project_template/settings/urls/__init__.py
No changes.
5  django/conf/project_template/settings/urls/admin.py
... ...
@@ -0,0 +1,5 @@
  1
+from django.conf.urls.defaults import *
  2
+
  3
+urlpatterns = patterns('',
  4
+    (r'^admin/', include('django.conf.urls.admin')),
  5
+)
6  django/conf/project_template/settings/urls/main.py
... ...
@@ -0,0 +1,6 @@
  1
+from django.conf.urls.defaults import *
  2
+
  3
+urlpatterns = patterns('',
  4
+    # Example:
  5
+    # (r'^{{ project_name }}/', include('{{ project_name }}.apps.foo.urls.foo')),
  6
+)

0 notes on commit a22f823

Please sign in to comment.
Something went wrong with that request. Please try again.