Flask-Web-App-Tutorial
Flask-Web-App-Tutorial copied to clipboard
Code for the note storing flask web app made during a YouTube video.
function deleteNote(noteId) { console.log('deleteNote function called with noteId:', noteId); fetch("/delete-note", { method: "POST", body: JSON.stringify({ noteId: noteId }), }).then((_res) => { window.location.href = "/"; }); } i tried adding console.log...
I got this error when signing up: ValueError: Invalid hash method 'sha256' . Changing the method from sha256 to pbkdf2:sha256 made it work.
Not sure if anyone else has had this issue. Here is the Traceback: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/flask/app.py", line 1500, in __call__ return self.wsgi_app(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/flask/app.py",...
Cannot for the love of God figure out what I did wrong here. First few minutes following the video and I'm completely stuck :) Can anyone help this coding n00b?...
ValueError: Invalid hash method 'sha256'. ``` new_user = User(email=email, first_name=first_name, password=generate_password_hash( password1, method='sha256')) ```
Code: "from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import path db = SQLAlchemy() DB_NAME = "CSIA.db" def create_app(): app = Flask(__name__) app.config['SECRET_KEY'] = 'www' app.config['SQLALCHEMY_DATABASE_URI'] = f'sqlite:///{DB_NAME}'...
This pull request adds a Dockerfile and a docker-compose.yml file to containerize the Flask web app and its frontend components.
I am admittedly extremely new to Python and coding in general, however, I was following along with this tutorial a day ago and everything was going well up until it...