Initial commit
This commit is contained in:
11
all_paw_care/pages/README.md
Normal file
11
all_paw_care/pages/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Pages
|
||||
|
||||
Blueprints for /pages routes
|
||||
|
||||
## Routes
|
||||
|
||||
- Home
|
||||
- FAQ
|
||||
- Services
|
||||
|
||||
|
||||
7
all_paw_care/pages/__init__.py
Normal file
7
all_paw_care/pages/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from flask import Blueprint
|
||||
|
||||
pages = Blueprint('pages', __name__, url_prefix='/pages')
|
||||
|
||||
# place here, else circular import errors
|
||||
from all_paw_care.pages import routes
|
||||
|
||||
17
all_paw_care/pages/routes.py
Normal file
17
all_paw_care/pages/routes.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from all_paw_care.pages import pages
|
||||
|
||||
from flask import render_template,url_for
|
||||
|
||||
@pages.route('/')
|
||||
@pages.route('/home')
|
||||
def home():
|
||||
return render_template("pages/index.html")
|
||||
|
||||
@pages.route('/faq')
|
||||
def faq():
|
||||
return render_template("pages/faq.html")
|
||||
|
||||
@pages.route('/services')
|
||||
def services():
|
||||
return render_template("pages/services.html")
|
||||
|
||||
Reference in New Issue
Block a user