On 25.03.2011 12:55, Łukasz Rekucki wrote:
> On 25 March 2011 12:34, Thomas Guettler <h...@tbz-pariv.de> wrote:
>> Hi,
>>
>> I look at your example code. You need to name the webserver in the
>> code. That's not very nice. I guess it should be possible to
>> guess the webserver (apache vs nginx) by looking at request.META.
>>
> 
> -1 on guessing anything, especially something that doesn't change.
> Also, a fairly common configuration is Apache behind an nginx proxy.
> In this setup, I want nginx will be the one serving static files, not
> Apache.

Maybe you are right. Guessing is bad. But I think to write "nginx" into
the application code is bad, too. Something like this could be in settings.py.

  Thomas

-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to