small fixes for static files
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
db.sqlite3
|
db.sqlite3
|
||||||
.venv
|
.venv
|
||||||
|
/static
|
||||||
local.py
|
local.py
|
||||||
settings_local.py
|
settings_local.py
|
||||||
__pycache__
|
__pycache__
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ For the full list of settings and their values, see
|
|||||||
https://docs.djangoproject.com/en/3.1/ref/settings/
|
https://docs.djangoproject.com/en/3.1/ref/settings/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# 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/
|
# https://docs.djangoproject.com/en/3.1/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
STATICFILES_DIRS = [ '/static/' ]
|
STATIC_ROOT = os.path.join(BASE_DIR, "static")
|
||||||
LOGIN_REDIRECT_URL = '/home/'
|
LOGIN_REDIRECT_URL = '/home/'
|
||||||
LOGOUT_REDIRECT_URL = '/home/'
|
LOGOUT_REDIRECT_URL = '/home/'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user