Skip to content

How to allow template overriding? #5

Description

@noxan

Currently it is not possible to override templates of external apps, leave it as a special case or add one of those two solutions.

Add global template directories definition:

TEMPLATE_DIRS = (
    os.path.join(BASE_DIR, '{{ project_name }}/common/templates'),
)

Or move common app before external apps:

# Application definition
 INTERNAL_APPS = (
-    '{{ project_name }}.common',
 )
@@ -47,6 +46,7 @@ INSTALLED_APPS = (
     'django.contrib.sessions',
     'django.contrib.messages',
     'django.contrib.staticfiles',
+    '{{ project_name }}.common',  # load common app before external apps to allow overriding of templates
 ) + EXTERNAL_APPS + INTERNAL_APPS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions