Commit graph

1065 commits

Author SHA1 Message Date
David Lord
2411707492
rework context docs 2018-04-09 00:02:38 -07:00
Hsiaoming Yang
08e61ea200
Add tip for dotenv 2018-03-23 00:04:05 +09:00
David Lord
401423df06
only strip one slash when registering blueprint
add test and changelog
2018-02-23 15:47:06 -08:00
zcchen
0887245bfd
Add re.sub for blueprint add_url_rule handler, prevent '/a//b/'(blueprint.url_prefix='/a/' and the route is '/b/') happened. 2018-02-23 15:47:06 -08:00
David Lord
82f0d120de
use subdomain arg in url_map.bind_to_environ
rename new subdomain test, parametrize
test allowing subdomains as well as ips
add subdomain_matching param to docs
add some references to docs
add version changed to create_url_adapter
2018-02-23 08:39:31 -08:00
Armin Ronacher
8cec2010c0
Do not enable subdomain matching by default
Updated tests for new subdomain matching
Added a test to validate matching behavior
2018-02-23 07:53:27 -08:00
David Lord
cf5525f98a
add test_cli_runner for testing app.cli commands 2018-02-19 15:34:46 -08:00
Josh Holland
575021c07b
Fix docs for test_request_context
Fixes #2627.
2018-02-12 22:26:02 +00:00
David Lord
310fbfcf64
revert copyright year to project start
add copyright header to files
2018-02-08 12:43:30 -08:00
David Lord
af32ea0b94
bump dependency versions 2018-02-06 08:03:09 -08:00
David Lord
03a2996bb8
Merge pull request #2530 from pallets/feature/factory-detection
Improved bad factory error handling
2018-01-28 11:27:07 -08:00
David Lord
2cba0d77ee
use traceback to detect call more reliably 2018-01-28 11:20:42 -08:00
David Lord
83b5625f0c
Merge pull request #2603 from greyli/patch-8
Update cli help for FLASK_ENV
2018-01-23 15:39:42 -08:00
David Lord
e21abd9da5
Merge pull request #2607 from FadhelC/SameSite-cookie-feature
Added support for cookie SameSite attribute
2018-01-23 15:20:16 -08:00
Grey Li
0570393bc4
Update cli help for FLASK_ENV 2018-01-23 15:17:35 -08:00
David Lord
382b13581e
clean up samesite docs 2018-01-23 15:11:50 -08:00
David Lord
2beedabaaf
add HTTPS support for flask run command 2018-01-23 10:03:53 -08:00
Fadhel_Chaabane
a1d9ebe4ab New Feature: Added Support for cookie's SameSite attribute. 2018-01-23 13:57:50 +00:00
David Lord
87c2e121e0
clean up FLASK_ENV docs [ci skip] 2018-01-10 15:46:11 -08:00
David Lord
3738f7ff99
match run command behavior in app.run
output extra server information
handle env var changed by load_dotenv
enable threading by default
2018-01-10 12:02:13 -08:00
Armin Ronacher
2433522d29
Add Support for FLASK_ENV (#2570)
This introduces environments to Flask
2018-01-06 17:07:56 +01:00
Hsiaoming Yang
22e072379b cleanup werkzeug import (#2582) 2018-01-06 10:49:01 +01:00
David Lord
eebc0edfdd
Merge pull request #2558 from pallets/appveyor
add appveyor configuration
2018-01-05 13:32:57 -08:00
David Lord
333865ea34
windows python 2 doesn't provide inet_pton 2018-01-05 13:27:31 -08:00
David Lord
06f96df67e
silence ENOTDIR when loading config file 2018-01-05 07:40:51 -08:00
David Lord
0a33954555
improve documentation for session attributes
add test for session attributes
2018-01-04 12:56:18 -08:00
David Lord
f7983ae96a
concat newline in jsonify
ref pallets/werkzeug#1130
2018-01-03 13:06:14 -08:00
Adrian Moennich
eb1c2faf9f Merge remote-tracking branch 'upstream/0.12-maintenance' 2017-11-25 00:44:07 +01:00
ThiefMaster
c52e1b7388 Fix ValueError for some invalid Range requests
fixes #2526
2017-11-25 00:37:49 +01:00
Armin Ronacher
1a2dc6f205 Fixed tests for python 3 2017-11-25 00:18:10 +01:00
Armin Ronacher
2ef2000a39
Enable threads by default for the dev server (#2529)
Enable threads by default for dev server
2017-11-25 00:17:09 +01:00
Armin Ronacher
c23a63a185 Improved bad factory error handling 2017-11-25 00:05:57 +01:00
Roy Crihfield
e3c853e604 Fix typo in cli.py (#2502) 2017-10-24 08:10:12 +02:00
David Lord
9bc329c0c9
rewrite cli docs
reflects the current FLASK_APP detection
2017-10-10 11:10:20 -07:00
David Lord
5436dddf64
rewrite cli errors
consistent order for arguments to load functions
refactor find_app_by_string to flow better
more cli loader tests
2017-10-10 07:04:53 -07:00
Caratpine
2f57a0b917
Blueprint view function name should not contain dots 2017-10-09 08:12:34 -07:00
Henry Chladil
0a1090890f Add additional information in the url_rule docs (#2467)
If a user is making use of the errorhandler(405) decorator, and
they wish to include an Allow header (as per HTTP spec), they may
be confused to find that url_rule is None. This doc change aims to
clarify that because the request was never successfully matched,
it was never bound to a URL rule and to access the valid methods,
they must examine routing_exception.
2017-10-07 19:52:44 +02:00
Grey Li
851ca95778 Fix typo in comment 2017-09-23 22:26:48 +08:00
David Lord
66b1b752da
simplify logging configuration
single default handler and formatter
don't remove handlers
configure level once using setLevel
document logging
reorganize logging tests
2017-07-31 12:49:03 -07:00
David Lord
a89bdb3395
prefer the url's scheme over the kwarg
tabs -> spaces
add test
add changelog
2017-07-29 13:03:08 -07:00
Igor Kasianov
241673fd15 make_test_environ_builder: use url_scheme from path if provided
When providing https url in path ("https://example.com/")
we hope that we will get https scheme in environment
2017-07-27 14:50:27 +03:00
David Lord
491d331e6e
load env vars using python-dotenv 2017-07-16 13:37:51 -07:00
David Lord
fb845b9032
allow local packages in FLASK_APP
don't require .py extension in FLASK_APP
add tests for nested package loading
parametrize cli loading tests
2017-07-14 19:49:05 -07:00
David Lord
59f7966e31 support passing environ to test client (#2412)
closes #2411
2017-07-13 08:42:53 -07:00
David Lord
9560f22bb6
clean up 2017-07-10 07:10:47 -07:00
Bijan Vakili
a417e41d27 Update documentation and regression tests to clarify that Flask.teardown_appcontext() only receives unhandled exceptions 2017-07-07 17:34:44 -07:00
David Lord
d13e41ddef Merge pull request #2399 from davidism/docs-secret-key
clean up secret key docs
2017-06-28 08:00:08 -07:00
David Lord
465922e5f1
clean up secret key docs
consistent key across docs and examples
consistent key across tests, set in conftest
2017-06-28 07:58:06 -07:00
Miguel Grinberg
4f30cb7c57
fix variable substitution in error message 2017-06-27 07:27:10 -07:00
David Lord
5bc0d15359
un-deprecate request.json 2017-06-26 09:34:26 -07:00