Skip to content

Commit 4bb7151

Browse files
author
Kenneth Reitz
committed
useful tools
1 parent 4c5c33a commit 4bb7151

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

docs/useful-tools.rst

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,18 @@
11
Useful Tools
2-
=================
2+
============
33

44
IPython
5-
-------------------------------
6-
7-
Say you have a utility function that returns the URL the user should be
8-
redirected to. Imagine it would always redirect to the URL's ``next``
9-
parameter or the HTTP referrer or the index page::
10-
11-
$ curl -O http://python-distribute.org/distribute_setup.py
12-
$ python distribute_setup.py
13-
14-
As you can see, it accesses the request object. If you try to run this
15-
from a plain Python shell, this is the exception you will see: ::
16-
17-
$ easy_install pip
5+
-------
186

19-
Hopefully you'll never have to use **easy_install** again.
7+
::
208

9+
$ pip install ipython
2110

2211

2312

2413
BPython
2514
-------
2615

27-
By just creating a request context, you still don't have run the code that
28-
is normally run before a request. This probably results in your database
29-
being unavailable, the current user not being stored on the
30-
:data:`~flask.g` object etc.
16+
::
3117

18+
$ pip install bpython

0 commit comments

Comments
 (0)