I have looked a great deal however i still have trouble with the static files (css, image,...) with my django website.

I am using mod_wsgi with apache on archlinux 64bits

I have added it during my http.conf :

LoadModule wsgi_module modules/mod_wsgi.so

<VirtualHost *:80>
    WSGIDaemonProcess mart.localhost user=mart group=users processes=2 threads=25
    WSGIProcessGroup mart.localhost
    LogLevel debug

    Alias /media /home/mart/programmation/python/django/martfiles/media/
    <Directory /home/mart/programmation/python/django/martfiles/>
        Order allow,deny
        Allow from all

    WSGIScriptAlias / /srv/http/wsgi-scripts/django.wsgi

I attempted to make use of the django.wsgi during my home folder however it does not work (permission denied to access /) (oddly it really works basically make use of the test script given here)

all of the sites and content (apache folder, wsgi-script, martfiles) possess the permission 775 root:devusers using the group devusers including my user, http and root

during my template base.html, I call the css by doing this :

 <html>  <head>
     <link rel="stylesheet" href="/media/css/style.css" />

and also the error in /var/log/http/error.log

 [Sat Jan 16 13:22:21 2010] [error] [client] (13)Permission denied: access to /media/css/style.css denied, referer: http://localhost/
 [Sat Jan 16 13:22:21 2010] [info] mod_wsgi (pid=14783): Attach interpreter ''





edit : I precise that my django website is working fine (except the periods however i don't believe it's related) so I am unsure it's associated with the django.wsgi file (maybe I am wrong) but what's sure is the fact that I ought to have the ability to make use of the django.wsgi from outdoors the apache folder

basically alter the line Alias /media /home/mart/programmation/python/django/martfiles/media/ with Alias /media /srv/http/media/ and provides the best permissions, it really works. But I'm not going (and should not) to place my media within the apache folder

It's not sufficient just for your directory '/home/mart/programmation/python/django/martfiles/media' that contains static files to become readable and searchable. The consumer that Apache runs as should have read and potentially search access, to any or all parent sites from it look out onto root directory. Since home sites on many systems are 'rwx------' this could deny Apache access regardless of the Deny/Allow directives in Apache configuration.

Suggest you set the Django project and static files outdoors of your house account somewhere and relax the file system permissions as necessary.