Home Page

Path

The http://hostname auto redirect to http://hostname/homepage

Code

class homepage.views
home(request)

Return the home page with weather and novel

Template

home.html

all_novel

Require 6 objects of all status novels

read_novel

Require 6 objects of read novels status=1

want_novel

Require 6 objects of wanted novels status=4

weather_location

The location of the weather

weather_viewbox_n weather_path_n

The viewbox and path of the weather’svg

weather_text_n

The text of the weather

weather_temp_n_low weather_temp_n_high

The tempurature of the days

Using api&project

Weather information: seniverse

Weather svg: iconfont