Replies: 1 comment
-
I was just using wrong version of the base.html file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue Title: Custom
base.html
from Django REST Framework Not Loading Template TagsDescription
I'm working on customizing the
base.html
file from the Django REST Framework (DRF) plugin to extend its functionality beyond the original limitations. To achieve this, I copied thebase.html
file into a template folder within my application.Issue Details
However, when attempting to load this custom template, I encounter a
TemplateSyntaxError
related to theoptional_logout
template tag not receiving thecsrf_token
argument.I suspect the issue arises because my template is unable to load the template tags from the Django REST Framework. Below is my application and middleware configuration for reference:
Despite my efforts, I’ve been unable to find relevant information or solutions to this problem.
Questions
Additional Context
The custom base.html file I’m using is identical to the one found at the official Django REST Framework GitHub repository:
DRF base.html Source
Any assistance or guidance on how to address this issue would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions