mirror of
https://github.com/django/django.git
synced 2024-11-18 15:34:16 +00:00
1e82094f1b
Made URL application namespaces be set in the included URLconf and instance namespaces in the call to include(). Deprecated other ways to set application and instance namespaces.
17 lines
618 B
Python
17 lines
618 B
Python
from django.conf.urls import url
|
|
|
|
from . import views
|
|
|
|
app_name = 'inc-app'
|
|
urlpatterns = [
|
|
url(r'^normal/$', views.empty_view, name='inc-normal-view'),
|
|
url(r'^normal/(?P<arg1>[0-9]+)/(?P<arg2>[0-9]+)/$', views.empty_view, name='inc-normal-view'),
|
|
|
|
url(r'^\+\\\$\*/$', views.empty_view, name='inc-special-view'),
|
|
|
|
url(r'^mixed_args/([0-9]+)/(?P<arg2>[0-9]+)/$', views.empty_view, name='inc-mixed-args'),
|
|
url(r'^no_kwargs/([0-9]+)/([0-9]+)/$', views.empty_view, name='inc-no-kwargs'),
|
|
|
|
url(r'^view_class/(?P<arg1>[0-9]+)/(?P<arg2>[0-9]+)/$', views.view_class_instance, name='inc-view-class'),
|
|
]
|