Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override Django Admin templates #304

Open
wowkin2 opened this issue Sep 6, 2023 · 2 comments
Open

Override Django Admin templates #304

wowkin2 opened this issue Sep 6, 2023 · 2 comments

Comments

@wowkin2
Copy link

wowkin2 commented Sep 6, 2023

I can't override Django Admin templates because of TemplateSyntaxError: Encountered unknown tag 'load'.

Despite of tags in template I want to change it fails to understand included and extended templates.
I've seen comment in another similar issue #229 (comment) but it requires separate library to be installed.

Is there a native way to override Admin pages?

@wizpig64
Copy link
Collaborator

wizpig64 commented Sep 6, 2023

Without some glue to join them together (like the tag you linked to which is new for me), you can't mix django and jinja templates natively with django-jinja. so while you could override the templates with jinja2, if they extend or include any other django templates (like the entire admin), you'll get an error as jinja tries to parse django-ese. {% load %} is a django tag that's not supported in the jinja engine, for example.

@wowkin2
Copy link
Author

wowkin2 commented Sep 7, 2023

Why django and jinja are not compatible? Especially in library named django-jinja 🙂
Thinking what should be done to support that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants