X-Git-Url: https://git.p6c8.net/pcdenotes.git/blobdiff_plain/0f4e8b8769f4e9d58350b5d81cf931f61f03a33a..81a29e5f41245a2d1c8a58a7d6345b12e019b5bc:/pcdenotes/settings.py diff --git a/pcdenotes/settings.py b/pcdenotes/settings.py index 1d455a7..5d22c29 100644 --- a/pcdenotes/settings.py +++ b/pcdenotes/settings.py @@ -43,8 +43,9 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'markdownify.apps.MarkdownifyConfig', + 'filebrowser', 'notes', + 'notes.templatetags.notes_extras' ] MIDDLEWARE = [ @@ -132,16 +133,17 @@ 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 DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' -MARKDOWNIFY = { - "default": { - #"STRIP": False, - "BLEACH": False - } -} +MEDIA_URL = '/media/' +MEDIA_ROOT = BASE_DIR / 'media' + +FILEBROWSER_NORMALIZE_FILENAME = False +FILEBROWSER_CONVERT_FILENAME = False -NOTES_PER_PAGE = 5 \ No newline at end of file +NOTES_PER_PAGE = 5