small fixes for static files

This commit is contained in:
2021-01-07 23:04:36 +01:00
parent d2060eac4b
commit 22f21e8f36
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
db.sqlite3
.venv
/static
local.py
settings_local.py
__pycache__
+2 -1
View File
@@ -10,6 +10,7 @@ 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'.
@@ -119,7 +120,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = [ '/static/' ]
STATIC_ROOT = os.path.join(BASE_DIR, "static")
LOGIN_REDIRECT_URL = '/home/'
LOGOUT_REDIRECT_URL = '/home/'