Flask-Web-App-Tutorial
Flask-Web-App-Tutorial copied to clipboard
Code for the note storing flask web app made during a YouTube video.
Add ```python3 main.py``` as a running method, ```python main.py``` is not required for those having ```python3```.
For newer versions of Flask-SQLAlchemy (>3.x I believe), app context is required when performing `db.create_all()` and other operations. "You must be in an active Flask application context to execute queries...
Here is the code. from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import path from flask_login import LoginManager db = SQLAlchemy() DB_NAME = "database.db" def create_app(): app =...
I've copied the code from the github page and it's giving me a user is undefined error. This is my first time ever using html so I am pretty lost...
How can we order the Notes by date in desc in view.home? Is there a better way to sort Note in `current_user.Note` object and return `user=current_user` back to home page...
When I am trying to log in or just hit enter with the email bar filled in, I get redirected to a faulty page with this is as the error,...
Here is the complete error, i have played around with some of the other tabs on this Github around this issue and have not found success being able to sign...
Could someone please help with the error I am getting with the home.html file? There were 3 error, but I updated the code as I noticed that "note.id" wasn't being...
 i don't know how to fix this issue
``` from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import path db = SQLAlchemy() DB_NAME = "database.db" def create_app(): app = Flask(__name__) app.config['SECRET_KEY'] = 'hjshjhdjah kjshkjdhjs' app.config['SQLALCHEMY_DATABASE_URI'] =...