Answer the question
In order to leave comments, you need to log in
What is the Werkzeug in Flask for?
Werkzeug is a comprehensive WSGI web application library. It started as a simple collection of various utilities for WSGI applications and has become one of the most advanced WSGI utility libraries.
1) WSGI web application - what do you mean?
2) What are some examples of Werkzeug applications?
Answer the question
In order to leave comments, you need to log in
WSGI web application - what do you mean?
What are some examples of Werkzeug applications?
from werkzeug.contrib.cache import MemcachedCache
cache = MemcachedCache(['127.0.0.1:11211'])
from werkzeug.security import generate_password_hash, check_password_hash
class User(db.Model):
password = db.Column(db.String(80))
def __init__(self, username, password, email):
self.password = generate_password_hash(password)
def check_password(self, password):
return check_password_hash(self.password, password)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question