Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update urls, remove base template and manifest file

IKarbowiak64569a801ce1
diff --git a/saleor/urls.py b/saleor/urls.py
index 989f6a32dd..ed16605614 100644
--- a/saleor/urls.py
+++ b/saleor/urls.py
@@ -3,7 +3,7 @@ from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib.staticfiles.views import serve
from django.views.decorators.csrf import csrf_exempt
-from django.views.generic import TemplateView
+from django.views.generic.base import RedirectView
from .data_feeds.urls import urlpatterns as feed_urls
from .graphql.api import schema
@@ -18,7 +18,6 @@ urlpatterns = [
digital_product,
name="digital-product",
),
- url(r"", TemplateView.as_view(template_name="base.html")),
]
if settings.DEBUG:
@@ -30,10 +29,10 @@ if settings.DEBUG:
else:
urlpatterns += [url(r"^__debug__/", include(debug_toolbar.urls))]
- urlpatterns += [
- # static files (images, css, javascript, etc.)
- url(r"^static/(?P<path>.*)$", serve)
- ] + static("/media/", document_root=settings.MEDIA_ROOT)
+ urlpatterns += static("/media/", document_root=settings.MEDIA_ROOT) + [
+ url(r"^static/(?P<path>.*)$", serve),
+ url(r"^", RedirectView.as_view(url="graphql/")),
+ ]
if settings.ENABLE_SILK:
urlpatterns += [url(r"^silk/", include("silk.urls", namespace="silk"))]
diff --git a/templates/base.html b/templates/base.html
deleted file mode 100644
index cdaf2efa06..0000000000
--- a/templates/base.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <title>{% block title %}{{ site.name }}{% endblock %}</title>
- <meta charset="utf-8">
-</head>
-
-<body>
-</body>
-
-</html>
diff --git a/templates/manifest.json b/templates/manifest.json
deleted file mode 100644
index c73bd50f9a..0000000000
--- a/templates/manifest.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{% load static %}{
- "lang": "en",
- "dir": "ltr",
- "name": "{{ site.name }}",
- "description": "{{ site.settings.description }}",
- "short_name": "{{ site.name }}",
- "icons": [
- {
- "src": "{% static 'favicons/android-chrome-192x192.png' %}",
- "sizes": "192x192",
- "type": "image/png"
- },
- {
- "src": "{% static 'favicons/android-chrome-512x512.png' %}",
- "sizes": "512x512",
- "type": "image/png"
- }
- ],
- "scope": "/",
- "start_url": "{% url 'home' %}",
- "display": "fullscreen",
- "orientation": "portrait",
- "theme_color": "#333333",
- "background_color": "#ffffff"
-}