Commit Graph

24 Commits

Author SHA1 Message Date
SaturnR 55bd39c7f0 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
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
Armin Ronacher a7d829c618 Update docs to the new CLI patterns 2016-05-26 20:45:50 +02:00
bagratte 9a80fe691d minor revision of documentation. 2016-04-01 23:12:25 +02:00
Kevin Yap 23fc2e56a8 Grammatical fixes in Foreword and Tutorial 2014-12-16 11:30:00 -08:00
defuz 02694d609f docs: :command:`pip`, :option:`--debug` 2014-11-05 07:03:55 +03:00
defuz a8f570cc62 docs: :file:`app.py`, :file:`yourapp/templates` 2014-11-05 06:45:22 +03:00
Mark Slater 35282a881e Update dbinit.rst
"require" -> "requires"
2014-06-29 15:51:03 -07:00
Armin Ronacher b9013ede22 Clarified how to test with click 2014-05-02 11:50:00 +01:00
Armin Ronacher a3a5075a94 Updated tutorial to the flask script 2014-04-28 15:18:27 +02:00
Armin Ronacher a8a98bc6b6 Various documentation fixups 2014-02-08 22:10:08 +00:00
Armin Ronacher afd3c4532b Rewrapped lines 2013-11-09 13:41:09 +00:00
Reetta Vaahtoranta 0d648fa468 Changed the wording of some sentences there were difficult to understand. 2013-11-09 13:13:14 +00:00
Sean Vieira 12d6ec4130 Fix with block 2013-09-03 23:36:10 -04:00
Armin Ronacher 05161d3584 Rewrote tutorial to use the g based appcontext object 2013-09-01 01:32:41 +06:00
Thomas Waldmann 8bb972e5ae fix minitwit/flaskr test errors, improve docs about file open mode
app.open_resource needs to get called with the correct mode param (python3
will read bytes [not str] if the wrong mode is used), add mode param docs.

rv.data is bytes, fix the data type we compare it with to be also bytes
2013-05-25 19:13:48 +02:00
Thomas Waldmann 40fad2ece8 document python 2.6 minimum requirement, remove all stuff that refers to 2.5 2013-05-18 17:06:25 +02:00
Markus Unterwaditzer 7ee40e9348 Fix #611
Minor but confusing typo in tutorial.
2012-10-16 21:56:51 +02:00
Ron DuPlain ea2a0629c9 Touch up dbinit tutorial doc.
Discussion on #pocoo with svenstaro, dAnjou, noob13.
2012-07-04 15:27:15 -04:00
Sven-Hendrik Haase 0553bbdefe Made it explicitly clear where changes should go in the tutorial 2012-07-04 21:12:41 +02:00
Georg Brandl a224fecfd5 More typo fixes. 2010-05-30 02:15:05 +08:00
Armin Ronacher 9d19b77acf Added lazyloading pattern and explicit chapter links in tutorial.
This fixes #49.
2010-05-26 14:49:01 +02:00
Armin Ronacher 100776147a Added troubleshooting section to the tutorial 2010-04-18 18:40:52 +02:00
Armin Ronacher bcf347fe8d New style for the documentation. Looks more like the website now. 2010-04-18 13:15:00 +02:00