On Jan 4, 4:28 pm, bluellyr <bluel...@gmail.com> wrote: > Hi! > > I'm using the Django 1.0.2 and trying to connect to a diferent > database name using the subdomain by reference, > when I accesshttp://xxxx.mydomain.comI want to connect to the "xxxx" > database and when accessing to thehttp://yyyy.mydomain.comI want to connect > to the "yyyy" database. > > There is a way to do this? > > I'm trying but I can not find nothing about how to get the subdomain > from the url. > > thanks
Have different vhosts for each subdomain, each using a separate settings.py file with its own database name. -- DR. -- 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.