Thursday, July 22, 2010

finding current url

Hi,
So I have many domains pointing to one url. I am using apache in
conjunction with django. How can I use Django to find out which
domain name is the one actually being typed in by the user? So lets
say I have siteone.com and sitetwo.com and both go to the same website
that I will call mainsite.com/someDjangoView. How can I find out if
the user typed in siteone.com or sitetwo.com even though they both
have the same destination?
thanks,
Tony

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