Wednesday, October 13, 2010

Re: How to launch home page from urls.py?

On 13 ต.ค. 2010, at 7:57, Chris wrote:

> Hello,
>
> Currently in my urls.py I have "( r'^winapp/(?P<path>.*)$',
> 'django.views.static.serve', { 'document_root': 'winapp' } )," and I
> can launch my home pahe by pointing my browser to something like
> "a.b.com/winapp/HomePage.html".
>
> I have gone through the documentation and a couple of books, but I
> cannot figure out how to launch "HomePage.html" by using just
> "a.b.com".

I believe that the regular expression you're looking for is just "( r'^$', ...),"

Hth,
Jonathan

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment