Django blocktrans error -


I'm approaching the last step of a project and I went into some hiccup with Django.

This is related to the {% blocktrans%} tag.

How can I enable it to be fully functional in my app, if I currently <<> <% Blocktrans%} me TemplateSyntaxError message

I have

TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.i18n", ... ...)

Any help would be appreciated.

For me it was like (Windows + Pygon 2.6 + Dzego 1.2.1)

< Ol>
  • The result of TemplateSyntaxError will be:

    {% load i18n%}

    {% blocktrans%} My name {{user.firstname} } {% Endblocktrans%}

  • will work:

    {% load i18n%}

    {% blockrans user.firstname Hmpf%} as my name {{HMPF}} {% Endblocktrans%}


  • Comments

    Popular posts from this blog

    Eclipse CDT variable colors in editor -

    AJAX doesn't send POST query -

    wpf - Custom Message Box Advice -