Hi,
I'm hoping someone can help, as I seem to be going around in
circles
with this issue.
No matter what I try I cannot get this to function.
httpd.conf snippet
------------------
<Location "/">
Options FollowSymLinks
Order allow,deny
Allow from all
SetHandler python-program
PythonHandler django.core.handlers.modpython
PYTHONPATH "['/usr/local/django_src'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On
</Location>
Location permissions
drwxr-xr-x 4 trevor trevor 4096 Dec 8 23:48 mysite
-rwxr-xr-x 1 trevor trevor 123 Dec 9 00:11 environment
drwxr-xr-x 2 trevor trevor 4096 Dec 8 23:00 home
-rwxr-xr-x 1 trevor trevor 546 Dec 8 00:17 manage.py
-rwxr-xr-x 1 trevor trevor 2801 Dec 8 23:48 settings.py
drwxr-xr-x 3 trevor trevor 4096 Dec 8 23:19 templates
-rwxr-xr-x 1 trevor trevor 371 Dec 8 23:22 urls.py
-rwxr-xr-x 1 trevor trevor 377 Dec 8 23:23 views.py
(init and .pyc files stripped)
Page error
----------
Mod_python error: "PythonHandler
django.core.handlers.modpython"
Traceback (most recent call last):
File
"/usr/lib64/python2.4/site-packages/mod_python/apache.py", line
287, in HandlerDispatch
log=debug)
File
"/usr/lib64/python2.4/site-packages/mod_python/apache.py", line
461, in import_module
f, p, d = imp.find_module(parts[i], path)
ImportError: No module named django
Commandline
-----------
Python 2.4.4 (#1, Oct 23 2006, 13:58:18)
[GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> import mod_python
>>> mod_python.version
'3.2.8'
>>> import mysite
>>> import mysite.settings
>>>
python -vvv
>>> import mysite
# trying mysite.so
# trying mysitemodule.so
# trying mysite.py
# trying mysite.pyc
import mysite # directory /usr/local/django_src/mysite
# trying /usr/local/django_src/mysite/__init__.so
# trying /usr/local/django_src/mysite/__init__module.so
# trying /usr/local/django_src/mysite/__init__.py
# /usr/local/django_src/mysite/__init__.pyc
matches /usr/local/django_src/mysite/__init__.py
import mysite # precompiled
from /usr/local/django_src/mysite/__init__.pyc
>>>
Notes
-----
Django Development code sym linked to
/usr/lib64/site_packages/django
Command line works
Development web server works
Fedora 6 OS
This is also located at http://dpaste.com/3571/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---