STATIC_URL = '/static/'
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
STATIC_ROOT = os.path.join(BASE_DIR, 'fashstatic')
STATICFILES_DIRS = (
os.path.join(BASE_DIR, "static"),
)
STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder"
)这是一小段static配置,已经collectstatic 到了 fashstatic 目录了,剩下该怎么操作?或者还有哪里需要配置吗?用的是IIS,虚拟目录也配置成功了,访问127.0.0.1/static/css/main.css 404127.0.0.1/media/css/main.css 就可以访问成功
添加回答
举报
0/150
提交
取消