"找不到静态文件"

时间:2015-10-22 14:05:10

标签: python django apache

我最近因为使用Apache和wsgi进行部署而感到困惑。 这里有一些文件。

/usr/local/apache/conf/httpd.conf

<VirtualHost *:80>
    DocumentRoot "/data/www/default/dj/tangle_with_django_project"
    WSGIScriptAlias / "/data/www/default/dj/tangle_with_django_project/tangle_with_django_project/wsgi.py"
    Alias /static/ "data/www/default/dj/tangle_with_django_project/static"
    <Directory /data/www/default/dj/tangle_with_django_project/static>
            Order deny,allow
            Allow from all
    </Directory>
    ServerName django.skywhat.com
</VirtualHost>

抱歉写下“纠结”这个词。而不是探戈&#39;劈头。 :( 和其他人。

── static
│   ├── css
│   ├── images
│   │   └── rango.jpg
│   └── js
│       ├── jquery-1.11.3.min.js
│       ├── rango-ajax.js
│       └── rango-jquery.js

/data/www/default/dj/tangle_with_django_project/tangle_with_django_project/wsgi.py

import os
import sys
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE",     "tangle_with_django_project.settings")
sys.path.append(r"/data/www/default/dj/tangle_with_django_project")
application = get_wsgi_application()

这是我正在测试的网址。

http://django.skywhat.com/rango 我通过搜索谷歌找不到解决方案......

0 个答案:

没有答案
相关问题