========= Home Page ========= ---- Path ---- The http://hostname auto redirect to http://hostname/homepage ---- Code ---- .. class:: homepage.views .. method:: home(request) Return the home page with weather and novel -------- Template -------- ````````` home.html ````````` .. attribute:: all_novel Require 6 objects of all status novels .. attribute:: read_novel Require 6 objects of read novels ``status=1`` .. attribute:: want_novel Require 6 objects of wanted novels ``status=4`` .. attribute:: weather_location The location of the weather .. attribute:: weather_viewbox_n weather_path_n The viewbox and path of the weather'svg .. attribute:: weather_text_n The text of the weather .. attribute:: weather_temp_n_low weather_temp_n_high The tempurature of the days ----------------- Using api&project ----------------- Weather information: seniverse_ Weather svg: iconfont_ .. _seniverse: https://www.seniverse.com/api .. _iconfont: http://www.iconfont.cn/collections/detail? spm=a313x.7781069.0.da5a778a4&cid=2178