From 879af5ef3e4afa27896a734c411741ac0afb3502 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Wed, 7 Jul 2021 01:34:44 +0200 Subject: [PATCH] . --- src/index.pug | 2 +- src/terminal.pug | 2 +- tabby/app/urls.py | 1 - tabby/urls.py | 4 +++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/index.pug b/src/index.pug index bcac3ff..0780272 100644 --- a/src/index.pug +++ b/src/index.pug @@ -3,7 +3,7 @@ html head base(href='/') meta(name='viewport', content='initial-scale=1, minimal-ui, shrink-to-fit=no') - script(src='/build/index.js', defer) + script(src='/static/index.js', defer) title Tabby body app diff --git a/src/terminal.pug b/src/terminal.pug index d4f1918..1a58f3f 100644 --- a/src/terminal.pug +++ b/src/terminal.pug @@ -2,7 +2,7 @@ doctype html html.tabby head meta(charset='UTF-8') - script(src='/build/terminal.js') + script(src='/static/terminal.js') style#custom-css style. body { transition: 0.5s background; } diff --git a/tabby/app/urls.py b/tabby/app/urls.py index b934f87..03332f1 100644 --- a/tabby/app/urls.py +++ b/tabby/app/urls.py @@ -19,7 +19,6 @@ urlpatterns = [ path('terminal', views.TerminalView.as_view()), path('app-dist//', views.AppDistView.as_view()), - path('build/', views.BuildView.as_view()), path('', include(router.urls)), ] diff --git a/tabby/urls.py b/tabby/urls.py index 9e9c46b..26ec1f2 100644 --- a/tabby/urls.py +++ b/tabby/urls.py @@ -1,3 +1,5 @@ +from django.conf import settings +from django.conf.urls.static import static from django.contrib import admin from django.urls import path, include from .app.urls import urlpatterns @@ -6,4 +8,4 @@ urlpatterns = [ path('', include(urlpatterns)), path('api/1/auth/social/', include('social_django.urls', namespace='social')), path('admin/', admin.site.urls), -] +] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)