You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FLUENT_PAGES_TEMPLATE_DIR is a required setting. Even though it defaults to TEMPLATE_DIRS[0], Django's default settings.py doesn't provide a TEMPLATE_DIR setting.
It also seems a bit arbitrary to nominate the first TEMPLATE_DIRS directory as the only location where fluent-pages templates can be found. Who knows what people have in TEMPLATE_DIRS or what order it is. The order doesn't matter for Django, so fluent-pages shouldn't rely on it.
How about providing a custom template loader, based on Django's app_directories loader, that looks in the fluent_page_templates directory for all installed apps, and use the FLUENT_PAGES_TEMPLATE_DIR (or DIRS) setting to add project level directories that are searched before the app directories?
And also mention in the instructions that the custom app loader should be installed :)
The text was updated successfully, but these errors were encountered:
The
FLUENT_PAGES_TEMPLATE_DIR
is a required setting. Even though it defaults toTEMPLATE_DIRS[0]
, Django's defaultsettings.py
doesn't provide aTEMPLATE_DIR
setting.It also seems a bit arbitrary to nominate the first
TEMPLATE_DIRS
directory as the only location where fluent-pages templates can be found. Who knows what people have inTEMPLATE_DIRS
or what order it is. The order doesn't matter for Django, so fluent-pages shouldn't rely on it.How about providing a custom template loader, based on Django's
app_directories
loader, that looks in thefluent_page_templates
directory for all installed apps, and use theFLUENT_PAGES_TEMPLATE_DIR
(orDIRS
) setting to add project level directories that are searched before the app directories?And also mention in the instructions that the custom app loader should be installed :)
The text was updated successfully, but these errors were encountered: