<div id="{% if dsformid %}{{ dsformid }}{% else %}dsform{% endif %}">
<form method="post" action="{% url djangospam.cookie.views.spammer_view %}">
    <label for="honeypot">Honeypot</label>
        <input id="honeypot" type="text" name="honeypot"></input>
    <label for="name">Name</label>
        <input id="name" type="text" name="name"></input>
    <label for="email">E-mail</label>
        <input id="email" type="text" name="email"></input>
    <label for="url">Website (optional)</label>
        <input id="url" type="text" name="url"></input>
    <label for="comment">Your comment</label>
        <textarea id="comment" name="comment"></textarea>
    {% csrf_token %}
    <input type="submit" value="Send"></input>
</form>
</div>

<script>
    div = document.getElementById("{% if dsformid %}{{ dsformid }}{% else %}dsform{% endif %}")
    div.style.display = "none"
    div.style.visibility = "hidden"
</script>

<div id="{% if dsformid %}{{ dsformid }}{% else %}dsform{% endif %}">
<form method="post" action="{% url "djangospam.cookie.views.spammer_view" %}">
    <label for="honeypot">Honeypot</label>
        <input id="honeypot" type="text" name="honeypot"></input>
    <label for="name">Name</label>
        <input id="name" type="text" name="name"></input>
    <label for="email">E-mail</label>
        <input id="email" type="text" name="email"></input>
    <label for="url">Website (optional)</label>
        <input id="url" type="text" name="url"></input>
    <label for="comment">Your comment</label>
        <textarea id="comment" name="comment"></textarea>
    {% csrf_token %}
    <input type="submit" value="Send"></input>
</form>
</div>

<script>
    div = document.getElementById("{% if dsformid %}{{ dsformid }}{% else %}dsform{% endif %}")
    div.style.display = "none"
    div.style.visibility = "hidden"
</script>

Make URL call compatible with Django 1.5 and up
Make URL call compatible with Django 1.5 and up

* Syntax for {% url %} tag has been changed in version 1.5.

Commit references issue #3.
