|
1 | 1 | import sqlite3
|
2 | 2 |
|
3 | 3 | from django.http import HttpResponse
|
4 |
| -from django.conf.urls import url |
| 4 | +from django.urls import path |
5 | 5 | from django.views.generic import TemplateView
|
6 | 6 |
|
7 | 7 |
|
@@ -32,9 +32,9 @@ def call_db(request):
|
32 | 32 |
|
33 | 33 |
|
34 | 34 | urlpatterns = [
|
35 |
| - url(r'^200ok/$', ok, name='200ok'), |
36 |
| - url(r'^500fault/$', fault, name='500fault'), |
37 |
| - url(r'^call_db/$', call_db, name='call_db'), |
38 |
| - url(r'^template/$', IndexView.as_view(), name='template'), |
39 |
| - url(r'^template_block/$', TemplateBlockView.as_view(), name='template_block'), |
| 35 | + path('200ok/', ok, name='200ok'), |
| 36 | + path('500fault/', fault, name='500fault'), |
| 37 | + path('call_db/', call_db, name='call_db'), |
| 38 | + path('template/', IndexView.as_view(), name='template'), |
| 39 | + path('template_block/', TemplateBlockView.as_view(), name='template_block'), |
40 | 40 | ]
|
0 commit comments