Saturday, July 6, 2013

Re: redirct page

Hi,

Redirection is done in the view after form processing et al. with redirect shortcut


2013/7/6 Kakar Arunachal Service <kakararunachalservice@gmail.com>
Hi,
I am having trouble with redirecting the login page to index page. Please guide me.

Here's the html snippet:
<body>
        <h1>User Login</h1>
            {% if form.errors %}
                <p>Your username and password didn't match.
                Please try again.</p>
            {% endif %}
        <form methon="post" action=".">
            <p><label for = "id_username">Username:</label>{{ form.username }}</p>
            <p><label for = "id_password">Password:</label>{{ form.password }}</p>
            <input type="hidden" name="next" value="/" />
            <input type="submit" value="login" />
        </form>
    </body>

Thanks.

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate