Hi Siddharta,

Assuming you're deploying on Apache with mod_python, have you tried
setting ServerName in your httpd.conf to someting sensible?

Ciao,
- Matthias

On Aug 29, 11:59 am, Siddhi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm writing a django app that will be used in a LAN environment. The
> server typically does not have a domain name configured and is
> accessed via the IP address.
>
> In such a setup, I'm getting
>
> HTTP_HOST: 192.168.1.20:4334
> SERVER_NAME: localhost
>
> The app uses the django.contrib.syndication module to provide some RSS
> feeds. This module uses SERVER_NAME to generate the links for the
> items. Since it's value is localhost, the links do not give the right
> address if the feed is read on another computer. But it works properly
> if HTTP_HOST is used.
>
> So the question is, whats the difference between these two, and should
> the syndication module be using HTTP_HOST?
>
> --
> Siddharta Govindarajhttp://siddhi.blogspot.com


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

Reply via email to