File tree Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11def register_blueprints (app ):
22 with app .app_context ():
3- from site .routes import site_routes
3+ from web_site .routes import web_site_routes
44 from telegram_bot .routes import telegram_blueprint
55
6- app .register_blueprint (site_routes )
6+ app .register_blueprint (web_site_routes )
77 app .register_blueprint (telegram_blueprint , url_prefix = '/telegram' )
Original file line number Diff line number Diff line change 1515 {% block navbar %}
1616 < nav class ="navbar navbar-expand-lg navbar-dark bg-dark ">
1717 < div class ="container ">
18- < a class ="navbar-brand " href ="{{ url_for('site_routes .index') }} ">
18+ < a class ="navbar-brand " href ="{{ url_for('web_site_routes .index') }} ">
1919 Mathematician Bot
2020 </ a >
2121
2222 < div class ="collapse navbar-collapse " id ="base-navbar ">
2323 < ul class ="navbar-nav mr-auto ">
2424 < li class ="nav-item ">
25- < a class ="nav-link " href ="{{ url_for('site_routes .index') }} ">
25+ < a class ="nav-link " href ="{{ url_for('web_site_routes .index') }} ">
2626 Web
2727 </ a >
2828 </ li >
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ from flask import Blueprint , render_template
2+
3+
4+ web_site_routes = Blueprint ('web_site_routes' , __name__ )
5+
6+
7+ @web_site_routes .route ('/' )
8+ def index ():
9+ return render_template ('web_site_routes/index.html' )
You can’t perform that action at this time.
0 commit comments