[SPAM] Re: [SPAM] [mod_python] [SPAM] mod python installation problem

Swati Mazumder swati at ibcs.in
Tue Sep 18 12:30:49 EDT 2007


Hi Jon,

I have tried this before, but was making some silly mistake for sure and it 
did not work. This time it worked.

Many Thanks,-
Swati

----- Original Message ----- 
From: "jon heise" <jubei at csh.rit.edu>
To: <mod_python at modpython.org>
Sent: Tuesday, September 18, 2007 9:34 PM
Subject: Re: [SPAM] [mod_python] [SPAM] mod python installation problem


> Swati Mazumder wrote:
>> Hi All,
>>  My apache installation directory is /home/djtstdir/apachedj
>> I have created django project at location /home/djtstdir/djproject
>>  Here is what I have done, the part of django configuration in apache 
>> configuration file
>> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>> # Example:
>> # LoadModule foo_module modules/mod_foo.so
>> #
>> LoadModule python_module modules/mod_python.so
>> #;
>> :
>> :
>> :
>> #add location directive
>> <location "/djproject/">
>>         SetHandler python-program
>>         PythonHandler django.core.handlers.modpython
>>         SetEnv DJANGO_SETTINGS_MODULE /home/djtstdir/djproject
>>         PythonDebug On
>>         PythonInterpreter djproject
>> </location>
>> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>> I have modified urls.py to test a simple application, but its showing 404 
>> error. Here is what I am getting in log file,-
>>  ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>> [Fri Sep 14 04:07:06 2007] [notice] mod_python: using mutex_directory 
>> /tmp
>> [Fri Sep 14 04:07:06 2007] [notice] Apache/2.2.4 (Unix) mod_python/3.3.1 
>> Python/2.4.4 configured -- resuming normal operations
>> [Fri Sep 14 04:07:53 2007] [error] [client 220.226.82.78] File does not 
>> exist: /home/djtstdir/apachedj/htdocs/favicon.ico
>> [Fri Sep 14 04:09:22 2007] [error] [client 220.226.82.78] File does not 
>> exist: /home/djtstdir/apachedj/htdocs/now
>> [Fri Sep 14 04:09:23 2007] [error] [client 220.226.82.78] File does not 
>> exist: /home/djtstdir/apachedj/htdocs/favicon.ico
>> [Mon Sep 17 02:35:57 2007] [notice] Graceful restart requested, doing 
>> restart
>> [Mon Sep 17 02:35:57 2007] [notice] mod_python: Creating 8 session 
>> mutexes based on 256 max processes and 0 max threads.
>> [Mon Sep 17 02:35:57 2007] [notice] mod_python: using mutex_directory 
>> /tmp
>> [Mon Sep 17 02:35:57 2007] [notice] Apache/2.2.4 (Unix) mod_python/3.3.1 
>> Python/2.4.4 configured -- resuming normal operations
>> [Mon Sep 17 02:36:10 2007] [notice] SIGHUP received.  Attempting to 
>> restart
>> [Mon Sep 17 02:36:10 2007] [notice] mod_python: Creating 8 session 
>> mutexes based on 256 max processes and 0 max threads.
>> [Mon Sep 17 02:36:10 2007] [notice] mod_python: using mutex_directory 
>> /tmp
>> [Mon Sep 17 02:36:10 2007] [notice] Apache/2.2.4 (Unix) mod_python/3.3.1 
>> Python/2.4.4 configured -- resuming normal operations
>> [Mon Sep 17 02:36:51 2007] [error] [client 220.226.23.45] File does not 
>> exist: /home/djtstdir/apachedj/htdocs/now
>> [Mon Sep 17 02:36:53 2007] [error] [client 220.226.23.45] File does not 
>> exist: /home/djtstdir/apachedj/htdocs/favicon.ico
>> [Mon Sep 17 02:37:14 2007] [error] [client 220.226.23.45] File does not 
>> exist: /home/djtstdir/apachedj/htdocs/now
>> [Mon Sep 17 02:37:36 2007] [error] [client 220.226.23.45] File does not 
>> exist: /home/djtstdir/apachedj/htdocs/now
>> [Mon Sep 17 02:37:37 2007] [error] [client 220.226.23.45] File does not 
>> exist: /home/djtstdir/apachedj/htdocs/favicon.ico
>> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>  Any idea what can be the problem.
>>  Many Thanks,
>> Swati
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Mod_python mailing list
>> Mod_python at modpython.org
>> http://mailman.modpython.org/mailman/listinfo/mod_python
>>
> try adding PythonPath "['/home/djtstdir'] + sys.path"  to your location 
> directive, also change the DJANGO_SETTINGS_MODULE from 
> /home/djtstdir/djproject to djproject.settings  assuming settings is the 
> name of settings file in your project
>
> - jon heise
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
> 




More information about the Mod_python mailing list