1、输入地址(http://127.0.0.1:8000/bar/track/)
根据bar去找初始化urls中的值,去找引入的值
url(r'^bar/', include('bar.urls'))
2、找到bar下面的urls.py文件
其中有:
url(r'^track/$', ft_view.TrackView.as_view(), name='track'),
根据track识别到,然后跳转到TrackView中
3、再对应的view中找到请求的路径,访问静态文件等
HttpResponse(content=open("./templates/track.html").read())
访问到文件读取html和css、js文件
js文件中有请求的接口同样的方式去找对应的view文件