Thank you for your response, Jonathan! > I believe that the regular expression you're looking for is just "( r'^$', ...),"
Yes, that is right. "a.b.com" will be accepted and the control transfered, but the problem is that I cannot provide the remaining part of the URI, specifically "/winapp/HomePage.html <http://a.b.com/winapp/HomePage.html>" in order to launch the home page. { 'document_root': 'winapp' } provides only the folder, but I need to pass the sub-folder ("winapp") and the filename ("HomePage.html"). I am not sure if there is a predefined key (similar to 'document_root') that can be used to pass the file name? I tried the following but nothing worked... ( r'^$', 'django.views.static.serve', { 'document_root': INSTALLATION_PATH + 'winapp' } ), or ( r'^$', LandingPage ), or ( r'^$', 'redirect_to', { 'url' : '/home/winapp/HomePage.html' } ), or ( r'^$', '/home/winapp/HomePage.html' ), Any ideas? Thanks, Chris 2010/10/13 Jonathan Barratt <jonathan.barr...@knifeict.com> > > 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-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.