django-部署mod_wsgi css没有显示

时间:2012-09-02 13:47:11

标签: django apache2 mod-wsgi

我使用libapache2-mod_wsgi来部署我的django应用程序。我写了httpd.conf如下:

Alias /static/ /home/ubuntu/similarkind/similarkind/static/

<Directory /home/ubuntu/similarkind/similarkind/static>
Order deny,allow
Allow from all
</Directory>

WSGIScriptAlias / /home/ubuntu/similarkind/similarkind/wsgi.py
WSGIPythonPath /home/ubuntu/similarkind:/home/ubuntu/pysushu/lib/python2.7/site-packages

<Directory /home/ubuntu/similarkind/similarkind>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>

我的应用程序运行正常但css和javascript没有显示出来。 我在静态文件夹中有我的css和js。我的app目录结构也是

/similarkind
    /static
        /foundation-3
            /stylesheets
            /js
        /jquery-ui
            /css
            /js

谁能说出我错过了什么?

0 个答案:

没有答案