diff --git a/.gitignore b/.gitignore index c5c68e7..581714b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ db.sqlite3 .venv +/static local.py settings_local.py __pycache__ diff --git a/walletmonitor/settings.py b/walletmonitor/settings.py index 574d90f..770fa9f 100644 --- a/walletmonitor/settings.py +++ b/walletmonitor/settings.py @@ -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/'