Skip to content

Commit 684a901

Browse files
site package was renamed to web-site
1 parent 7b05198 commit 684a901

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

site/routes.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

system/blueprints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
def 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')

system/templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
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.

web_site/routes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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')

0 commit comments

Comments
 (0)