静态文件配置:
在settings.py:
添加:
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(os.path.dirname(__file__), '../static/').replace('\\','/'),
]
静态文件配置:
在settings.py:
添加:
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(os.path.dirname(__file__), '../static/').replace('\\','/'),
]