Sample Flask App
- -- This is the sample Flask app for - Learn Enough Python - to Be Dangerous. Learn more on the About page. -
- -- Click the Sator - Square below to run the custom Palindrome - Detector. -
- - -
-
- diff --git a/Listing_10.10.py b/Listing_10.10.py deleted file mode 100644 index 340c61e..0000000 --- a/Listing_10.10.py +++ /dev/null @@ -1,24 +0,0 @@ -import os -from flask import Flask, render_template - -def create_app(test_config=None): - """Create and configure the app.""" - app = Flask(__name__, instance_relative_config=True) - . - . - . - @app.route("/") - def index(): - return render_template("index.html") - - @app.route("/about") - def about(): - return render_template("about.html") - - @app.route("/palindrome") - def palindrome(): - return render_template("palindrome.html") - - return app - -app = create_app() diff --git a/Listing_10.11.html b/Listing_10.11.html deleted file mode 100644 index 3e892dd..0000000 --- a/Listing_10.11.html +++ /dev/null @@ -1,37 +0,0 @@ - - -
- -
-
- - This is the sample Flask app for - Learn Enough Python - to Be Dangerous. Learn more on the About page. -
- -- Click the Sator - Square below to run the custom Palindrome - Detector. -
- - -
-
-
-
-
-
- - This is the sample Flask app for - Learn Enough Python - to Be Dangerous. Learn more on the About page. -
- -- Click the Sator - Square below to run the custom Palindrome - Detector. -
- - -
-
-{% endblock %}
diff --git a/Listing_10.25.txt b/Listing_10.25.txt
deleted file mode 100644
index c8a9871..0000000
--- a/Listing_10.25.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-(venv) $ pytest
-============================= test session starts ==============================
-collected 3 items
-
-tests/test_site_pages.py ... [100%]
-
-============================== 3 passed in 0.01s ===============================
diff --git a/Listing_10.26.py b/Listing_10.26.py
deleted file mode 100644
index 6a720a5..0000000
--- a/Listing_10.26.py
+++ /dev/null
@@ -1,23 +0,0 @@
-def test_index(client):
- response = client.get("/")
- assert response.status_code == 200
- base_title = "Learn Enough Python Sample App"
- title = f"