On 20 oct, 09:56, knight <alexar...@gmail.com> wrote:
> Hi,
>
> I have override 2 admin templates: index.html and base_site.html.
> The first line of index.html is: {% extends "admin/base_site.html" %}
> Everything works fine, but if I insert {{ MEDIA_URL }} in
> base_site.html, I get the following error when going to my admin page:
>
> TemplateSyntaxError at /admin/
> <ExtendsNode: extends "admin/base.html"> must be the first tag in the
> template.
>
> Is anybody have an idea why can't I put {{ MEDIA_URL }} in
> base_site.html?

You failed to specify _where_ you inserted {{ MEDIAL_URL }}. What is
clear is that you cannot put _anything_ before a {% extends XXX %}
tag.


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

Reply via email to