Override template without editing source package?
craigmaloney opened this issue · 4 comments
craigmaloney commented
I'm not understanding how to override the template without writing to the honeypot templates in the package. Is there a way to do this, and if so could this be explained more clearly in the documentation?
Thanks!
jamesturk commented
If you put a template with the same path in your templates directory yours
will be used instead of the package's.
https://docs.djangoproject.com/en/3.0/howto/overriding-templates/ is
actually probably the best resource for this, as it isn't specific to this
project.
…On Thu, Mar 26, 2020 at 9:47 AM Craig Maloney ***@***.***> wrote:
I'm not understanding how to override the template without writing to the
honeypot templates in the package. Is there a way to do this, and if so
could this be explained more clearly in the documentation?
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAB6YSKK5343MFQ7VQETYTRJNMIVANCNFSM4LUHXQEA>
.
craigmaloney commented
Hm, I tried this, but didn't seem to have much luck. Does it need to have the honeypot directory as well?
jamesturk commented
Yes, include the honeypot part of the path :)
…On Thu, Mar 26, 2020 at 9:54 AM Craig Maloney ***@***.***> wrote:
Hm, I tried this, but didn't seem to have much luck. Does it need to have
the honeypot directory as well?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAB6YSX6BINURRRBAGGUFDRJNM7PANCNFSM4LUHXQEA>
.
craigmaloney commented
Ah, found my issue was related to the site-packages getting polled before the local template directories. It's working now.
Thanks for the quick response!