34 lines
531 B
Python
34 lines
531 B
Python
from flask import Flask, render_template, request, redirect, url_for
|
|
|
|
'''
|
|
Red underlines? Install the required packages first:
|
|
Open the Terminal in PyCharm (bottom left).
|
|
|
|
On Windows type:
|
|
python -m pip install -r requirements.txt
|
|
|
|
On MacOS type:
|
|
pip3 install -r requirements.txt
|
|
|
|
This will install the packages from requirements.txt for this project.
|
|
'''
|
|
|
|
app = Flask(__name__)
|
|
|
|
all_books = []
|
|
|
|
|
|
@app.route('/')
|
|
def home():
|
|
pass
|
|
|
|
|
|
@app.route("/add")
|
|
def add():
|
|
pass
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run(debug=True)
|
|
|