2021-03-17 14:33:34 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from django.conf.urls import include, url
|
|
|
|
from django.conf.urls.static import static
|
|
|
|
from django.contrib import admin
|
2021-04-01 14:24:39 +00:00
|
|
|
from django.urls import path, include
|
2021-04-08 13:35:03 +00:00
|
|
|
from .views import home
|
2021-04-01 14:24:39 +00:00
|
|
|
from django.views.generic import TemplateView
|
2021-03-17 14:33:34 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
url(r"^", include("djangoldp.urls")),
|
|
|
|
url(r"^admin/", admin.site.urls),
|
2021-04-15 14:10:53 +00:00
|
|
|
url(r"^", include("djangoldp_webpushnotification.djangoldp_urls")),
|
2021-04-01 14:24:39 +00:00
|
|
|
path('', home),
|
2021-04-08 13:35:03 +00:00
|
|
|
path(
|
|
|
|
"sw.js",
|
|
|
|
TemplateView.as_view(
|
|
|
|
template_name="sw.js", content_type="application/x-javascript"
|
|
|
|
),
|
|
|
|
),
|
2021-03-17 14:33:34 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|