startinblox-startinoff/server/urls.py
2021-04-15 16:10:53 +02:00

24 lines
701 B
Python

from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
from .views import home
from django.views.generic import TemplateView
urlpatterns = [
url(r"^", include("djangoldp.urls")),
url(r"^admin/", admin.site.urls),
url(r"^", include("djangoldp_webpushnotification.djangoldp_urls")),
path('', home),
path(
"sw.js",
TemplateView.as_view(
template_name="sw.js", content_type="application/x-javascript"
),
),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)