Skip to content

Commit

Permalink
fixed #11 (url pattern has error)
Browse files Browse the repository at this point in the history
  • Loading branch information
agusmakmun committed Aug 31, 2020
1 parent bfd074b commit f918b26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions log_viewer/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
if django.VERSION >= (2, 0):
from django.urls import re_path
urlpatterns = [
re_path(r'^json/(?P<file_name>[\.\w-]*)/(?P<page>[0-9]+)/?$', log_json, name='log_json_view'),
re_path(r'^json/(?P<file_name>[\.\w-]*)/?$', log_json, name='log_json_view'),
re_path(r'^/?$', log_viewer, name='log_file_view'),
re_path(r'^json/(?P<file_name>[\.\w-]*)/(?P<page>[0-9]+)$', log_json, name='log_json_view'),
re_path(r'^json/(?P<file_name>[\.\w-]*)$', log_json, name='log_json_view'),
re_path(r'^$', log_viewer, name='log_file_view'),
]
else:
from django.conf.urls import url
urlpatterns = [
url(r'^json/(?P<file_name>[\.\w-]*)/(?P<page>[0-9]+)/?$', log_json, name='log_json_view'),
url(r'^json/(?P<file_name>[\.\w-]*)/?$', log_json, name='log_json_view'),
url(r'^/?$', log_viewer, name='log_file_view'),
url(r'^json/(?P<file_name>[\.\w-]*)/(?P<page>[0-9]+)$', log_json, name='log_json_view'),
url(r'^json/(?P<file_name>[\.\w-]*)$', log_json, name='log_json_view'),
url(r'^$', log_viewer, name='log_file_view'),
]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from setuptools import (setup, find_packages)

__version__ = '1.0.9'
__version__ = '1.1.0'

setup(
name='django-log-viewer',
Expand Down

0 comments on commit f918b26

Please sign in to comment.