Skip to content
Snippets Groups Projects
Commit f628b7ab authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Move offline fallback page template direction to make it accessible by...

Move offline fallback page template direction to make it accessible by django-pwa view, remove custom view from views and urls
parent 9ace1ed0
No related branches found
No related tags found
1 merge request!405Resolve "Fix PWA offline fallback page"
......@@ -17,7 +17,6 @@ from .util.core_helpers import is_celery_enabled
urlpatterns = [
path("", include("django_prometheus.urls")),
path("offline/", views.offline, name="offline"),
path("", include("pwa.urls"), name="pwa"),
path("about/", views.about, name="about_aleksis"),
path("admin/", admin.site.urls),
......
......@@ -89,11 +89,6 @@ def index(request: HttpRequest) -> HttpResponse:
return render(request, "core/index.html", context)
def offline(request: HttpRequest) -> HttpResponse:
"""Offline message for PWA."""
return render(request, "core/pages/offline.html")
def about(request: HttpRequest) -> HttpResponse:
"""About page listing all apps."""
context = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment