On Aug 30, 7:26 pm, Bradley Hintze <[email protected]>
wrote:
> Hi all,
>
> I have my site on a production server (apache) and am trying to get
> static files to be served but cannot get it to work (serving on the
> same server). Following the django documentation did not work, I
> edited the httpd.conf as described in the documentation but when I
> tried to restart the server the server quit and would not restart. The
> error log did'nt give any info as to why.
>
> I tried this (http://oebfare.com/blog/2007/dec/31/django-and-static-files/)
> which is very similar to the Django documentation but I get the same
> results as described above.
>
> Here are my httpd.contf settings.
>
> #Serving media files for django
> <Location "/">
>     SetHandler python-program
>     PythonHandler django.core.handlers.modpython
>     SetEnv DJANGO_SETTINGS_MODULE mysite.settings
>     PythonDebug On
> </Location>
>
> <Location "/site_media">
>     SetHandler None
> </Location>
>
> Alias /site_media/
> /Users/bradleyhintze/djcode/production/MolProbity_Compare_test/media
> <Location "/site_media">
>     SetHandler None
> </Location>
>
> WSGIScriptAlias /
> /Users/bradleyhintze/djcode/production/MolProbity_Compare_test/apache/djang 
> o.wsgi
>
> <Directory 
> /Users/bradleyhintze/djcode/production/MolProbity_Compare_test/apache>
> Order deny,allow
> Allow from all
> </Directory>
>
> Any help would be appreciated.
>
> Thanks
>
> --
> Bradley J. Hintze
> Graduate Student
> Duke University
> School of Medicine
> 801-712-8799

Some weird stuff in that configuration file. You have directives for
both mod_python and mod_wsgi. Which one are you using? (mod_wsgi is
*strongly* recommended over mod_python.)
--
DR.

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

Reply via email to