Skip to content

Commit

Permalink
update urlpatterns for adding leading slash if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mitshel committed Oct 19, 2018
1 parent 798ee55 commit edc0fed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
db.sqlite3
db.sqlite3-journal
.idea/*
venv*
venv

2 changes: 1 addition & 1 deletion sopds/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
url(r'^admin/', admin.site.urls),
#url(r'^logout/$', logout, {'next_page':'/web/'},name='logout'),
#url(r'^', include('sopds_web_backend.urls', namespace='web', app_name='opds_web_backend')),
url(r'^', RedirectView.as_view(url=reverse_lazy("web:main"))),
url(r'^$', RedirectView.as_view(url=reverse_lazy("web:main"))),
]

0 comments on commit edc0fed

Please sign in to comment.