first i created a Login form and an error message show as *CSRF token
missing or incorrect.*
I was able to work it out by adding* {% csrf_token %}* int the login form
and adding the import file in the views as from *django.template import
Context,RequestContext.*
But when i created a registration form the same problem came and i submit
the form, i added the {% csrf_token %} file in the registration form but it
did not work.
the code are shown below
{% extends "base.html" %}
{% block title %}User Registration{% endblock %}
{% block head %}User Registration{% endblock %}
{% block content %}
<form method="post" action=".">
{% csrf_token %}{{ form.as_p }}
<input type="submit" value="register" />
</form>
{% endblock %}
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/7a4c5b24-de8e-4815-96e5-6452f6a996b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.