mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Fixed a regression in2f16ff5a6c. Thanks Tim Graham for the review. Backport of625b8e9295from master
		
			
				
	
	
		
			15 lines
		
	
	
		
			396 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			396 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.conf.urls import include, url
 | |
| from django.contrib import admin
 | |
| 
 | |
| from . import views
 | |
| 
 | |
| backend_urls = ([
 | |
|     url(r'^something/$', views.XViewClass.as_view(), name='something'),
 | |
| ], 'backend')
 | |
| 
 | |
| urlpatterns = [
 | |
|     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
 | |
|     url(r'^admin/', admin.site.urls),
 | |
|     url(r'^api/backend/', include(backend_urls, namespace='backend')),
 | |
| ]
 |