[BangPypers] Django URLs -> New URLs are getting appended with the previous one

Rajeev J Sebastian rajeev.sebastian at gmail.com
Mon Dec 22 03:40:33 CET 2008


On Thu, Dec 18, 2008 at 4:14 PM, Hussain Bohra
<hussainbohra_30 at yahoo.com> wrote:
> Hi All,
>
> I am trying my hands in a Django with a small application,  I am making one
> login page and acceptance / failure of a user name and password.

Hi Hussain,

There are a number of issues with the code you posted.

You might want to try adding an attribute to the form element:

<form action="/init/" ... > ...  </form>

This ensures it will post to the right URL.

Also, there are *much* better ways to do most of what you are trying
in that snippet. I would suggest that you go through the django
tutorial and book.

Regards
Rajeev J Sebastian


More information about the BangPypers mailing list