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
Because we're specifying loaders manually, Django prevents us from using the APPS_DIRS setting. This means we need to specify the path to the templates directory(s) manually.
Is this really true? APPS_DIRS has no effect anymore as the loaders are added manually, but the paths to the template directories must not be set explicitly (especially when django.template.loaders.app_directories.Loader is added).
Maybe a better wording would be:
Because we're specifying the loaders manually, Django's APPS_DIRS setting no longer has any effect. If you still want templates from the apps loaded automatically, add the django.template.loaders.app_directories.Loader as in the above example.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In the documentation it says in Django Template Partials:
Is this really true? APPS_DIRS has no effect anymore as the loaders are added manually, but the paths to the template directories must not be set explicitly (especially when
django.template.loaders.app_directories.Loaderis added).Maybe a better wording would be:
Beta Was this translation helpful? Give feedback.
All reactions