django入门7之django template和xadmin经常使用技巧

django入门7之django template和xadmin经常使用技巧html <li {% if request.path|slice:'7' == '/course' %}class="active"{% endif %}>   根据访问路径url来判断django 如访问:http://127.0.0.1:8000/course/list  截取request.path的7位若是是 /
相关文章
相关标签/搜索