mirror of
				https://github.com/django/django.git
				synced 2025-10-30 00:56:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			387 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			387 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.contrib import admin
 | |
| from django.urls import include, path
 | |
| 
 | |
| from . import views
 | |
| 
 | |
| backend_urls = ([
 | |
|     path('something/', views.XViewClass.as_view(), name='something'),
 | |
| ], 'backend')
 | |
| 
 | |
| urlpatterns = [
 | |
|     path('admin/doc/', include('django.contrib.admindocs.urls')),
 | |
|     path('admin/', admin.site.urls),
 | |
|     path('api/backend/', include(backend_urls, namespace='backend')),
 | |
| ]
 |