On Sat, Jul 18, 2009 at 8:51 PM, AKK <andrewkenyon...@gmail.com> wrote:

>
> 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?


Just put a forward slash in front of the Next value.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to