'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
- 'markdownify.apps.MarkdownifyConfig',
+ 'filebrowser',
'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
- }
-}
+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