0

I am getting a TemplateSyntaxError, that is only happening on my dev server, but works fine on the django testing server locally.

Here's my all code: https://github.com/halitalptekin/HDBlog

This error code:

TemplateSyntaxError at /iletisim/
Could not parse the remainder: '-post-contact-form' from 'contactme-post-contact-form'

In template /home/templates/hdbootstrap/django_contactme/form.html, error at line 41

Here's line 41

<form id="CF" action="{% url contactme-post-contact-form %}" method="post">{% csrf_token %}
4

1 回答 1

0

正如 Mark Lavin 所问,您可能正在使用最新版本的url标签

  • 使用{% url "contactme-post-contact-form" %}.
  • 或者{% load url from future %}{% url "contactme-post-contact-form" %}如果测试服务器反过来失败。
于 2012-05-20T08:36:24.373 回答