【发布时间】:2015-11-23 18:37:22
【问题描述】:
【问题讨论】:
标签: django django-rest-framework
【问题讨论】:
标签: django django-rest-framework
感谢大家的快速回复,我刚刚用以下方法解决了这个问题:
环境:Apache 和 WSGI
/etc/apache2/sites-enabled/000-default
Alias /static/ /path/to/mysite.com/static/ <Directory /path/to/mysite.com/static> Require all granted </Directory>
settings.py
STATIC_ROOT = BASE_DIR + '/static' STATIC_URL = '/static/'
python manage.py collectstatic 并重启 Apache【讨论】: