|
10 | 10 | if django.VERSION >= (2, 0): |
11 | 11 | from django.urls import re_path |
12 | 12 | urlpatterns = [ |
13 | | - re_path(r'^json/(?P<file_name>[\.\w-]*)/(?P<page>[0-9]+)/?$', log_json, name='log_json_view'), |
14 | | - re_path(r'^json/(?P<file_name>[\.\w-]*)/?$', log_json, name='log_json_view'), |
15 | | - re_path(r'^/?$', log_viewer, name='log_file_view'), |
| 13 | + re_path(r'^json/(?P<file_name>[\.\w-]*)/(?P<page>[0-9]+)$', log_json, name='log_json_view'), |
| 14 | + re_path(r'^json/(?P<file_name>[\.\w-]*)$', log_json, name='log_json_view'), |
| 15 | + re_path(r'^$', log_viewer, name='log_file_view'), |
16 | 16 | ] |
17 | 17 | else: |
18 | 18 | from django.conf.urls import url |
19 | 19 | urlpatterns = [ |
20 | | - url(r'^json/(?P<file_name>[\.\w-]*)/(?P<page>[0-9]+)/?$', log_json, name='log_json_view'), |
21 | | - url(r'^json/(?P<file_name>[\.\w-]*)/?$', log_json, name='log_json_view'), |
22 | | - url(r'^/?$', log_viewer, name='log_file_view'), |
| 20 | + url(r'^json/(?P<file_name>[\.\w-]*)/(?P<page>[0-9]+)$', log_json, name='log_json_view'), |
| 21 | + url(r'^json/(?P<file_name>[\.\w-]*)$', log_json, name='log_json_view'), |
| 22 | + url(r'^$', log_viewer, name='log_file_view'), |
23 | 23 | ] |
0 commit comments