As far as I know, Mezzanine doesn't modify request.get_host(), here are the Django docs on get_host, https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.get_host
I just gave them a quick read through and I'm not sure what might be going on with you. On Mon, Jul 28, 2014 at 4:22 AM, Jérôme Sivadier <[email protected]> wrote: > Hello everyone, > > I'm using django + mezzanine for one of my websites and I'm facing a > strange behavior (looks like a bug) with request.get_host(). > > Actually, my website was published with a Site configuration that looked > like that : > > Host : myWebsite.myDomain.loc > Name : myWebsite > > I worked with this configuration for several weeks and then I realized it > would be better to modify this configuration so that the ".loc" ending > would be a ".net" ending because the website was released on the Internet. > So I modified my Sites configuration to look like this : > > Host : myWebsite.myDomain.net > Name : myWebsite > > The problem is that now, everytime Mezzanine uses "request.get_host()" in > any request it shouts : "myWebsite.myDomain.loc" and not " > myWebsite.myDomain.net" ! For example in tinyMCE and the asset_proxy > thing, in the function "static_proxy" of core/views.py I'm printing > "request.get_host()" -> "myWebsite.myDomain.loc" instead of the other one, > provoking 404 errors. > > Any ideas on what I should change? > Thanks for reading this post ! > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
