1. urls.py中添加:
类似的js, images都一样。
2. 引用CSS:
href="css/base.css中的css即为urls.py中的配置的css访问路径。
(r'^css/(?P<path>.*)$', 'django.views.static.serve',{ 'document_root': \
'/home/tony/dj_my_pro/today_go/templates/CSS' }),
类似的js, images都一样。
2. 引用CSS:
<link rel="stylesheet" href="css/base.css" type="text/css" media="screen" />
href="css/base.css中的css即为urls.py中的配置的css访问路径。