Basiacally, what you want to do is change the request subdomain based on 
the user that logs on to the app. 

Ex: the url that hosts the login form (or whatever it is) is like 
"http://exemple.com/login";. After the user correctly logs in, every request 
will be made to de url "http://<username>.exemple.com".

Is that correct?

Em quinta-feira, 5 de fevereiro de 2015 11:19:19 UTC-2, Vijay Khemlani 
escreveu:
>
> I'm not following, in the Django settings there is no "HOST" entry (other 
> than the one used to connect to the database)
>
> https://docs.djangoproject.com/en/1.7/ref/settings/
>
> If you're talking about "ALLOWED_HOSTS", then that one is only a whitelist 
> of allowed domains.
>
> Try and describe your problem with more detail, What error are you 
> getting? What problem with JQuery are you having?
>
> On Thu, Feb 5, 2015 at 9:48 AM, Abraham Varricatt <
> [email protected] <javascript:>> wrote:
>
>> Ok, I think I goofed up asking the question here. I noticed that there 
>> was a HOST setting defined in the django documentation and assumed it was 
>> the same thing, but some more code investigation, reveals otherwise. 
>>
>> But I *am* running into a tangential issue. I mentioned that if I set the 
>> value of HOST=alice.example.com that the site works for alice? Well, I 
>> did a bit of middleware tweaking so that the value of settings.HOST would 
>> get changed depending on the user, but that doesn't seem to have helped. :(
>>
>> -Abraham V.
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/52349660-aaa1-44ac-9c5f-d3b8fa28a230%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/52349660-aaa1-44ac-9c5f-d3b8fa28a230%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/996bdee2-8306-4c3f-89f4-d9c93deba248%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to