mirror of
				https://github.com/django/django.git
				synced 2025-11-04 05:35:37 +00:00 
			
		
		
		
	Added urlpatterns variable in docs/topics/http/urls.txt.
This commit is contained in:
		
							parent
							
								
									7d1b69dbe7
								
							
						
					
					
						commit
						91e9be45ed
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -816,7 +816,9 @@ For example::
 | 
			
		|||
        url(r'^(?P<pk>\d+)/$', views.DetailView.as_view(), name='detail'),
 | 
			
		||||
    ], 'polls')
 | 
			
		||||
 | 
			
		||||
    urlpatterns = [
 | 
			
		||||
        url(r'^polls/', include(polls_patterns)),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
This will include the nominated URL patterns into the given application
 | 
			
		||||
namespace.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue