[Fixed]-Django map root to another url

1👍

This:

url(r'^/$'    ,'main.views.promptLogin' , name="home")

corresponds to http://foo.com// because Django adds a / to the end of foo.com by default.

What you probably want is:

url(r'^$'    ,'main.views.promptLogin' , name="home")

which corresponds to

http://foo.com/

👤W.K.S

Leave a comment