There are several possible reasons; one might be that you do have SITE_ID set.
If you do, then that Site instance will be used regardless of the request domain.
hopthrisC
used by what?
_i_ only use get_current_site(request)
koniiiik
By get_current_site.
neilus joined the channel
get_current_site checks if d.c.sites is installed, if so, then it checks if SITE_ID is set, and uses that Site instance, otherwise it tries to get an instance based on the request domain; if d.c.sites is not installed, it returns a RequestSite.
hopthrisC
yeah, just read the docs
the_drow joined the channel
what's the use in that?
koniiiik
Umm, why?
Those are the different ways in which d.c.sites can be used.
fission6 joined the channel
fission6
how do i avoid django rendering a client side "required" html5 attribute for a textfield
koniiiik
If you want to have a separate application server process per site, you set the setting; if you want to dynamically choose based on the domain, you don't set the setting.
hopthrisC
i would have thought of SITE_ID as the fallback
fission6
the textfield is using a WUSIWUG and messing it up
ironfroggy joined the channel
koniiiik
fission6: Have you tried setting attrs={'required': False} in your form widget?
lastmanstanding joined the channel
neilus has quit
fission6
that may be the play thanks koniiiik
koniiiik
fission6: Also, the commonly used acronym is WYSIWYG.
fission6
yes thank you
haha
the_drow joined the channel
ubuntu_aze has quit
tdy1 has quit
MK___ joined the channel
eshlox joined the channel
moldy
hopthrisC: why should it try to be smarter than you if you explicitly set a SITE_ID?
just don't set it if you want it to guess :)
lastmanstanding has quit
gschlenkhoff joined the channel
hopthrisC
moldy: i already did acknowledge my stupidity. why do you have to rub it in?
ericssh joined the channel
ericssh has left the channel
Ryanar has quit
glassresistor joined the channel
moldy
eh, that was not my intention
hopthrisC
ok :)
moldy
i was just replying to "what's the use in that? / i would have thought of SITE_ID as the fallback"
jfisk87 has quit
greg_f has quit
tdy1 joined the channel
READ10 has quit
hopthrisC
yeah, i'm going to test what happens when SITE_ID is not set and it can't find a site for the request