Commit graph

3329 commits

Author SHA1 Message Date
Andrew Crouse
b2bcf461c4 Update documentation for users to use flask-caching instead of the deprecated Werkzeug cache 2018-11-13 14:03:27 -05:00
David Lord
8dd7391dcb Merge pull request #2966 from jangjunha/fix-doc-deferredcallbacks
Docs: Fix deferredcallbacks.rst
2018-10-25 08:54:52 -07:00
jangjunha
f112dc0aed Fix deferred callback doc 2018-10-26 00:33:12 +09:00
David Lord
af0d15271b Merge pull request #2963 from garenchan/bugfix-#2961
Fix #2961:ignore colon followed by slash when split app_import_path
2018-10-24 09:06:39 -07:00
garenchan
9da281c04c ignore colon with slash when split app_import_path
Flask currently supports importing app through a combination of module
path and app variable name, such as '/usr/app.py:my_app'. When the
module path contains a colon, it will conflict with this import way and
a `flask.cli.NoAppException` will be raised.

A file path on a Windows system may contain a colon followed by a slash.
So we solved this problem on Windows by ignoring the colon followed by a
slash when we split app_import_path.

Fix issue #2961.
2018-10-24 23:47:41 +08:00
Jarek Lipski
1a31fc71f6 fix @click.command example by adding parens
Otherwise the example fails with the following error: 
"name = name or cmd.name AttributeError: 'function' object has no attribute 'name'". 

