From b101cdd28b6daa2d79bca85d7a7df301d679a0de Mon Sep 17 00:00:00 2001 From: MatthiasSaihttam Date: Wed, 4 Nov 2020 13:07:06 -0500 Subject: [PATCH] Add manifest static files storage --- main/templates/whispermaphone/index.html | 2 +- whispermaphone/settings.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/main/templates/whispermaphone/index.html b/main/templates/whispermaphone/index.html index a1ca348..76063b5 100644 --- a/main/templates/whispermaphone/index.html +++ b/main/templates/whispermaphone/index.html @@ -6,7 +6,7 @@ Thoughts {% load static %} - + diff --git a/whispermaphone/settings.py b/whispermaphone/settings.py index 9818e43..d054b5e 100644 --- a/whispermaphone/settings.py +++ b/whispermaphone/settings.py @@ -10,6 +10,8 @@ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ +import os + from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. @@ -23,7 +25,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'qdm4_0b)3^)k$6r($!o^a7&0l#^6)@g2wr!x0r40ii@9otfnwo' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = ["192.168.1.124", "thoughts.learnerpages.com", "localhost"] @@ -91,5 +93,5 @@ USE_TZ = True # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/' - +STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage' STATIC_ROOT = BASE_DIR / "static/"