Add manifest static files storage

This commit is contained in:
MatthiasSaihttam 2020-11-04 13:07:06 -05:00
parent 5089f5f463
commit b101cdd28b
2 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<title>Thoughts</title>
{% load static %}
<link href="{% static 'main/main.css' %}?_=1" rel="stylesheet">
<link href="{% static 'main/main.css' %}" rel="stylesheet">
<link rel="icon" sizes="192x192" href="{% static 'images/favicon-192x192.png'%}">
<link rel="apple-touch-icon" href="{% static 'images/apple-touch-icon.png'%}"/>

View File

@ -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/"