django admin样是缺失
apache 发布的django admin样是缺失
那个modwsgi的代码是这样的
<VirtualHost *:9090>
DocumentRoot "D:/www/Na/yunsa"
ErrorLog logs/wsgi-error.log
TransferLog logs/wsgi-access.log
<Directory "D:/www/Na/yunsa/">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
IndexOptions FancyIndexing
</Directory>
Alias /media D:/www/Python25/Lib/site-packages/django/contrib/admin/static
WSGIScriptAlias / "D:/www/Narnia/yunsa/yunsa.wsgi"
<Directory "D:/www/Python25/Lib/site-packages/django/contrib/admin/static/">
Order allow,deny
Options Indexes
Allow from all
IndexOptions FancyIndexing
</Directory>
<Location "/media/">
SetHandler None
</Location>
<LocationMatch "\.(jpg|gif|png|txt|ico|pdf|css|jpeg)$">
SetHandler None
</LocationMatch>
</VirtualHost>
setting配置:ADMIN_MEDIA_PREFIX='/media/',MEDIA_ROOT = 'D:/Langyan/Python25/Lib/site-packages/django/contrib/admin/static/'
但是样式出不来,目前在晚上很多地方查了资料都是这么写的但是我这样配置了还是不行
[解决办法]
django版本是多少?1.4以后就不用static目录了啊。 你在页面中查看一下源代码,看一下css、JS 等链接的别名是什么!