thanks you guys, both your answers were very helpful. 2010/7/22 Alexandre González <a...@mirblu.com>
> Take a look to django.contrib.sites > http://djangobook.com/en/2.0/chapter16/ > > <http://djangobook.com/en/2.0/chapter16/>You can use: > site.objects.get_current() > > I hope that this helps you. > > On Thu, Jul 22, 2010 at 22:58, Tony <tonyl7...@gmail.com> wrote: > >> 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-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. >> >> > > > -- > Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt > and/or .pptx > http://mirblu.com > > -- > 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.