On a deployed django site, what url does Django use when scanning
urls.py when user browses to www.mysite.com  ?


When I access my (non-django) site with
 www.mysite.com
my host serves up the file that i see as   html/index.html

If  the polls tutorial is deployed to my host, does the mapping in
urls.py work?

urls.py has a line:
    (r'^polls/$', 'mysite.polls.views.index'),
which i think means that  "www.mysite.com/polls" will get the index
page, but "www.mysite.com" will fail

Shouldn't urls.py have something like
 (r'^index.html$' , 'mysite.polls.views.index' ),

or perhaps:
 (r'^$' , 'mysite.polls.views.index' ),

or perhaps (in my case)
 (r'^html/index.html$' , 'mysite.polls.views.index' ),

or will this vary with my host??


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to