Ejemplo n.º 1
0
def index():
    title = "Новости Python"
    weather = weather_by_city("Vladivostok")
    news_list = get_python_news()
    return render_template('index.html',
                           page_title=title,
                           weather=weather,
                           news_list=news_list)
Ejemplo n.º 2
0
def index():
    local_page_title = "Новости Python"
    weather_info = weather.weather_in_the_city(weather.MY_CITY)
    news_list = get_python_news()
    return (render_template("index.html",
                            page_title=local_page_title,
                            weather=weather_info,
                            news_list=news_list))
Ejemplo n.º 3
0
def index():
    title = "Новости Python"
    weather = weather_by_city("Moscow,Russia")
    news = get_python_news()
    return render_template("index.html",
                           page_title=title,
                           weather=weather,
                           news_list=news_list)
Ejemplo n.º 4
0
def index():
    title = "Forecast"
    weather = weather_by_city("Lausanne, Switzerland")
    news = get_python_news()
    return render_template('index.html',
                           page_title=title,
                           weather=weather,
                           news=news)
Ejemplo n.º 5
0
def index():
    title = 'Новости Python'
    weather = weather_by_city('Moscow,Russia')
    news = get_python_news()
    return render_template('index.html', page_title=title, weather=weather, news_list=news)