Re: What is happening with mod_python

2007-10-18 Thread Leo

In particular, I find it's really useful to configure the mod_python
test page as described at 
http://www.modpython.org/live/current/doc-html/inst-trouble.html;
that will show you, among other things, the current sys.path you're
using independent of Django.




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



Re: What is happening with mod_python

2007-10-17 Thread Graham Dumpleton

On Oct 18, 8:33 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On 10/17/07, Michael Newman <[EMAIL PROTECTED]> wrote:
> ...
>
>
>
> > ImportError: No module named django.core.handlers.modpython
>
> ...
> > my conf file is a basic:
>
> > 
> > SetHandler python-program
> > PythonHandler django.core.handlers.modpython
> > SetEnv DJANGO_SETTINGS_MODULE videouploader.settings
> > PythonDebug On
> > PythonPath "['/home/django/myapp']+sys.path"
> > 
>
> > can anyone see the stupid mistake that I am making?
>
> Make sure that the sys.path for the python Apache's user has Django on
> the sys.path and that it has permissions to execute all the
> directories up to it.

In particular, since mod_python is using Python from /usr/local/lib/
python2.5, ensure that it was this version of Python you installed
Django for and not one in /usr/lib/pythonX.Y.

Graham


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



Re: What is happening with mod_python

2007-10-17 Thread Jeremy Dunck

On 10/17/07, Michael Newman <[EMAIL PROTECTED]> wrote:
...
>
> ImportError: No module named django.core.handlers.modpython
>
...
> my conf file is a basic:
>
> 
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE videouploader.settings
> PythonDebug On
> PythonPath "['/home/django/myapp']+sys.path"
> 
>
> can anyone see the stupid mistake that I am making?

Make sure that the sys.path for the python Apache's user has Django on
the sys.path and that it has permissions to execute all the
directories up to it.

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



What is happening with mod_python

2007-10-17 Thread Michael Newman

This is strange and I am sure I am doing something wrong, but i have
been starring at this for a while now and can't see it.
I am getting this mod_python error:

ProcessId:  31673
Interpreter:'mysite'

ServerName: 'mysite'
DocumentRoot:   '/var/www/vhosts/mysite/httpdocs'

URI:'/myapp'
Location:   '/myapp'
Directory:  None
Filename:   '/var/www/vhosts/mysite/httpdocs/myapp'
PathInfo:   ''

Phase:  'PythonHandler'
Handler:'django.core.handlers.modpython'

Traceback (most recent call last):

  File "/usr/local/lib/python2.5/site-packages/mod_python/
importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/local/lib/python2.5/site-packages/mod_python/
importer.py", line 1202, in _process_target
module = import_module(module_name, path=path)

  File "/usr/local/lib/python2.5/site-packages/mod_python/
importer.py", line 304, in import_module
return __import__(module_name, {}, {}, ['*'])

ImportError: No module named django.core.handlers.modpython




my conf file is a basic:




SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE videouploader.settings
PythonDebug On
PythonPath "['/home/django/myapp']+sys.path"


can anyone see the stupid mistake that I am making?


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