allink/django-admin-import — Issue #3: Error with static template block tag in Django 1.3
Author: msmenzyk
Created: 2012-01-24 11:09:31+00:00
State: open

Old import_xls.html cause Error with static template block tag in Django 1.3

{% extends "admin/base_site.html" %}
{% load i18n static %}

{% block title %}{% trans "Import" %} {{ opts.verbose_name }} {{ block.super }}{% endblock %}

{% block extrastyle %}{{ block.super }}{% endblock %}

This is OK: (https://docs.djangoproject.com/en/1.3/howto/static-files/#with-a-template-tag)

{% extends "admin/base_site.html" %}
{% load i18n static %}
{% get_static_prefix as STATIC_PREFIX %}

{% block title %}{% trans "Import" %} {{ opts.verbose_name }} {{ block.super }}{% endblock %}

{% block extrastyle %}{{ block.super }}{% endblock %}