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)
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))
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)
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)
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)