Adds 404 and 500 pages
they only show up when debug is off though, thankfully Fixes #112
This commit is contained in:
parent
e7d18dada1
commit
c6d887defe
4 changed files with 31 additions and 0 deletions
|
@ -13,6 +13,8 @@ local_user_path = r'^user/%s' % localname_regex
|
|||
status_path = r'%s/(status|review|comment)/(?P<status_id>\d+)' % local_user_path
|
||||
book_path = r'^book/(?P<book_identifier>[\w\-]+)'
|
||||
|
||||
handler404 = 'fedireads.views.not_found_page'
|
||||
handler500 = 'fedireads.views.server_error_page'
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue