Commit graph

3071 commits

Author SHA1 Message Date
hallazzang
5c4840ba6d corrected indentations for pypa description 2017-08-06 09:06:19 +09:00
David Lord
849e74e983 fix links 2017-08-01 08:47:56 -07:00
David Lord
1aa145ef34 fix code block 2017-08-01 08:39:42 -07:00
David Lord
c82582f336 mention that session signature checks max age
add expiration to cookie security docs
closes #2422
2017-08-01 08:28:32 -07:00
David Lord
54e07ae70c Update CHANGES 2017-07-31 13:58:50 -07:00
David Lord
b0aaaeb14d Merge pull request #2436 from davidism/logging
Simplify logging
2017-07-31 13:23:45 -07:00
David Lord
9acb1d2412 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
f8defd2b63 Merge pull request #2430 from erebus1/env_url_scheme_fix
make_test_environ_builder: use url_scheme from path if provided
2017-07-29 13:09:17 -07:00
David Lord
090560a53a prefer the url's scheme over the kwarg
tabs -> spaces
add test
add changelog
2017-07-29 13:03:08 -07:00
David Lord
49e22f77f3 egg_info -R flag is gone 2017-07-27 07:32:03 -07:00
Igor Kasianov
41b0aef591 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
91c16ef7d3 Merge pull request #2416 from davidism/dotenv
Add .env support
2017-07-16 13:55:18 -07:00
David Lord
f0101de17b load env vars using python-dotenv 2017-07-16 13:37:51 -07:00
asmith26
3b45feef8d Fix typo in docs (#2419) 2017-07-16 21:07:25 +02:00
David Lord
0301ac778c Merge pull request #2414 from davidism/cli-load-local-package
FLASK_APP doesn't require .py extension for local packages
2017-07-14 19:59:51 -07:00
David Lord
b4505e53a5 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
1a1fb4579d support passing environ to test client (#2412)
closes #2411
2017-07-13 08:42:53 -07:00
David Lord
09ef6b0595 Merge pull request #2409 from bijanvakili/clarify-app-teardown
Clarify docs and tests for exception handling in Flask.teardown_appcontext()
2017-07-10 07:20:01 -07:00
David Lord
19a9e95e8f clean up 2017-07-10 07:10:47 -07:00
Bijan Vakili
c1647f9468 Update documentation and regression tests to clarify that Flask.teardown_appcontext() only receives unhandled exceptions 2017-07-07 17:34:44 -07:00
William Horton
d404a911b7 Remove unused import from test_basic (#2403) 2017-06-30 17:28:48 +02:00
David Lord
9d48099aec fix formatting
-R is no longer an egg_info option
closes #2400
[ci skip]
2017-06-28 19:55:39 -07:00
David Lord
d3c7cacca2 detox breaks docs test env for some reason
[ci skip]
2017-06-28 08:06:28 -07:00
David Lord
a6079b5fd6 one more secret key in docs 2017-06-28 08:02:51 -07:00
David Lord
6cb20f58a6 Merge pull request #2399 from davidism/docs-secret-key
clean up secret key docs
2017-06-28 08:00:08 -07:00
David Lord
d590d6024d 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
David Lord
e1703fe0f0 Merge pull request #2398 from miguelgrinberg/app-not-found-error-fix
fix variable substitution in error message
2017-06-27 07:50:20 -07:00
Miguel Grinberg
0a83a341b9 fix variable substitution in error message 2017-06-27 07:27:10 -07:00
David Lord
1a6ed989db Merge pull request #2397 from davidism/request-json
Un-deprecate Request.json
2017-06-26 09:47:36 -07:00
David Lord
bffe2a0af9 un-deprecate request.json 2017-06-26 09:34:26 -07:00
David Lord
43acf8c551 Merge pull request #2396 from davidism/remove-script
Remove old 0.7 upgrade script
2017-06-26 09:23:06 -07:00
David Lord
0ea3490d5c remove old upgrade script 2017-06-26 09:22:03 -07:00
David Lord
06900f28fb Merge pull request #2395 from davidism/remove-ext
Remove deprecated flask.ext
2017-06-26 09:18:21 -07:00
David Lord
0207aad0ec remove deprecated flask.ext 2017-06-26 08:47:28 -07:00
David Lord
40e5b0401c Merge pull request #2394 from davidism/remove-deprecated
Remove deprecated code
2017-06-26 08:29:43 -07:00
David Lord
4813b277a2 changelog for deprecations 2017-06-26 08:07:54 -07:00
David Lord
fc2b8aabde remove deprecated Request.module 2017-06-26 07:46:33 -07:00
David Lord
24cfe1b9b1 remove deprecated Flask.static_path 2017-06-26 07:45:29 -07:00
David Lord
26514e767a remove deprecated Flask.error_handlers 2017-06-26 07:39:35 -07:00
David Lord
7e52fd731b Merge pull request #2393 from JohnMoutafis/2385-remove-deprecated-code
Remove deprecated code from app.py
2017-06-26 07:35:20 -07:00
John Moutafis
6632241099 Remove deprecated request_globals_class _get and _set methods. 2017-06-26 11:48:29 +03:00
John Moutafis
fb35612868 Remove deprecated init_jinja_globals. 2017-06-23 17:53:38 +03:00
Anthony Plunkett
492c8bfe28 Merge pull request #2381 from trirpi/documentation-sqlite-uri-bug
sqlite uri connection string should be triple slashed for in-memory example.
2017-06-16 15:38:33 -04:00
trirpi
6156e2f82f removed bug in memory sqlite uri 2017-06-16 21:15:33 +02:00
David Lord
517553d3ff Merge pull request #2378 from miguelgrinberg/default-flask-app
Import app from wsgi.py or app.py if FLASK_APP is not defined
2017-06-16 07:00:26 -07:00
David Lord
b96a1c0f99 style cleanup
[ci skip]
2017-06-16 06:59:37 -07:00
Miguel Grinberg
90f4944c17 document wsgi.py and app.py default modules 2017-06-15 12:15:38 -07:00
Miguel Grinberg
ce78369f37 Import app from wsgi.py or app.py if FLASK_APP is not defined
Fixes #2376
2017-06-15 11:27:50 -07:00
David Lord
b4922beddf Merge pull request #2374 from astralblue/json_encode_non_utc_datetimes
Correctly JSON-encode datetimes aware of non-UTC timezones
2017-06-14 18:42:15 -07:00
Eugene M. Kim
015440ded5 Actually hand-spin and use a tzinfo subclass
This is for Python 2.x compatibility.

Suggested-by: David Lord <davidism@gmail.com>
2017-06-14 14:23:13 -07:00