Hi all,

I'm trying to migrate my Django project from dev. server to Apache on
the same machine running Windows. Content generated by Django is OK,
but no static file from DocumentRoot is served.

My Apache & mod-python is configured this way:

<Location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE bizweb.server_settings
    PythonDebug On
    PythonPath "[r'C:\\.WKS-PF\\PRJ\\ECLIPSE\\Django\\src'] + sys.path"
</Location>

DocumentRoot "V:/WWW-ROOT/bizweb"

<Directory "V:/WWW-ROOT/bizweb">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

###

If I tried navigate to particular file, eg.
http://localhost/wssmedia/css/img/arr0_blue.gif
and I got mod_python error:
[...]
DocumentRoot:   'V:/WWW-ROOT/bizweb'

URI:            '/wssmedia/css/img/arr0_blue.gif'
Location:       '/'
Directory:      None
Filename:       'V:/WWW-ROOT/bizweb/wssmedia/css/img/arr0_blue.gif'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'django.core.handlers.modpython'
[...]
Traceback (most recent call last):
[...]
AttributeError: 'module' object has no attribute 'handler404'


Filename V:/WWW-ROOT/bizweb/wssmedia/css/img/arr0_blue.gif is correct
and the file *does* exist, but Apache did not serve it - it looks like
the Apache routes all /wssmedia/.... requests to mod_python, instead
serving them itself.

###

Please, could anybody advice what is wrong in my Apache and/or Django settings?


Thanks in advance,
Peter

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to