Skip to content

Commit

Permalink
fix custom 404 template (#2414)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
cp-at-mit and pre-commit-ci[bot] authored Oct 7, 2024
1 parent ffcfcf5 commit b118987
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
"filename": "main/settings.py",
"hashed_secret": "09edaaba587f94f60fbb5cee2234507bcb883cc2",
"is_verified": false,
"line_number": 955
"line_number": 954
}
],
"pants": [
Expand Down Expand Up @@ -240,5 +240,5 @@
}
]
},
"generated_at": "2024-09-16T18:23:36Z"
"generated_at": "2024-10-03T19:08:49Z"
}
3 changes: 1 addition & 2 deletions main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@
"wagtail",
"modelcluster",
"taggit",
# django-fsm-admin
"viewflow",
# django-robots
"robots",
# django-reversion
Expand Down Expand Up @@ -215,6 +213,7 @@
"mitol.payment_gateway.apps.PaymentGatewayApp",
"mitol.olposthog.apps.OlPosthog",
# "mitol.oauth_toolkit_extensions.apps.OAuthToolkitExtensionsApp",
"viewflow",
)
# Only include the seed data app if this isn't running in prod
# if ENVIRONMENT not in ("production", "prod"):
Expand Down
6 changes: 3 additions & 3 deletions main/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
from cms.views import instructor_page
from main.views import cms_signin_redirect_to_site_signin, index, refine

handler500 = "main.views.handler500"
handler404 = "main.views.handler404"

urlpatterns = [
# NOTE: we only bring in base_urlpatterns so applications can only be created via django-admin
path(
Expand Down Expand Up @@ -94,6 +91,9 @@
+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
)

handler500 = "main.views.handler500"
handler404 = "main.views.handler404"

if settings.DEBUG:
import debug_toolbar # pylint: disable=wrong-import-position, wrong-import-order

Expand Down

0 comments on commit b118987

Please sign in to comment.