http://djangosnippets.org/snippets/1376/

this is what you want, I'm using it and it works like a charm

you override in templates/path/to/template.html and do

{% extends "app:path/to/template.html" %}, and this loader searches in
`app`'s template dir by default

On Mon, Jul 9, 2012 at 3:06 AM, tWoolie <[email protected]> wrote:
> Sorry, I should have been clearer. What I have is an external project that
> is included "as-is". It has it's templates and it's views are hardcoded
> against the template names.
> I want to know if it's possible to create a template called, say,
> "app/dashboard.html" in the global template dir that then extends
> "app/dashboard.html" in the app's template directory, thereby allowing me to
> change ONLY the block I need to change, without requiring me to copy-paste
> the entire template and re-edit every time I update that app.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/G2ExbPmO4e0J.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.



-- 
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to