Hi,

I have been using one domain name for my django project. 
http://www.example.com.


Now I need to add new domain name http://blog.example.com. In the new 
domain name, all the pattern should be same the main host(www) with one 
different pattern. For blog site, for ^$ pattern go to a different view.

I tried to look into multihost middleware and site middleware, and I 
think those approach is a bit overkill for my problem.

Is there anyway to have urlpattern to look into the host name portion of 
the url? I was hoping to do all of this into urls.py.

Thanks in advance
Leon Yeh


--~--~---------~--~----~------------~-------~--~----~
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