Commit graph

41 commits

Author SHA1 Message Date
David Lord
465922e5f1
clean up secret key docs
consistent key across docs and examples
consistent key across tests, set in conftest
2017-06-28 07:58:06 -07:00
David Lord
6a8c8c3484
set example app names directly 2017-05-27 12:47:44 -07:00
bovarysme
5963cb5a51 Use the yield syntax in pytest's fixtures 2017-05-23 18:21:29 +02:00
Jeff Widman
bb0e755c80 Migrate various docs links to https (#2180)
Also fixed a few outdated links
2017-02-11 10:43:11 +01:00
Hopsken
7f28837167 Update README for minitwit (#2119)
add step 2 to run minitwit
2016-12-21 21:07:09 +01:00
Markus Unterwaditzer
7e1a13ffbd Fix import error 2016-11-15 11:58:44 +01:00
Kyle Lawlor
5f009374fd 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
Armin Ronacher
a7d829c618 Update docs to the new CLI patterns 2016-05-26 20:45:50 +02:00
Parkayun
33534bb4a9 Happy New Year 2015 2015-01-02 11:35:00 +09:00
defuz
eb05001f8a docs: Don't touch markdown files 2014-11-05 08:40:57 +03:00
defuz
a8f570cc62 docs: :file:app.py, :file:yourapp/templates 2014-11-05 06:45:22 +03:00
tay-k
f95acc64d6 fix filename of test files in README of examples 2014-09-18 18:21:36 +09:00
Markus Unterwaditzer
8fa5e32d9a Tests pass now. 2014-09-11 22:09:50 +02:00
Jeffrey D
3c48bf8935 Addressed issue #1134 2014-07-29 20:42:28 -05:00
Armin Ronacher
d2d8e66130 Fixed flask tests 2014-05-02 11:46:04 +01:00
Armin Ronacher
9ab5987100 Updated the examples to be cli based 2014-04-29 01:48:31 +02:00
Daniel Neuhäuser
52098e1e4f Happy New Year 2014 2014-01-02 19:21:07 +01: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
e1d356fb71 ported some more stuff to py 3.3
removed init_jinja_globals hack from app.py after consulting mitsuhiko
(didn't work on py 3.3 "as is")

removed with_statement future imports, not needed any more

needs more work on 2.7 as well as on 3.3
2013-05-22 01:33:04 +02:00
oliversong
cc82feb084 Changing string to text in schema files 2012-12-26 00:05:18 -05:00
Armin Ronacher
c2e5799879 Updated examples to new sqlite patterns and added new section to appcontext docs 2012-10-09 14:02:32 -05:00
Armin Ronacher
d3ca55177a Updated the docs and examples to non-failing teardown handlers 2011-08-25 20:56:43 +01:00
Armin Ronacher
b51ecd7f21 Updated examples 2011-05-27 20:29:47 +02:00
Armin Ronacher
164067920b Updated examples to work with pypy which has a incomplete sqlite3 in 1.4. Also disable a euc-kr test that does not work on pypy 2010-12-01 17:22:55 +01:00
Armin Ronacher
dfecc86dd3 Ported examples over to new config. documented upgrading 2010-05-27 21:17:25 +02:00
Armin Ronacher
e432d833b5 Fixed stuff I broke 2010-05-27 13:30:54 +02: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
3053fcdb0d Make the example tests pass on Windows.
Also updated the documentation regarding that.
2010-04-20 20:01:00 +02:00
florentx
3c821a0fa4 Fix typos and remove unused import. 2010-04-20 18:40:58 +02:00
Armin Ronacher
73a47a0db1 Removed unused stuff from minitwit and fixed a bug. 2010-04-18 23:42:11 +02:00
Armin Ronacher
fb2d2e446b request_init -> before_request and request_shutdown -> after_request
This fixes #9.
2010-04-16 11:03:16 +02:00
Armin Ronacher
2f5a4f8dbc Doc updates and typo fixes 2010-04-12 00:14:59 +02:00
Armin Ronacher
ef524f2cfd No need for the closing import 2010-04-11 18:47:32 +02:00
Armin Ronacher
f2dc38cda6 Added tests for minitwit. Testing with Flask is awesome 2010-04-11 18:45:06 +02:00
Armin Ronacher
03168a5d53 Removed the useless apishowcase example 2010-04-11 17:58:45 +02:00
Armin Ronacher
727c701686 And finished documentation for most parts. 2010-04-09 13:40:05 +02:00
Armin Ronacher
4aa76212d1 Updated documentation. Starting to look pretty good 2010-04-09 01:32:39 +02:00
Armin Ronacher
3b36bef2e6 Improved documentation, added a contextmanager for request binding 2010-04-08 19:03:15 +02:00
Armin Ronacher
44b42e0fbd Added a README file for MiniTwit. 2010-04-06 16:16:34 +02:00
Armin Ronacher
4ec7d2a0d8 Started working on documentation.
So far just the stable parts :)
2010-04-06 16:02:14 +02:00
Armin Ronacher
33850c0ebd Initial checkin of stuff that exists so far. 2010-04-06 13:12:57 +02:00