David Lord
5bc0d15359
un-deprecate request.json
2017-06-26 09:34:26 -07:00
David Lord
1172728a68
Merge pull request #2396 from davidism/remove-script
...
Remove old 0.7 upgrade script
2017-06-26 09:23:06 -07:00
David Lord
e0cd80c6bf
remove old upgrade script
2017-06-26 09:22:03 -07:00
David Lord
bce8ec75eb
Merge pull request #2395 from davidism/remove-ext
...
Remove deprecated flask.ext
2017-06-26 09:18:21 -07:00
David Lord
715a9a3e7b
remove deprecated flask.ext
2017-06-26 08:47:28 -07:00
David Lord
4c564779d1
Merge pull request #2394 from davidism/remove-deprecated
...
Remove deprecated code
2017-06-26 08:29:43 -07:00
David Lord
89c87240b6
changelog for deprecations
2017-06-26 08:07:54 -07:00
David Lord
723e665004
remove deprecated Request.module
2017-06-26 07:46:33 -07:00
David Lord
d63c2bc417
remove deprecated Flask.static_path
2017-06-26 07:45:29 -07:00
David Lord
9491bf8695
remove deprecated Flask.error_handlers
2017-06-26 07:39:35 -07:00
David Lord
c5d3f806d7
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
e9386a7273
Remove deprecated request_globals_class _get and _set methods.
2017-06-26 11:48:29 +03:00
John Moutafis
75327c0a85
Remove deprecated init_jinja_globals.
2017-06-23 17:53:38 +03:00
Anthony Plunkett
45c8fb3f3f
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
bfc2ee7dfd
removed bug in memory sqlite uri
2017-06-16 21:15:33 +02:00
David Lord
29c055a2b4
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
448368e226
style cleanup
...
[ci skip]
2017-06-16 06:59:37 -07:00
Miguel Grinberg
0b80acb25c
document wsgi.py and app.py default modules
2017-06-15 12:15:38 -07:00
Miguel Grinberg
7c40aa9e50
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
d625d41104
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
63ccdada1b
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
Eugene M. Kim
f803760275
Re-revert to not using pytz
...
Will spin a tzinfo subclass.
2017-06-14 14:14:18 -07:00
Eugene M. Kim
34050630d6
Skip aware datetime tests if pytz is unavailable
2017-06-14 14:08:42 -07:00
Eugene M. Kim
eb9618347c
Use pytz again for tests
...
This is because datetime.timezone is Python 3 only. The only
alternative would be to hand-spin a datetime.tzinfo subclass, an
overkill.
This reverts commit 0e6cab3576 .
2017-06-14 13:57:40 -07:00
Eugene M. Kim
5b38fe2fbe
Merge branch 'master' of github.com:pallets/flask into json_encode_non_utc_datetimes
2017-06-14 13:11:53 -07:00
Eugene M. Kim
0e6cab3576
Rewrite test_jsonify_aware_datetimes without pytz
2017-06-14 13:06:26 -07:00
David Lord
1e112cccaa
Merge pull request #2373 from davidism/reload_templates_run_debug
...
Reconfigure app when debug is set by run command
2017-06-14 12:56:42 -07:00
Eugene M. Kim
d41e2e6a5d
Correctly encode aware, non-UTC datetime objects
...
http_date() requires timetuple in UTC, but JSONEncoder.default() was
passing a local timetuple instead.
2017-06-14 12:40:53 -07:00
David Lord
4d2a3ab2e0
test no debug flag doesn't reconfigure
...
test templates_auto_reload property instead of config
use app fixture in test
2017-06-14 12:31:56 -07:00
Eugene M. Kim
d75d83defd
Add UTs for #2372
...
test_encode_aware_datetime() fails for non-UTC timezones due to the bug.
2017-06-14 12:22:09 -07:00
David Lord
4fc48200a5
reconfigure the app from run command and method
...
extract templates_auto_reload to property
continues #1910
closes #1907
2017-06-14 12:08:25 -07:00
David Lord
9e39c506e0
Merge branch 'master' into reload_templates_run_debug
2017-06-14 09:58:33 -07:00
David Lord
2c97ed985e
Merge pull request #2371 from davidism/register_blueprint-doc
...
document `Flask.register_blueprint` arguments
2017-06-14 07:41:44 -07:00
David Lord
fe1bf3c821
document the blueprint param too
2017-06-14 07:26:48 -07:00
David Lord
0f7b3a4f26
document Flask.register_blueprint arguments
...
closes #1809
2017-06-14 07:16:55 -07:00
David Lord
e97f6e22e6
Merge pull request #2370 from tony/patch-2
...
Add docutils label for class-based views
2017-06-13 06:28:18 -07:00
David Lord
75c4ea24c2
Merge pull request #2369 from tony/patch-1
...
Add docutils label for templates page
2017-06-13 06:27:46 -07:00
Tony Narlock
91fd33dbd9
Add docutils label for class-based views
2017-06-12 16:15:52 -05:00
Tony Narlock
66e9dc9df2
Add docutils label for templates page
2017-06-12 16:07:24 -05:00
grahamlutz
cf425403c8
Remove duplicate word from docstring
2017-06-10 14:53:40 +02:00
David Lord
094b116c7f
Merge pull request #2366 from tristanfisher/master
...
Add basic how-to on using envvars for config
2017-06-09 10:30:31 -07:00
David Lord
01d2f725d3
formatting
...
[ci skip]
2017-06-09 10:28:54 -07:00
tristan fisher
53ff054fd3
Fixes grammar and phrasing on envvar how-to
2017-06-09 10:54:47 -04:00
tristan fisher
067686b471
Add basic how-to on using envvars for config
2017-06-09 10:19:08 -04:00
David Lord
9d82993422
Merge pull request #2364 from davidism/xss-note
...
mention csp for javascript: uri xss
2017-06-06 09:22:49 -07:00
David Lord
15756da1f0
mention csp for javascript: uri xss
...
closes #2174
[ci skip]
2017-06-06 09:21:44 -07:00
David Lord
45946028e7
Merge pull request #2363 from davidism/inherited-members
...
document inherited attributes for Flask and Blueprint
2017-06-06 07:52:55 -07:00
David Lord
235c830759
document inherited attributes for Flask and Blueprint
...
closes #480
[ci skip]
2017-06-06 07:51:52 -07:00
David Lord
b80cf057fc
Merge pull request #2362 from davidism/remove-error-handler-cache
...
Remove error handler cache
2017-06-05 06:34:49 -07:00
David Lord
b5f4c52150
don't cache error handlers for exception mro
...
closes #2267 , closes #1433
2017-06-05 06:24:08 -07:00