Skip to content
Myr

docs: fix warnings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by defuz · committed by defuz · parent d6f5eb8 · Browse files · 4 files+8 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+8 added−8 removed

  • other:+8 added−8 removed

4 files+8 added−8 removed

modified:docs/patterns/distribute.rst+2 added-2 removed
17 unmodified lines
18 this system is the entry point support which allows one package to19 declare an "entry point" another package can hook into to extend the20 other package.21- **installation manager**: :command:`easy_install`, which comes with distribute22 can install other libraries for you. You can also use :command:`pip`_ which22 can install other libraries for you. You can also use `pip`_ which23 sooner or later will replace :command:`easy_install` which does more than just24 installing packages for you.2526Flask itself, and all the libraries you can find on the cheeseshop
14 unmodified lines
41------------------4243Because you have Flask running, you either have setuptools or distribute44available on your system anyways. If you do not, fear not, there is a45script to install it for you: :file:`distribute_setup.py`_. Just download and45script to install it for you: `distribute_setup.py`_. Just download and46run with your Python interpreter.4748Standard disclaimer applies: :ref:`you better use a virtualenv49<virtualenv>`.
117 unmodified lines
modified:docs/patterns/fileuploads.rst+1 added-1 removed
182 unmodified lines
183------------------184185Because the common pattern for file uploads exists almost unchanged in all186applications dealing with uploads, there is a Flask extension called187``Flask-Uploads``_ that implements a full fledged upload mechanism with187`Flask-Uploads`_ that implements a full fledged upload mechanism with188white and blacklisting of extensions and more.189190.. _Flask-Uploads: http://pythonhosted.org/Flask-Uploads/
modified:docs/extensions.rst+1 added-1 removed
30 unmodified lines
31depending on how the extension is distributed. If you want to develop an32application that supports Flask 0.7 or earlier you should still import33from the :data:`flask.ext` package. We provide you with a compatibility34module that provides this package for older versions of Flask. You can35download it from github: :file:`flaskext_compat.py`_35download it from github: `flaskext_compat.py`_3637And here is how you can use it::3839 import flaskext_compat
9 unmodified lines
modified:docs/installation.rst+4 added-4 removed
148 unmodified lines
149`get-pip.py`_150151To install the latest setuptools, you can use its bootstrap file:152153:file:`ez_setup.py`_153`ez_setup.py`_154155Either should be double-clickable once you download them. If you already have pip,156you can upgrade them by running::157158 > pip install --upgrade pip setuptools159160Most often, once you pull up a command prompt you want to be able to type :command:``pip``161and :command:``python`` which will run those things, but this might not automatically happen160Most often, once you pull up a command prompt you want to be able to type :command:`pip`161and :command:`python` which will run those things, but this might not automatically happen162on Windows, because it doesn't know where those executables are (give either a try!).163164To fix this, you should be able to navigate to your Python install directory165(e.g ``C:\Python27``), then go to ``Tools``, then ``Scripts``; then find the166``win_add2path.py`` file and run that. Open a **new** Command Prompt and167check that you can now just type :command:``python`` to bring up the interpreter.167check that you can now just type :command:`python` to bring up the interpreter.168169Finally, to install `virtualenv`_, you can simply run::170171 > pip install virtualenv
5 unmodified lines