diff --git a/log_viewer/urls.py b/log_viewer/urls.py index d1922c8..7d749ea 100644 --- a/log_viewer/urls.py +++ b/log_viewer/urls.py @@ -10,14 +10,14 @@ if django.VERSION >= (2, 0): from django.urls import re_path urlpatterns = [ - re_path(r'^json/(?P[\.\w-]*)/(?P[0-9]+)/?$', log_json, name='log_json_view'), - re_path(r'^json/(?P[\.\w-]*)/?$', log_json, name='log_json_view'), - re_path(r'^/?$', log_viewer, name='log_file_view'), + re_path(r'^json/(?P[\.\w-]*)/(?P[0-9]+)$', log_json, name='log_json_view'), + re_path(r'^json/(?P[\.\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[\.\w-]*)/(?P[0-9]+)/?$', log_json, name='log_json_view'), - url(r'^json/(?P[\.\w-]*)/?$', log_json, name='log_json_view'), - url(r'^/?$', log_viewer, name='log_file_view'), + url(r'^json/(?P[\.\w-]*)/(?P[0-9]+)$', log_json, name='log_json_view'), + url(r'^json/(?P[\.\w-]*)$', log_json, name='log_json_view'), + url(r'^$', log_viewer, name='log_file_view'), ] diff --git a/setup.py b/setup.py index 97a0ca6..532c8e1 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import (setup, find_packages) -__version__ = '1.0.9' +__version__ = '1.1.0' setup( name='django-log-viewer',