# settings.py STATIC_URL = '/static/' # 添加静态文件夹路径 STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'static'), )
可以直接访问即可:
http://localhost:1000/static/css/element.css
不需要在url setting里做任何配置了.
标签:静态,路径,Django,static,设置,css From: https://www.cnblogs.com/pythonClub/p/17738098.html