Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update urls, remove base template and manifest file
IKarbowiak64569a801ce1
diff --git a/saleor/urls.py b/saleor/urls.pyindex 989f6a32dd..ed16605614 100644--- a/saleor/urls.py+++ b/saleor/urls.py@@ -3,7 +3,7 @@ from django.conf.urls import include, urlfrom django.conf.urls.static import staticfrom django.contrib.staticfiles.views import servefrom django.views.decorators.csrf import csrf_exempt-from django.views.generic import TemplateView+from django.views.generic.base import RedirectViewfrom .data_feeds.urls import urlpatterns as feed_urlsfrom .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.htmldeleted file mode 100644index 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.jsondeleted file mode 100644index 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"-}