What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-14 02:21:13
sqlite3 with flask web application CRUD pdf
# app/models.py from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from app import db, login_manager class Employee(UserMixin, db.Model): """ Create an Employee table &... Add solution -
Python 2021-11-13 16:26:21
how to make a flask server in python
# This is the code # Find me on discord ZDev1#4511 # We shouldn't install flask in the terminal, it is already imported from flask import Flask app = Flask(__name__) # route @app.route('/') # route function def home(): # send 'hey!' return 'hey!' #... Add solution -
Python 2021-11-13 02:41:10
flask heroku
If u get "No web processes running" Error, Make Sure: 1. your main file is 'app.py' and your main func is app [ app = Flask(__name__), app.run() ] 2. you added gunicorn==20.1.0 to your requirements.txt file 3. you have Procfile with the fo... Add solution -
Python 2021-11-09 21:13:22
jwt authentication python flask
from flask import Flask from flask_jwt import JWT, jwt_required, current_identity from werkzeug.security import safe_str_cmp class User(object): def __init__(self, id, username, password): self.id = id self.username = username ... Add solution -
Shell/Bash 2021-11-07 22:16:10
pgadmin for linux
sudo apt-get update sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev mkdir pgAdmin4 cd pgAdmin4 virtualenv pgAdmin4 cd pgAdmin4 source bin/activate wget https://ftp.postgresql.org/pub/pgadmi... Add solution