Commit graph

1081 commits

Author SHA1 Message Date
David Lord
4f3ee8256a Merge pull request #2210 from Larivact/patch-2
Clarify APPLICATION_ROOT documentation
2017-05-09 08:47:23 -07:00
David Lord
2a80eff1c4 Merge pull request #1942 from jmsdvl/fix-1935
clarify blueprint 404 error handling in docs
2017-05-09 08:44:58 -07:00
David Lord
452f442a8e optionally enable sphinxcontrib.log_cabinet
collapses old changelog directives
closes #1704
closes #1867
2017-05-04 18:24:04 -07:00
David Lord
a81ad76f2d clean up error handler docs 2017-04-30 08:20:13 -07:00
Benjamin Liebald
422b6c2df7 Mention existence of register_error_handler in errorpages.rst
See https://github.com/pallets/flask/issues/1837 for context.
2017-04-30 07:55:54 -07:00
David Lord
90aeed0012 Merge pull request #2191 from SergioDS/master
Updated documentation for being able to use init_db method
2017-04-21 11:45:16 -07:00
David Lord
0f514cea8f use app.testing property instead of config 2017-04-13 16:32:44 -07:00
accraze
f3f4aa325b Added missing testing config
fixes #1302
2017-04-13 16:27:58 -07:00
ka7
5a76bbe7c7 Fix typo in docs (#2237) 2017-04-11 21:44:32 +02:00
Grey Li
3d20e9184d Add example for virtualenv integration in cli docs (#2234) 2017-04-07 07:10:43 -07:00
Adam Geitgey
742a143efd Correct imports in file upload example (#2230)
The example code uses `flash` but doesn't import it. So the code as written doesn't work.

This simply adds `flash` to the list of imports in the sample code.
2017-04-04 22:26:40 +02:00
Larivact
b9c8c7825d Clarify APPLICATION_ROOT #1714 2017-03-17 05:41:20 +01:00
Jan Ferko
7664e605ba Use print function in quickstart (#2204)
Example in URL Building section uses `print` statement
instead of `print` function, which causes syntax error
when example is run on Python 3.
2017-03-13 13:58:24 +01:00
Ben
42dfa1fce3 Fix broken link (#2202) 2017-03-08 20:26:38 +01:00
Hsiaoming Yang
9c5f048ad2 Don't rely on X-Requested-With for pretty print json response (#2193)
* Don't rely on X-Requested-With for pretty print json response

* Fix test cases for pretty print json patch

* Fix gramma error in docs for pretty print json config

* Add changelog for JSONIFY_PRETTYPRINT_REGULAR
2017-03-07 10:09:46 +09:00
Static
3eb41b7309 Fix typos/grammar in docs (#2201) 2017-03-06 14:05:59 +01:00
Elton Law
822697fe1f Close <li> tag in tutorial (#2199)
Change was merged in the example code but wasn't changed in the docs. c54d67adee
2017-03-05 13:07:49 +01:00
Grey Li
f04ea7f2ba Add tips for debug config with flask cli (#2196)
* Add tips for debug config with flask cli

`app.debug` and `app.config['DEBUG']` are not compatible with the `flask` script.

* Grammar fix

* Grammar fix
2017-03-04 11:29:04 +01:00
Sebastian Kalinowski
17b4fa9b87 Remove extra HTML tag from fileupload docs (#2141) 2017-02-28 14:05:09 +09:00
Sergio Díaz Sánchez
6877025c8d Updated documentation for being able to use init_db method 2017-02-28 00:13:45 +01:00
Timothy John Perisho Eccleston
aadce6bc34 Fix typo in docs/tutorial/templates.rst (#2186) 2017-02-18 07:41:58 +01:00
Jeff Widman
2ad2aadb88 Migrate various docs links to https (#2180)
Also fixed a few outdated links
2017-02-11 10:43:11 +01:00
vojtekb
83d2ba9cf8 py.test => pytest (#2173)
py.test => pytest
2017-02-09 18:34:16 +01:00
Swan Htet Aung
8ac70e1719 Update 4.4.3 HTTP Methods Example
Otherwise it produces `ValueError: View function did not return a response`.
2017-02-09 18:01:12 +06:30
Jeff Widman
84e1e61f8e Update docs that request is an object, not a class (#2154)
Cleanup sphinx formatting to show that `request` is an object, not a class. The actual class name is `Request`.

Based on discussion [here](https://github.com/pallets/flask/pull/2151#issuecomment-272699147).
2017-01-17 20:20:07 +01:00
Markus Unterwaditzer
07a0006121 Merge pull request #2131 from wgwz/add-larger-app-ex
Add larger app ex
2017-01-15 05:56:12 +01:00
Dennis Chen
b57c88e154 Fix Request Reference (#2151)
Points flask.Request to appropriate place in the documentation.
2017-01-14 21:58:45 +01:00
Ondřej Nový
fffd9bb650 Use SOURCE_DATE_EPOCH for copyright year to make build reproducible
Details: https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal
2017-01-13 10:54:55 +01:00
Adrian Moennich
fffe46cf87 Do not suggest deprecated flask.ext.* 2017-01-10 13:12:18 +01:00
Bryce Guinta
e474e244f8 Fix fastcgi lighttpd example documentation. (#2138)
Add a trailing slash to the dummy path in the fastcgi lighttpd setup
documentation. Omitting a trailing slash leads to unintended behavior.
2017-01-01 18:51:21 -08:00
wgwz
6cf3aa2973 Provides a link to the examples src
- moved the link towards the top for better visibility
2016-12-31 18:51:00 -05:00
Markus Unterwaditzer
7ddad080d3 Inherit Werkzeug docs (#2135)
Fix #2132
2016-12-31 16:31:44 +01:00
wgwz
767779920b Add reference to largerapp src in docs 2016-12-30 13:42:14 -05:00
Gábor Lipták
d907eda370 Update Flask-SQLAlchemy link (#2126) 2016-12-28 16:11:33 +01:00
Sven-Hendrik Haase
41d4c60e0b Style the flask command consistently (#2120)
It's done like this in other parts of this doc.
2016-12-21 21:06:48 +01:00
Sven-Hendrik Haase
5d4e95735e Remove wrong comma (#2116) 2016-12-19 05:37:34 -08:00
ezramorris
7f0240cabc Add link to AWS EB Flask tutorial 2016-11-17 14:01:30 +00:00
Jannis Leidel
8d03e03764 Fix rST rendering of env var (#2085)
This was broken in ad011bc32d (diff-fd40cf2be7711772de9d8316da038cceR263)
2016-11-15 11:57:09 +01:00
Giles Thomas
9e309d1b0c Added a link to instructions for PythonAnywhere (#2081) 2016-11-07 10:10:02 -08:00
Tery Lim
bbe09aba26 Update errorhandling.rst (#2075)
Fix LogRecord class reference.
2016-11-01 21:04:20 -07:00
Tery Lim
49613fe775 Update errorhandling.rst (#2074) 2016-11-01 19:58:22 -07:00
Shandy Brown
816939e907 Correct grammar (#2061) 2016-11-01 18:52:54 -07:00
Markus Unterwaditzer
b506b7bfbf Merge branch '0.11-maintenance' 2016-10-30 14:35:15 +01:00
Kyle Lawlor
02cab299c3 Fixes import statement in flaskr (#2068)
- `from flaskr.flaskr import app` in flaskr/__init__.py
  causes an import error with Python 2
- The relative import now used works for py2 and py3
2016-10-30 14:34:49 +01:00
Ionuț Ciocîrlan
8c205c077d Fix grammar in docs 2016-10-24 13:20:54 +02:00
David Lord
4f23ea06c5 Windows venv is Scripts, capital S
closes #2056
2016-10-12 12:14:49 -07:00
Michael Recachinas
d544a46a7d Remove -a/--app from Quickstart documentation (#2046)
* Remove `-a/--app` from Quickstart documentation

As mentioned in #2009, simplifying the CLI saw the removal of the `-a/--app` flag. Therefore, the only way to specify the module to import is by setting `FLASK_APP`.

* Remove misleading `either` from CLI help

The CLI help details how to run the application, but still uses the phrasing "either through the `FLASK_APP`...". This likely is an artifact from when `-a/--app` was still present in the CLI.
2016-10-01 18:45:22 +02:00
Douglas Thor
114257ed58 Updated mod_wsgi.rst to point to new mod_wsgi repo (#2038) 2016-09-24 13:07:19 +02:00
Markus Unterwaditzer
7b9b5580ee Use abort docs from Werkzeug
Fix #1960
2016-09-18 15:47:52 +02:00
Andrew Arendt
06dd928b8d Remove nonsense from cli docs 2016-09-14 20:03:21 +02:00