What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-24 11:50:12
from flask import Flask app = Flask(__name__) @app.route('/',methods = ('GET')) def home(): return ('Hello World!!1') if __name__== '_main_': app.run()
from flask import Flask app = Flask(__name__) @app.route('/',methods = ('GET')) def home(): return ('Hello World!!1') if __name__== '_main_': app.run() Add solution -
-
Other 2022-02-19 05:05:14
forgot password miguel grinberg
class ResetPasswordForm(FlaskForm): password = PasswordField('Password', validators=[DataRequired()]) password2 = PasswordField( 'Repeat Password', validators=[DataRequired(), EqualTo('password')]) submit = SubmitField('Request Passwor... Add solution -
Python 2022-02-03 13:56:12
how to get value from txtbox in flask
from flask import Flask, request, render_template app = Flask(__name__) @app.route('/') def my_form(): return render_template('my-form.html') @app.route('/', methods=['POST']) def my_form_post(): text = request.form['text'] processed_text =... Add solution -
Python 2022-02-03 00:30:02
flask app.route
# Extremely simple flask application, will display 'Hello World!' on the screen when you run it # Access it by running it, then going to whatever port its running on (It'll say which port it's running on). from flask import Flask app = Flask(__name__) @a... Add solution -
Python 2022-02-02 21:31:21
flask mongoengine getting started
'''Basic setup can be done by defining MONGODB_SETTINGS on app.config and creating a MongoEngine instance.''' from flask import Flask from flask_mongoengine import MongoEngine app = Flask(__name__) app.config['MONGODB_SETTINGS'] = { "db": &... Add solution -
-
Python 2022-02-02 20:31:10
mongoalchemy flask
from flask import Flask from flask.ext.mongoalchemy import MongoAlchemy app = Flask(__name__) app.config['MONGOALCHEMY_DATABASE'] = 'library' db = MongoAlchemy(app) class Author(db.Document): name = db.StringField() class Book(db.Document): titl... Add solution -
Shell/Bash 2022-02-01 01:47:24
how to install wtforms on mac terminal
[Running] python -u "c:\Users\PC\Desktop\code\Flask_Blog\forms.py" Traceback (most recent call last): File "c:\Users\PC\Desktop\code\Flask_Blog\forms.py", line 1, in <module> from flask_wtf import FlaskForm ModuleNotFoundEr... Add solution -
Other 2022-01-30 21:12:12
docker scikit
# Use an official Python runtime as a parent image FROM python:3.6-slim # Set the working directory to /app WORKDIR /app # Copy the current directory contents into the container at /app ADD . /app # Install any needed packages specified in requirements... Add solution