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/
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
- 'markdownify.apps.MarkdownifyConfig',
'notes',
+ 'notes.templatetags.notes_extras'
]
MIDDLEWARE = [
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
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
-MARKDOWNIFY = {
- "default": {
- #"STRIP": False,
- "BLEACH": False
- }
-}
\ No newline at end of file
+NOTES_PER_PAGE = 5
\ No newline at end of file