2014-04-01 20:46:34 -04:00
|
|
|
from django.conf.urls import include, url
|
2011-10-13 18:51:33 +00:00
|
|
|
|
2015-01-28 07:35:27 -05:00
|
|
|
from . import admin, custom_has_permission_admin, customadmin, views
|
2017-12-01 14:43:40 -05:00
|
|
|
from .test_autocomplete_view import site as autocomplete_site
|
2008-07-18 23:54:34 +00:00
|
|
|
|
2014-04-01 20:46:34 -04:00
|
|
|
urlpatterns = [
|
|
|
|
url(r'^test_admin/admin/doc/', include('django.contrib.admindocs.urls')),
|
2015-02-06 23:25:15 +01:00
|
|
|
url(r'^test_admin/admin/secure-view/$', views.secure_view, name='secure_view'),
|
2015-02-06 16:45:46 -05:00
|
|
|
url(r'^test_admin/admin/secure-view2/$', views.secure_view2, name='secure_view2'),
|
2015-05-28 17:25:52 +02:00
|
|
|
url(r'^test_admin/admin/', admin.site.urls),
|
|
|
|
url(r'^test_admin/admin2/', customadmin.site.urls),
|
2017-06-01 16:08:59 -07:00
|
|
|
url(r'^test_admin/admin3/', (admin.site.get_urls(), 'admin', 'admin3'), {'form_url': 'pony'}),
|
2015-05-28 17:25:52 +02:00
|
|
|
url(r'^test_admin/admin4/', customadmin.simple_site.urls),
|
|
|
|
url(r'^test_admin/admin5/', admin.site2.urls),
|
2016-02-09 02:35:03 +02:00
|
|
|
url(r'^test_admin/admin6/', admin.site6.urls),
|
2015-05-28 17:25:52 +02:00
|
|
|
url(r'^test_admin/admin7/', admin.site7.urls),
|
2016-06-19 16:21:58 +05:30
|
|
|
# All admin views accept `extra_context` to allow adding it like this:
|
|
|
|
url(r'^test_admin/admin8/', (admin.site.get_urls(), 'admin', 'admin-extra-context'), {'extra_context': {}}),
|
2015-05-28 17:25:52 +02:00
|
|
|
url(r'^test_admin/has_permission_admin/', custom_has_permission_admin.site.urls),
|
2017-12-01 14:43:40 -05:00
|
|
|
url(r'^test_admin/autocomplete_admin/', autocomplete_site.urls),
|
2014-04-01 20:46:34 -04:00
|
|
|
]
|