diff --git a/website/website/settings.py b/website/website/settings.py index 6c5ed03..d90b801 100644 --- a/website/website/settings.py +++ b/website/website/settings.py @@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'django-insecure-6ehh*7^wfs=d6cwcddgqu_0k)da%%ph(8gdh0_-)v#9pm4rikz' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = True ALLOWED_HOSTS = ['*'] diff --git a/website/website/urls.py b/website/website/urls.py index 5ae759d..a31f616 100644 --- a/website/website/urls.py +++ b/website/website/urls.py @@ -20,6 +20,9 @@ from rest_framework import permissions from drf_yasg.views import get_schema_view from drf_yasg import openapi +from django.conf import settings +from django.conf.urls.static import static + schema_view = get_schema_view( @@ -44,3 +47,6 @@ urlpatterns = [ path('redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'), ] + +if settings.DEBUG: + urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)