David Lord
495d834b99
Merge branch '0.11-maintenance'
2016-07-06 08:02:46 -07:00
David Lord
1e5746bb2b
persona is discontinued, remove example
...
closes #1947
2016-07-06 08:02:13 -07:00
David Lord
633b13e9b5
Merge branch '0.11-maintenance'
2016-07-05 17:34:51 -07:00
Kyle Lawlor
17d4cb3828
Address #1902 : Converts example/flaskr to have a setup.py ( #1945 )
...
* Converts example/flaskr to have a setup.py
Makes the flaskr app easier to run, ex. workflow:
- pip install --editable .
- export FLASK_APP=flaskr.flaskr
- flask initdb
- flask run
Testing is also easier now:
- python setup.py test
* Fixed an import error in flaskr/tests
- the statement `import flaskr` caused errors in python3
- `from . import flaskr` fixes the issue in 2.7.11 and 3.5.1
* Better project structure and updates the docs
- Re-factors *flaskr*'s project structure a bit
- Updates docs to make sense with the new structure
- Adds a new step about installing Flask apps with setuptools
- Switches first-person style writing to second-person (reads better IMO)
- Adds segments in *testing.rst* for running tests with setuptools
* Remove __init__.py from tests
- py.test recommends not using __init__.py
* Fix testing import errors
2016-07-05 17:30:59 -07:00
Hyunchel Kim
f19d3bd67e
Enhance tests.test_cli.test_find_best_app ( #1882 )
...
This commit adds a test case for `test_find_best_app` where
Module object does not contain Flask application.
Also cleans the function little bit to provides more meaningful comment.
2016-07-05 12:46:01 -07:00
Olexander Yermakov
b7a0cc61c5
Update installation documentation for using 'pip' command ( #1920 )
2016-07-05 12:00:43 -07:00
John Still
0c459762ea
clarify blueprint 404 error handling in docs
2016-07-02 17:03:36 -05:00
Antoine Catton
516ce59f95
Add the ability to combine MethodViews
2016-06-28 17:35:39 +02:00
georgschoelly
67e391921c
fix docs: name of url_value_preprocessor method ( #1932 )
...
This typo got introduced in 5da1fc2215 ,
the original commit for the url_value_preprocessor decorator.
2016-06-26 13:32:47 -07:00
David Lord
1928f28a68
clean up code formatting in some docs
...
fix warnings while building docs
2016-06-26 13:03:29 -07:00
Kiss György
1b764cff93
Added runner fixture
2016-06-25 13:24:43 +02:00
Kiss György
b8e826c16b
Added tests, fixed some minor alignment problems.
2016-06-25 13:22:18 +02:00
Kiss György
1647179511
Added routes command, which shows all the endpoints registered for the app.
...
Orderable by rules, endpoints and methods. Shows up in the builtin command list.
2016-06-25 12:15:14 +02:00
David Lord
0e4607000d
re-add passthrough_errors to cli runner ( #1928 )
...
This got dropped during the cli simplification. Re: #1679
2016-06-23 13:00:45 -07:00
David Lord
cd1a9b7d54
remove unnecessary form action attributes
2016-06-22 15:01:41 -07:00
David Lord
d8c39f4b37
Revert "wtforms: Add missing closing tags in example ( #1917 )"
...
This reverts commit 146cba53e7 .
2016-06-22 14:53:27 -07:00
Ameya Pandilwar
663d786f68
Update documentation for upgrading Flask using 'pip' command ( #1918 )
2016-06-22 13:26:35 -07:00
Sudheer Satyanarayana
1ffd07ff5a
Fix small typo in python3 docs
...
Add missing 'be'
2016-06-21 17:27:03 +02:00
Baptiste Fontaine
146cba53e7
wtforms: Add missing closing tags in example ( #1917 )
2016-06-19 13:27:23 -07:00
dcfix
9f2b3d815e
Demonstrate how to add multiple urls to the same function endpoint #981 ( #1900 )
...
* Demonstrate how to add multiple urls to the same function endpoint
* Removed text as per untitaker, fixed spacing to be pep-8 compliant
2016-06-16 22:40:23 +02:00
Archie Roller
b8aca21a39
Fix #1911 ( #1913 )
2016-06-15 09:27:06 -07:00
Leo Tindall
c0087204e5
Documentation: Clarify instructions about changing row_factory for SQLite3 ( #1573 )
...
* Clarify instructions about changing row_factory
When I was working through the tutorial, this was very confusing to me; so, I've added the code and clarification that would have helped me get through it faster.
* Clarify the nature of Row objects
* Rewrite code example for further clarity.
2016-06-14 23:55:47 -07:00
Dave Barker
1a67e284d0
Remove unnecessary werkzeug mock attribs from test
2016-06-15 02:25:48 +01:00
Dave Barker
24289e97af
Add test for new template auto reload debug behaviour
2016-06-15 02:15:33 +01:00
Markus Unterwaditzer
c80ea941d0
Merge pull request #1912 from pallets/revert-1811-iss1809_register_blueprint_docs
...
Revert "Addressing Issue 1809"
2016-06-14 22:46:27 +02:00
Markus Unterwaditzer
5c12721730
Revert "Addressing Issue 1809"
2016-06-14 22:45:24 +02:00
Dave Barker
0514ba2de1
Enable template auto-reloading in app.run()
...
When Flask app debugging is enabled (app.debug==True), and Jinja2
template auto-reloading is not explicitly disbaled, template
auto-reloading should be enabled.
If the app is instantiated, the jinja_env object is accessed (thereby
initialising the Jinja2 environment) and the server is then started with
app.run(debug=True), template auto-reloading is *not* enabled.
This is because reading the jinja_env object causes the environment
initialisation function to set auto_reload to app.debug (which isn't yet
True). Calling app.run(debug=True) should correct this in order to
remain consistent with Flask code reloading (which is enabled within
app.run() if debug == True).
2016-06-14 00:59:32 +01:00
Markus Unterwaditzer
433c561494
Merge branch '0.11-maintenance'
2016-06-13 20:34:30 +02:00
Markus Unterwaditzer
6e46d0cd39
Fix PyPy3 support and add bug references
...
Fix #1841
2016-06-13 20:33:57 +02:00
Anton Sarukhanov
5cadd4a348
Added make target for test coverage, documented make commands
2016-06-08 08:26:01 -04:00
RamiC
4305ebdf66
Check for a request ctx before using the request.
...
Use the app json coder when blueprint json coder is set to none.
Revert the failling test to using an app_context
re #1710
2016-06-08 12:58:56 +03:00
RamiC
501b8590dd
Allow per blueprint json encoder decoder
...
re #1710
2016-06-08 12:03:26 +03:00
Markus Unterwaditzer
4f83f705e7
Merge pull request #1881 from antsar/master
...
Add test for find_default_import_path
2016-06-07 20:12:40 +02:00
Markus Unterwaditzer
b990d80764
Merge branch '0.11-maintenance'
2016-06-07 18:26:06 +02:00
Markus Unterwaditzer
724f04d305
This is 0.11.2-dev
2016-06-07 18:23:09 +02:00
Markus Unterwaditzer
d1d82ca8ce
Bump version to 0.11.1
2016-06-07 18:22:43 +02:00
Anton Sarukhanov
5eaed37116
Add test for find_default_import_path
2016-06-07 08:03:55 -04:00
Markus Unterwaditzer
6a3a209f41
Merge pull request #1892 from avborhanian/patch-1
...
Updating url in errorhandling.rst to a valid link
2016-06-06 17:37:07 +02:00
avborhanian
5aa70b5a56
Updating url in errorhandling.rst to a valid link
...
Was originally set to github.com/getsentry/sentry, which was a relative link to a page that doesn't exist. I prepended https:// to fix this problem.
2016-06-06 11:29:14 -04:00
Markus Unterwaditzer
f6b5b571dc
Fix several typos in python3.rst
...
- complicated -> complicates, since the effect continues into the
future. See #1891
- effect -> affect
- Rewrap paragraph
2016-06-06 13:39:14 +02:00
Ryan Backman
3384813151
Clarify wording in App Context documentation. ( #1890 )
2016-06-06 13:03:01 +02:00
David Lord
baa2689658
clean up py3 info more
2016-06-05 15:45:39 -07:00
alatar-
00c200eeaa
Update documentation about python 3 support in Flask, resolves #1578
2016-06-05 15:25:35 -07:00
David Lord
169a4e0c44
move note about next param, add example, other cleanup
2016-06-05 14:21:17 -07:00
Ping Hu
434c19933e
Add clarification for login_required decorator ref #313
2016-06-05 13:22:19 -07:00
David Lord
aa9a994946
use pip instead of setup.py in fabric command
2016-06-05 13:12:25 -07:00
David Lord
14a5a9e554
move setup.cfg info to setuptools docs, reword
2016-06-05 12:59:04 -07:00
Shawn McElroy
33212309a2
updating docs and showing how to use setup.cfg to configure dev builds with sdist
2016-06-05 12:50:44 -07:00
David Lord
7c271401b2
pass value directly to last_modified
2016-06-05 12:42:34 -07:00
Prachi Shirish Khadke
af515cc7ea
Add last_modified arg for send_file
...
Enhancement: Add last_modified arg of type DateTime to send_file.
Fixes pallets/flask#1321
2016-06-05 10:59:17 -07:00