mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -5,7 +5,7 @@ from main import * | ||||
| 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', | ||||
|   | ||||
| @@ -26,6 +26,8 @@ MEDIA_ROOT = '' | ||||
| # Example: "http://media.lawrence.com" | ||||
| MEDIA_URL = '' | ||||
|  | ||||
| ROOT_URLCONF = '{{ project_name }}.settings.urls.main' | ||||
|  | ||||
| TEMPLATE_DIRS = ( | ||||
|     # Put strings here, like "/home/html/django_templates". | ||||
| ) | ||||
|   | ||||
							
								
								
									
										5
									
								
								django/conf/project_template/settings/urls/admin.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								django/conf/project_template/settings/urls/admin.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| from django.conf.urls.defaults import * | ||||
|  | ||||
| urlpatterns = patterns('', | ||||
|     (r'^admin/', include('django.conf.urls.admin')), | ||||
| ) | ||||
							
								
								
									
										6
									
								
								django/conf/project_template/settings/urls/main.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								django/conf/project_template/settings/urls/main.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| from django.conf.urls.defaults import * | ||||
|  | ||||
| urlpatterns = patterns('', | ||||
|     # Example: | ||||
|     # (r'^{{ project_name }}/', include('{{ project_name }}.apps.foo.urls.foo')), | ||||
| ) | ||||
		Reference in New Issue
	
	Block a user