Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #21094 -- Updated reuseable apps tutorial to use pip for instal…

…lation.

Thanks ylb415 at gmail.com for the suggestion.
  • Loading branch information...
commit e4aab1bb8db24e226891556f072968625a68abdf 1 parent 990ce9a
Tim Graham authored

Showing 1 changed file with 6 additions and 16 deletions. Show diff stats Hide diff stats

  1. 22  docs/intro/reusable-apps.txt
22  docs/intro/reusable-apps.txt
@@ -102,7 +102,7 @@ Installing some prerequisites
102 102
 The current state of Python packaging is a bit muddled with various tools. For
103 103
 this tutorial, we're going to use distribute_ to build our package. It's a
104 104
 community-maintained fork of the older ``setuptools`` project. We'll also be
105  
-using `pip`_ to uninstall it after we're finished. You should install these
  105
+using `pip`_ to install and uninstall it. You should install these
106 106
 two packages now. If you need help, you can refer to :ref:`how to install
107 107
 Django with pip<installing-official-release>`. You can install ``distribute``
108 108
 the same way.
@@ -262,28 +262,18 @@ working. We'll now fix this by installing our new ``django-polls`` package.
262 262
    tools that run as that user, so ``virtualenv`` is a more robust solution
263 263
    (see below).
264 264
 
265  
-1. Inside ``django-polls/dist``, untar the new package
266  
-   ``django-polls-0.1.tar.gz`` (e.g. ``tar xzvf django-polls-0.1.tar.gz``). If
267  
-   you're using Windows, you can download the command-line tool bsdtar_ to do
268  
-   this, or you can use a GUI-based tool such as 7-zip_.
269  
-
270  
-2. Change into the directory created in step 1 (e.g. ``cd django-polls-0.1``).
  265
+1. To install the package, use pip (you already :ref:`installed it
  266
+   <installing-reusable-apps-prerequisites>`, right?)::
271 267
 
272  
-3. If you're using GNU/Linux, Mac OS X or some other flavor of Unix, enter the
273  
-   command ``python setup.py install --user`` at the shell prompt.  If you're
274  
-   using Windows, start up a command shell and run the command
275  
-   ``setup.py install --user``.
  268
+    pip install --user django-polls/dist/django-polls-0.1.tar.gz
276 269
 
277  
-   With luck, your Django project should now work correctly again. Run the
  270
+2. With luck, your Django project should now work correctly again. Run the
278 271
    server again to confirm this.
279 272
 
280  
-4. To uninstall the package, use pip (you already :ref:`installed it
281  
-   <installing-reusable-apps-prerequisites>`, right?)::
  273
+3. To uninstall the package, use pip::
282 274
 
283 275
     pip uninstall django-polls
284 276
 
285  
-.. _bsdtar: http://gnuwin32.sourceforge.net/packages/bsdtar.htm
286  
-.. _7-zip: http://www.7-zip.org/
287 277
 .. _pip: http://pypi.python.org/pypi/pip
288 278
 
289 279
 Publishing your app

0 notes on commit e4aab1b

Please sign in to comment.
Something went wrong with that request. Please try again.