Armin Ronacher
c27c55be2f
Merge pull request #2013 from pallets/bugfix/error-handler-error-handler
...
Corrected after response for error handlers
2016-09-10 03:36:29 +03:00
Armin Ronacher
830632714c
Do not error for unknown files if send_file sends an actual file
2016-09-10 03:33:53 +03:00
Andrew Arendt
09e6254efc
fixed deprecated syntax in setup.cfg ( #2015 )
2016-09-08 19:24:07 +02:00
Akbar Ibrahim
d34d878095
Fixed error in errorhandler doc string. ( #2014 )
2016-09-08 17:34:51 +02:00
Markus Unterwaditzer
525e266822
Merge branch '0.11-maintenance'
2016-09-08 15:21:05 +02:00
Kyle Lawlor
6ed4a18712
Clean up tutorial docs for installable app pattern with flaskr ( #2002 )
...
* Clean up tutorial docs for installable app pattern
- reading sequentially through the tutorial works.
- fixes references to `export FLASK_APP=flaskr.flaskr`
* Fixes titles for each section of flaskr tutorial
* Revert grammar
* Emphasize the Packaging Guide
- adds more general packaging resource
- removes the emphasis put on setuptools
* rephrase and remove note admonitions
- expanded on few points
- removed note blocks, they are unneccessary
* Remove note about reinstalling to update cli
- I had mistakenly thought it was necessary to
re-install the app to update the cli.
- the `--editable` flag detects the change and
the cli updates without issue.
2016-09-08 15:19:48 +02:00
Armin Ronacher
a7fbfb387f
Corrected after response for error handlers
...
Before this change after request functions were not correctly
invoked for error handlers.
2016-09-08 11:56:02 +03:00
Markus Unterwaditzer
394d5d57c8
Changelog for #2006
2016-09-07 18:19:10 +02:00
Markus Unterwaditzer
ec9e9c2f6e
Don't passthrough_errors unless instructed. ( #2006 )
...
Fix #2005
Revert #1679 and #1996
2016-09-06 22:32:34 +02:00
Afonso Queirós
e42c5b3d94
Correcting Custom Test Client class docs ( #2004 )
2016-09-05 16:57:00 +02:00
Roman
ae649aacaf
Fix error in send_file helper ( #2003 )
...
* Fix error in send_file (mimetype_filename is not defined)
* fix formatting error message in send_file
2016-09-04 16:28:05 -07:00
PHeanEX
d7c096eb35
Fix small grammar error (Of/Or) ( #2001 )
2016-08-31 13:05:12 -07:00
Kyle Lawlor
8d501150d7
Better workflow for flaskr and other basic apps ( #2000 )
...
- adds `from flaskr import app` to top-level in flaskr module
- effect is that `export FLASK_APP=flaskr` works over the more verbose
`export FLASK_APP=flaskr.flask`
- see the readme for how to run
- all tests are passing with `py.test` or `python setup.py test` (in
venv)
2016-08-31 18:37:36 +02:00
Josh Soref
0f2c793e14
Spelling ( #1998 )
...
* spelling: cacheability
* spelling: conceptually
* spelling: javascript
* spelling: reset
* spelling: raised
* comma: instead..., they...
2016-08-30 00:26:20 +02:00
dawran6
faded8c5c7
sessions documentation (client side vs server side) #434 ( #1888 )
...
Mention the existence of Flask extentions that handle server-side
sessions.
Attempt to improve the reading flow.
2016-08-29 00:06:53 +02:00
Markus Unterwaditzer
7af584bd10
Merge pull request #1996 from untitaker/propagate-exceptions-werkzeug
...
Only passthrough_errors if PROPAGATE_EXCEPTIONS
2016-08-27 18:33:08 +02:00
Markus Unterwaditzer
2a5061282b
Only passthrough_errors if PROPAGATE_EXCEPTIONS
...
See pallets/werkzeug#954
2016-08-27 14:38:13 +02:00
Markus Unterwaditzer
a9757f8b1e
Properly remove f.name usage in send_file ( #1988 )
...
* Properly remove f.name usage in send_file
* Update changelogs
* Fix tests
2016-08-26 03:08:03 +02:00
Armin Ronacher
9657b517a8
Disable logger propagation by default
2016-08-25 15:41:46 +02:00
Kyle Lawlor
d42e548f07
Update minitwit & improve testing for examples ( #1954 )
...
* Update minitwit & improve testing for examples
* Related to #1945
* Re-works minitwit to be installed and run as:
pip install --editable .
export FLASK_APP=minitwit.minitwit
export FLASK_DEBUG=1
flask initdb
flask run
* added flaskr and minitwit to norecursedirs
* tests not properly run when using pytest standards
* see: http://stackoverflow.com/questions/38313171/configuring-pytest-with-installable-examples-in-a-project
* Both flaskr and minitwit now follow pytest standards.
* Tests can for them as `py.test` or `python setup.py test`
* Update minitwit readme
* updates the instructions for running
* Fixes for updating the minitwit example
- This reverts the changes to the *docs/* (I will file separate PR).
- Running the app is now: `export FLASK_APP=minitwit` & `flask run`
(After installing the app)
* Remove unnecessary comma from flaskr/setup.py
2016-08-22 20:52:54 +02:00
sanderl-mediamonks
5b867d25aa
Use the correct Celery result backend setting
2016-08-22 11:49:52 +02:00
David Lord
1584022d0b
clean up new json tests
2016-08-21 08:47:12 -07:00
Nathan Land
03104555cb
Add tests for flask.json.dump() and test that jsonify correctly converts uuids.
2016-08-21 07:48:05 -07:00
Zev Averbach
796e1ef705
added indentation to changed structure
2016-08-20 17:13:07 -04:00
Anton Sarukhanov
1832130c2e
Add test for get_version (CLI) ( #1884 )
2016-08-20 17:43:58 +02:00
SaturnR
ee84b877cb
Update for python3 ( #1973 )
...
just updated print 'Initialized the database.' with print('Initialized the database.') to be python3 compliant
2016-08-20 17:43:10 +02:00
teichopsia-
92d9c0122c
Update testing.rst ( #1987 )
...
Python 3.4.2
TypeError: Type str doesn't support the buffer API
2016-08-19 19:01:13 -07:00
Markus Unterwaditzer
c7387dd252
Bugfix: EnvironBuilder doesn't take json
2016-08-19 21:29:12 +02:00
Markus Unterwaditzer
025d3a541d
Remove already defined method
2016-08-19 21:25:27 +02:00
Markus Unterwaditzer
e64d5c04fa
testing: Make json a keyword arg
2016-08-19 21:24:07 +02:00
Adam Byrtek
1bfefbaa36
Remove _missing sentinel and update docs
2016-08-19 21:22:34 +02:00
Adam Byrtek
f5f46f56e6
Documentation updates
2016-08-19 21:21:43 +02:00
Adam Byrtek
9d6ebde480
Update documentation to use the getter only once
2016-08-19 21:20:59 +02:00
Adam Byrtek
bafc522f43
Use app_ctx instead of request_ctx to access the app
2016-08-19 21:20:59 +02:00
Adam Byrtek
0d833ce4ce
Updates after code review
2016-08-19 21:19:33 +02:00
Adam Byrtek
3810a54343
Alternative solution for lack of response caching
2016-08-19 21:19:17 +02:00
Adam Byrtek
307a7f5758
Update the testing documentation
2016-08-19 21:19:17 +02:00
Adam Byrtek
6aaecb7d43
Remove redundant cache flag
2016-08-19 21:19:17 +02:00
Adam Byrtek
846db2412f
Mixin for JSON decoding code shared between request/response
2016-08-19 21:19:17 +02:00
Adam Byrtek
8ec58b0f29
JSON response tests and first draft of code that passes
2016-08-19 21:14:12 +02:00
Adam Byrtek
6ebc333a23
Use proper exception type and update changelog
2016-08-19 21:14:12 +02:00
Adam Byrtek
fe022f9f59
Use content_type kwarg instead of manipulating headers
2016-08-19 21:13:33 +02:00
Adam Byrtek
a10dbf15fe
JSON support for the Flask test client
2016-08-19 21:13:33 +02:00
Nate Prewitt
9608198047
adding in try around __import__ to catch invalid files/paths ( #1950 )
2016-08-12 15:12:00 +02:00
Auke Willem Oosterhoff
387add139b
Use path of socket consistently accross document. ( #1976 )
...
* #1975 Use location of socket consistently accross document.
2016-08-03 09:22:14 -07:00
Jeff Widman
e5ea782c55
Remove unused Redbaron dependency ( #1967 )
2016-07-29 14:27:30 +02:00
ahmedakef
4800f05041
close <li> tag in lines (16,18) ( #1951 )
...
i noticed that <li> tag haven't closed in lines 15,18
which is bad practice as if i put "some thing : <h1> some text </h1>" in the text-area all the other articles become <h1> so big and color blue
2016-07-28 22:46:42 +02:00
Ioan Vancea
63f23fb591
Added a missing module to import statement
2016-07-28 16:34:48 +02:00
Armin Ronacher
49f659dcb6
Merge pull request #1956 from shakib609/master
...
Update allowed_file function in fileuploads.rst
2016-07-17 23:02:26 +05:00
Shakib Hossain
4151970cee
Update allowed_file function in fileuploads.rst
...
Update allowed_file function to accept lowercase and uppercase file extensions
2016-07-16 21:59:44 +06:00