File tree Expand file tree Collapse file tree 1 file changed +6
-19
lines changed
Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Original file line number Diff line number Diff line change 11Useful Tools
2- =================
2+ ============
33
44IPython
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
2413BPython
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
You can’t perform that action at this time.
0 commit comments