X-Git-Url: https://git.p6c8.net/pcdenotes.git/blobdiff_plain/6126901bf6fee42ebf28f1e054e93ffdb73f10c5..53a6ba8267b2e8bf88d601c55e2df429a5230ff0:/pcdenotes/settings.py?ds=sidebyside diff --git a/pcdenotes/settings.py b/pcdenotes/settings.py index db9476f..88b705d 100644 --- a/pcdenotes/settings.py +++ b/pcdenotes/settings.py @@ -13,13 +13,14 @@ https://docs.djangoproject.com/en/3.2/ref/settings/ from pathlib import Path from dotenv import load_dotenv, find_dotenv -load_dotenv(find_dotenv()) import os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent +# Load .env file +load_dotenv(BASE_DIR / '.env') # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ @@ -131,6 +132,8 @@ USE_TZ = True STATIC_URL = '/static/' STATIC_ROOT = BASE_DIR / 'static' +STATICFILES_DIRS = [BASE_DIR / 'notes/static'] + # Default primary key field type # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field @@ -141,4 +144,6 @@ MARKDOWNIFY = { #"STRIP": False, "BLEACH": False } -} \ No newline at end of file +} + +NOTES_PER_PAGE = 5 \ No newline at end of file