Links
- See also: werkzeug
- GitHub:
flask |
werkzeug
- Docs Home
- API Reference
- Design Decisions in Flask
- Foreword for Experienced Programmers
- Deploying Flask on Google App Engine (github)
- Becoming Big
- Message Flashing
- Pluggable Views
- The Application Context
- The Request Context
- Tutorial
- Routing
- API
- Request
- Response
- flask.make_response()
- flask.Flask.make_response()
- flask.Response class
- set_cookie
set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=False)
- werkzeug.Response
- You can just set the
expires
and last_modified
fields on the response object
to set the Expires
and Last-Modified
headers without having to bother
formatting it.
- To format manually, ref:
- The Response object includes CommonResponseDescriptorsMixin
that defines
expires = header_property('Expires', None, parse_date, http_date, ...
- werkzeug/http.py: http_date(timestamp=None)
- Modular Applications with Blueprints
- Testing
- Signing
- Articles
- Add Ons
Debug mode
# Set debug flag to true. While using app.run(debug=True) or
# app.run(debug=True) might appear equivalent, that won't have any
# effect if you're not using flask's builtin (i.e. development)
# wsgi server.
app.config.update(DEBUG=True)