|
1 | 1 | from django.conf import settings |
2 | | -from django.conf.urls import include |
3 | 2 | from django.contrib import admin |
4 | 3 | from django.contrib.sitemaps.views import sitemap |
| 4 | +from django.urls import include |
5 | 5 | from django.urls import path, re_path |
6 | 6 |
|
7 | 7 | from . import views |
|
37 | 37 | # Pay attention to the order the URL patterns will be matched! |
38 | 38 | urlpatterns = [ |
39 | 39 | re_path(r'^admin/', admin.site.urls), |
40 | | - re_path(r'^', include(shibboleth_login.urls)), |
41 | | - re_path('', include(social_django.urls, namespace='social')), |
| 40 | + path('', include(shibboleth_login.urls)), |
| 41 | + path('', include(social_django.urls, namespace='social')), |
42 | 42 | re_path(r'^api/v(?P<version>(2))/', include(api.urls_v2)), # why version in url? doc/api_versioning.md |
43 | | - re_path(r'^accounts/', include(userprofile.urls)), |
44 | | - re_path(r'^diploma/', include(diploma.urls)), |
45 | | - re_path(r'^', include(redirect_old_urls.urls)), |
46 | | - re_path(r'^', include(apps.urls)), |
47 | | - re_path(r'^', include(news.urls)), |
48 | | - re_path(r'^', include(external_services.urls)), |
49 | | - re_path(r'^', include(course.long_urls)), |
50 | | - re_path(r'^', include(deviations.urls)), |
51 | | - re_path(r'^', include(edit_course.urls)), |
52 | | - re_path(r'^', include(notification.urls)), |
53 | | - re_path(r'^', include(lti_tool.urls)), |
54 | | - re_path(r'^', include(exercise.urls)), |
55 | | - re_path(r'^', include(course.urls)), |
| 43 | + path('accounts/', include(userprofile.urls)), |
| 44 | + path('diploma/', include(diploma.urls)), |
| 45 | + path('', include(redirect_old_urls.urls)), |
| 46 | + path('', include(apps.urls)), |
| 47 | + path('', include(news.urls)), |
| 48 | + path('', include(external_services.urls)), |
| 49 | + path('', include(course.long_urls)), |
| 50 | + path('', include(deviations.urls)), |
| 51 | + path('', include(edit_course.urls)), |
| 52 | + path('', include(notification.urls)), |
| 53 | + path('', include(lti_tool.urls)), |
| 54 | + path('', include(exercise.urls)), |
| 55 | + path('', include(course.urls)), |
56 | 56 | path('sitemap.xml', sitemap, { 'sitemaps': all_sitemaps }, |
57 | 57 | name='django.contrib.sitemaps.views.sitemap'), |
58 | 58 | ] |
|
0 commit comments