More details: https://stackoverflow.com/a/51923415/4619705
2018-09-19 10:02:51 -07:00
Adrian
e44c8e1b2c Merge pull request #2765 from ThiefMaster/custom-cli-ignore-debug
Add option to not overwrite debug flag in cli
2018-06-14 13:31:00 +02:00
ThiefMaster
fbaeb1fc99 Add option to not overwrite debug flag in cli
This is mainly intended for custom CLIs that may load a config file
which already sets the debug flag and does not make use of the `FLASK_*`
env vars at all.
2018-06-14 13:25:05 +02:00
David Lord
08f803fcea update test envs
use pypy3
fix travis osx env
cache pip on appveyor
codecov on appveyor
2018-05-29 11:46:04 -07:00
David Lord
0be8412fc2 Merge pull request #2804 from pallets/ascii-header
encode filenames as ascii instead of latin-1
2018-05-28 06:57:15 -07:00
David Lord
40a2cecdf7 encode filenames as ascii instead of latin-1
latin-1 is allowed by pep3333, but that breaks gunicorn
2018-05-28 06:36:47 -07:00
David Lord
61929922b1 Merge pull request #2789 from briehanlombaard/fix-sslcontext-attribute-error
AttributeError: 'module' object has no attribute 'SSLContext'
2018-05-17 09:24:21 -04:00
Briehan Lombaard
51f4340127 SSLContext was added in Python 2.7.9 2018-05-17 06:18:42 -07:00
David Lord
751a5fa4a4 Merge branch '0.12-maintenance' into 1.0-maintenance 2018-05-08 20:31:10 -07:00
Daniel Opitz
1394ec46f4 Fixed LaTeX errors on documentation PDF generation 2018-05-08 20:30:36 -07:00
David Lord
b7ba103898 Merge pull request #2764 from mgalgs/patch-1
docs: installation: Fix "now you can continue" link
2018-05-08 20:11:47 -07:00
David Lord
04a158c2f9 clarify the section navigation in installation 2018-05-08 20:10:27 -07:00
Mitchel Humpherys
729463dbd9 docs: installation: Add link to Quickstart after install
Once Flask is installed many users will want to proceed to the next section
in the docs (Quickstart).  Add a link to the end of the Install section for
this.
2018-05-08 19:59:25 -07:00
David Lord
81d79c545e Bump version number to 1.0.3.dev 2018-05-02 07:16:58 -07:00
David Lord
f0d02dad21 Bump version number to 1.0.2 2018-05-02 07:16:14 -07:00
David Lord
c03527fd98 release 1.0.2 2018-05-02 07:16:10 -07:00
David Lord
c0e7371f11 Merge pull request #2752 from greyli/patch-9
Check whether there are registered routes
2018-05-02 06:16:11 -07:00
Grey Li
56a6870772 Check whether exist registered routes 2018-05-02 06:06:15 -07:00
David Lord
0eae4c8bd1 Merge pull request #2748 from pallets/fix-bp-route
Fix blueprint route for ""
2018-05-02 06:04:31 -07:00
David Lord
34a83b1304 add more merge cases 2018-05-01 13:29:48 -07:00
Hsiaoming Yang
61eea98d17 Fix blueprint route for "" 2018-05-01 14:35:55 +09:00
David Lord
3cb636fbe1 fix project urls 2018-04-30 19:05:46 -07:00
Aaron Hall, MBA
e2018cb2d9 add missing port to localhost URL 2018-04-30 19:03:05 -07:00
David Lord
b3a2692507 Merge branch '0.12-maintenance' into 1.0-maintenance 2018-04-29 19:36:30 -07:00
David Lord
d8405c531c fix changelog link 2018-04-29 19:36:07 -07:00
David Lord
15cbf96f8a start 1.0.2 changelog 2018-04-29 19:10:48 -07:00
David Lord
642dba52f6 Bump version number to 1.0.2.dev 2018-04-29 19:09:23 -07:00
David Lord
b5d7b6be41 Bump version number to 1.0.1 2018-04-29 19:08:16 -07:00
David Lord
32991d6ed8 release 1.0.1 2018-04-29 18:46:54 -07:00
David Lord
8ba00a4c5c check FLASK_SKIP_DOTENV in app.run 2018-04-29 18:45:50 -07:00
David Lord
7e76635e61 Merge branch '0.12-maintenance' into 1.0-maintenance 2018-04-29 18:28:51 -07:00
David Lord
18fd7dbc32 Bump version number to 0.12.5.dev 2018-04-29 18:24:00 -07:00
David Lord
d15669c297 Bump version number to 0.12.4 2018-04-29 18:23:30 -07:00
David Lord
f462223eef release 0.12.4 2018-04-29 18:22:05 -07:00
David Lord
25d65aa6ca Merge pull request #2746 from pallets/2742-empty-url-prefix
allow empty prefix and no lead slash in bp route
2018-04-29 15:46:58 -07:00
David Lord
e40ae96acd allow empty prefix and no lead slash in bp route 2018-04-29 15:32:12 -07:00
David Lord
fe243d0a09 Merge pull request #2745 from dmarasquin/patch-1
Update quickstart.rst
2018-04-29 14:57:24 -07:00
Daiana Marasquin
fce4f839e2 fix syntax error and typo in quickstart.rst 2018-04-29 14:51:13 -07:00
David Lord
e38dba3a4b Merge pull request #2724 from pallets/issue-2722
Use env var to disable loading dotenv
2018-04-29 14:27:05 -07:00
David Lord
eb52ca4625 rename to FLASK_SKIP_DOTENV, add docs, test 2018-04-29 14:20:17 -07:00
Hsiaoming Yang
2a568b4c9c Use FLASK_DONT_LOAD_ENV flag to disable load .env 2018-04-28 07:19:06 -07:00
David Lord
cc93fa3f5e Merge pull request #2739 from pallets/2735-abort-debug
Only trap key errors by default in debug, not all BadRequest errors
2018-04-28 07:01:42 -07:00
David Lord
271d9e697a trap key errors in debug, not all 400 errors 2018-04-28 06:51:08 -07:00
David Lord
536ba58b96 Merge pull request #2738 from pallets/2731-bp-prefix-slash
merge slashes between blueprint prefix and rule
2018-04-27 12:46:37 -07:00
David Lord
fa03e9e0e4 merge slashes between blueprint prefix and rule 2018-04-27 12:40:06 -07:00