Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/281.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Django不提供管理静态文件(Apache、mod_wsgi)_Python_Django_Apache_Ubuntu_Mod Wsgi - Fatal编程技术网

Python Django不提供管理静态文件(Apache、mod_wsgi)

Python Django不提供管理静态文件(Apache、mod_wsgi),python,django,apache,ubuntu,mod-wsgi,Python,Django,Apache,Ubuntu,Mod Wsgi,我在管理静态文件(css、javascript、图像)方面有问题。。。我无法显示此正确的模板 操作系统:Ubuntu 12.10/Apache2/mod_wsgi/Django 1.4 我的apache配置gile: <VirtualHost *:80> WSGIScriptAlias / /var/www/myhost.com/apache/buzzbal.wsgi ServerName www.myhost.com Alias /static /var/www/myhost.c

我在管理静态文件(css、javascript、图像)方面有问题。。。我无法显示此正确的模板

操作系统:Ubuntu 12.10/Apache2/mod_wsgi/Django 1.4

我的apache配置gile:

<VirtualHost *:80>
WSGIScriptAlias / /var/www/myhost.com/apache/buzzbal.wsgi

ServerName www.myhost.com
Alias /static /var/www/myhost.com/static/

<Directory /var/www/myhost.com/>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

WSGIScriptAlias//var/www/myhost.com/apache/buzzbal.wsgi
服务器名www.myhost.com
别名/static/var/www/myhost.com/static/
命令允许,拒绝
通融
使用:

也就是说,子URL装入点和目标路径上的尾部斜杠。

使用:


也就是说,在子URL装入点和目标路径上都有尾随斜杠。

确切的问题是什么?它是否没有从django重定向,或者您没有权限?确切的问题是什么?它是否从django重定向,或者您没有权限?
Alias /static/ /var/www/myhost.com/static/