Mod_python configuring to apache..

6 views
Skip to first unread message

x_marine

unread,
Mar 10, 2009, 7:56:44 PM3/10/09
to Django users
I've instaled Django 1.0.2 and I'm having problems configuring it with
Apache at the httpd.conf
Everying Else is up and running except localhost fail to run but
127.0.01. works!!! instead.
I'm currently using Windows Vista

I created mysite project in c:/django
my code other config is

<Location "/mysite/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonOption django.root /mysite
PythonDebug On
PythonPath "['/django'] + sys.path"
</Location>

Karen Tracey

unread,
Mar 10, 2009, 10:00:40 PM3/10/09
to django...@googlegroups.com

On Tue, Mar 10, 2009 at 7:56 PM, x_marine <isos...@gmail.com> wrote:

I've instaled Django 1.0.2 and I'm having problems configuring it with
Apache at the httpd.conf
 Everying Else is up and running except localhost fail to run but
127.0.01. works!!! instead.
I'm currently using Windows Vista

You're the 2nd person in as many messages to report that 127.0.0.1 works but localhost does not.  There are some differences in what you have reported (you are using Apache, the other is using the dev server), but one (I'm guessing) significant common thing: you are both using Windows Vista.  Googling "resolving localhost vista" nets about 65K hits.  From a brief scan I get the impression this is a Vista problem, and either disabling IPv6 or manually fixing up the hosts file so that localhost resolves to an IPv4 address is required to fix it. You'll have to Google for the details yourself, I don't have a Vista machine to experiment on.

Karen

nenduvel

unread,
Mar 11, 2009, 3:07:10 AM3/11/09
to Django users
I'm having the same problem but i'm running mac os x (10.4). changing
the hostname with the command "hostname name" didn't solve the
problem. can you check if the mod_python module works, without
displaying the site?

greetz,

tom

On 11 mrt, 03:00, Karen Tracey <kmtra...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages