Jon Banafato
138b28e17d
Add X-Forwarded-Proto to proxy setup example
...
The ProxyFix middleware provided by Werkzeug uses this header for
returning accurate values from request.is_secure and request.scheme.
Without adding this header, Flask won't properly detect when it is being
served over HTTPS and will fail to generate proper external links and
cause certain extensions (e.g. Flask-OAuthlib) to function improperly.
Adding this header to the example setup should reduce issues encountered
by developers when following this guide.
2015-05-09 12:29:53 -04:00
Markus Unterwaditzer
ed85df440f
Merge pull request #1455 from nickjj/docs_contributing
...
Add pip install --editable . to contributing docs
2015-05-07 13:24:13 +02:00
Nick Janetakis
aa6dd1c71b
Add pip install --editable . to contributing docs
2015-05-06 16:07:47 -07:00
Markus Unterwaditzer
dba8e66508
Merge pull request #1453 from ozbek/master
...
Replace 'I' with 'We'
2015-05-06 15:55:28 +02:00
Shuhrat Dehkanov
32cc1b7dba
Replace 'I' with 'We'
...
To be consistent with the usage elsewhere in the README
2015-05-06 22:13:52 +09:00
Markus Unterwaditzer
4ec5e0e8d2
Merge pull request #1450 from Carreau/importlib
...
importlib deprecated in 3.4
2015-05-02 21:58:44 +02:00
Matthias Bussonnier
b42f47d4ee
importlib deprecated in 3.5.
...
Replace the use of importlib by types.ModuleType that seem to be
available since at least 2.6
closes gh-1449
2015-05-02 10:54:38 -07:00
Markus Unterwaditzer
34fcd6e508
Merge pull request #1448 from fordhurley/custom_converters
...
Mention that custom converters can be defined for url routes
2015-05-01 20:11:33 +02:00
Ford Hurley
8d80857cc0
Mention that custom converters can be defined for url routes
2015-05-01 12:11:55 -04:00
Markus Unterwaditzer
eb1efd5098
Errorhandlers were NOT *added* in 1.0
2015-04-30 23:05:55 +02:00
Markus Unterwaditzer
5955f0a7c6
Merge pull request #1441 from andyxning/fix_pep8_with_logging
...
Fix pep8 with logging
2015-04-19 11:37:55 +02:00
ning.xie
98e4bac316
fix pep8 with logging.py
2015-04-19 17:33:54 +08:00
Markus Unterwaditzer
3e69322dc2
Merge pull request #1431 from untitaker/flask-errorhandling-amend
...
Some cleanup for errorhandling refactor
2015-04-12 00:06:57 +02:00
Markus Unterwaditzer
f500ba5412
Fix formatting errors
2015-04-11 20:52:47 +02:00
Markus Unterwaditzer
aee9646c2f
Recursively traverse MRO of exception
2015-04-11 20:52:47 +02:00
Markus Unterwaditzer
a21cd9db75
Merge pull request #1291 from flying-sheep/errorhandler-rework
...
Fixed and intuitivized exception handling
2015-04-11 18:13:22 +02:00
Markus Unterwaditzer
b23a859b8d
Merge pull request #1429 from flying-sheep/errorhandler-rework-docs
...
Added docs for the error handler rework
2015-04-11 18:12:46 +02:00
Phil Schaf
b138a27f30
some details
2015-04-11 18:08:04 +02:00
Phil Schaf
739c1e4e5e
slimmed down error handling intro
2015-04-11 18:01:22 +02:00
Phil Schaf
f8e3819217
added info about an exception being raised for the old and broken behavior
2015-04-11 17:44:18 +02:00
Phil Schaf
55c0900452
Added docs for the error handler rework
2015-04-11 17:25:17 +02:00
Phil Schaf
763e40e4ee
addressed a few review concerns
2015-04-11 14:24:01 +02:00
Phil Schaf
f24810553b
added caching
2015-04-11 14:05:22 +02:00
Phil Schaf
0f7727f3de
removed ExceptionHandlerDict
2015-04-11 14:05:22 +02:00
Phil Schaf
b32aa270e5
Removed 500 not being registerable for blueprints
2015-04-11 14:05:22 +02:00
Phil Schaf
cb16fb4fb0
More verbose message for old broken behavior
2015-04-11 14:05:22 +02:00
Phil Schaf
40d3a943dc
Removed unused http code get function
2015-04-11 14:05:22 +02:00
Phil Schaf
adaf659e67
Switched to userdict for obsolete Python versions
2015-04-11 14:05:22 +02:00
Phil Schaf
8a53ab315c
Fixed and intuitivized exception handling
2015-04-11 14:05:22 +02:00
Keyan Pishdadian
f525f7a82c
Merge pull request #1418 from alexwlchan/master
...
Fix a few spelling mistakes in the docs
2015-04-03 15:46:33 -04:00
Alex Chan
f4a53e97ea
Fix a few spelling mistakes in the docs
2015-04-03 20:43:40 +01:00
Markus Unterwaditzer
54e43d91bf
Merge pull request #1380 from KWinston/master
...
Add line of code required to run examples for Other Testing Tricks section
2015-04-02 01:57:06 +02:00
Brandon Sandrowicz
028525d2bf
Fix Possible Typo
...
Looks like that was meant to be `config_key`. It works by accident because the function is defined in the same scope as the look that passes `config_key` to `apprunner`.
2015-04-02 01:48:48 +02:00
Keyan Pishdadian
7bc0c6ac79
Merge pull request #1414 from charleswhchan/patch-1
...
Added OpenShift as a free hosting provider alternative
2015-04-01 10:13:31 -04:00
Charles Chan
1224aaa51a
Added OpenShift as a free hosting provider alternative
2015-03-31 16:13:29 -07:00
Keyan Pishdadian
6d2ac94f26
Merge pull request #1413 from skybert/500-errhandler-note
...
Added note that @errorhandler(500) isn't triggered in debug mode
2015-03-31 13:52:27 -04:00
Torstein Krause Johansen
aecb94415d
Moved noted about HTTP 500 before the code examples
...
- as suggested by @keyan
2015-03-31 19:16:33 +02:00
Torstein Krause Johansen
b63389da16
Added note that @errorhandler(500) isn't triggered in debug mode
2015-03-31 17:35:29 +02:00
Markus Unterwaditzer
04e1de343d
Add contributing file
2015-03-31 12:44:47 +02:00
Markus Unterwaditzer
89fd83a50c
Revert "Don't use threads in this test"
...
This reverts commit 78cd4161f0 .
2015-03-29 23:03:38 +02:00
Keyan Pishdadian
c6662079a1
Merge pull request #1378 from cbron/master
...
Fix link to SQLalchemy Declarative documentation.
2015-03-29 16:40:45 -04:00
Markus Unterwaditzer
42d9cb6363
Don't use threads in this test
...
I think test failures would've been ignored if there were some.
Fixes #1401
2015-03-29 13:40:35 +02:00
Markus Unterwaditzer
6e9b0226c9
Merge branch 'mjpieters-appcontext_ignore_handled_exception'
2015-03-23 16:44:32 +01:00
Markus Unterwaditzer
9c23b19e7e
Changelog for #1393
2015-03-23 16:43:44 +01:00
Markus Unterwaditzer
e62ca6c5c8
Merge pull request #1389 from untitaker/always-memory-test
...
Always run memory tests
2015-03-23 16:41:29 +01:00
Martijn Pieters
6b712e717c
If this patch gets accepted I may as well be added here.
2015-03-23 15:17:43 +00:00
Martijn Pieters
35a1bc2f4a
Switch away from using None as default value for the exception when tearing down a context.
...
When an exception has been handled when using the request / app context in a with statement, `sys.exc_info()` will still contain the exception information even though it has been handled already. The `__exit__` methods pass in `None` for the exception value in that case, which needs to be distinguisable from the default value for the `exc` parameter. Use a dedicated singleton sentinel value instead.
2015-03-23 15:17:19 +00:00
Markus Unterwaditzer
da89b1e3b8
Always run memory tests
2015-03-22 12:49:47 +01:00
Winston Kouch
bac8e558a2
Add import flask module required to run code on Other Testing Tricks
2015-03-12 23:32:08 -04:00
Caleb Bron
7d19de620d
link to sqlalchemy declarative has changed
2015-03-12 10:26:06 -07:00