User login

2 views
Skip to first unread message

AKK

unread,
Jul 18, 2009, 5:51:40 PM7/18/09
to Django users
hi,

i have a form like this:

<form action="" method="post">
<label for="username">User name:</label>
<input type="text" name="username" value="" id="username"><br><br>
<label for="password">Password:</label>
<input type="password" name="password" value=""
id="password"><br><br>


<input type="submit" value="login" />
<input type="hidden" name="next" value="blog/" />
</form>

and the next field is where the user should be redirected assuming
they have the correct details.

When they login i want them to be redirected to myurl.com/blog/ but
what i have above redirects them to myurl.com/accounts/login/blog/. Is
it possible to get them where i want without using the absolute url?

Thanks

Andrew

Almir Karic

unread,
Jul 18, 2009, 5:56:39 PM7/18/09
to django...@googlegroups.com
what is wrong with absolute urls? :)


python/django hacker & sys admin
http://almirkaric.com & http://twitter.com/redduck666

Joshua Russo

unread,
Jul 18, 2009, 6:32:05 PM7/18/09
to django...@googlegroups.com
Just put a forward slash in front of the Next value. 
Reply all
Reply to author
Forward
0 new messages