Hello,
have you set proper aliases in apache site config?
Alias /robots.txt /path/to/
mysite.com/static/robots.txt
Alias /favicon.ico /path/to/
mysite.com/static/favicon.ico
AliasMatch ^/([^/]*\.css) /path/to/
mysite.com/static/styles/$1
Alias /media/ /path/to/
mysite.com/media/
Alias /static/ /path/to/
mysite.com/static/
<Directory /path/to/
mysite.com/static>
Order deny,allow
Allow from all
</Directory>
<Directory /path/to/
mysite.com/media>
Order deny,allow
Allow from all
</Directory>
or similar. Check that apache can read
directories /path/to/
mysite.com/{static,media} ...
You should have appropriate settings in your settings.py, eg.
MEDIA_URL = '/media/'
STATIC_URL = '/static/'
MEDIA_ROOT and STATIC_ROOT aren't important in this case.
Then, take a look at you access.log, if there is something relevant.
Does it works now? If no, please send your settings.py and apache site
config file. (Don't forget to delete sensitive data from settings.py
before posting here).
Cheers,
Tom
Dne Thu, 18 Oct 2012 06:39:13 -0700 (PDT)
Dae_James <
daed...@126.com> napsal(a):
> <
https://lh3.googleusercontent.com/-JvizcFwx52s/UIADfuCY-UI/AAAAAAAAAAM/59oDrVVuHzA/s1600/Untitled20121018212559.png>