docs: fix warnings

This commit is contained in:
defuz 2014-11-05 08:04:06 +03:00
parent d6f5eb8def
commit 5562acfdfc
4 changed files with 8 additions and 8 deletions

View file

@ -32,7 +32,7 @@ depending on how the extension is distributed. If you want to develop an
application that supports Flask 0.7 or earlier you should still import application that supports Flask 0.7 or earlier you should still import
from the :data:`flask.ext` package. We provide you with a compatibility from the :data:`flask.ext` package. We provide you with a compatibility
module that provides this package for older versions of Flask. You can module that provides this package for older versions of Flask. You can
download it from github: :file:`flaskext_compat.py`_ download it from github: `flaskext_compat.py`_
And here is how you can use it:: And here is how you can use it::

View file

@ -150,21 +150,21 @@ If you don't currently have either, then `get-pip.py` will install both for you
To install the latest setuptools, you can use its bootstrap file: To install the latest setuptools, you can use its bootstrap file:
:file:`ez_setup.py`_ `ez_setup.py`_
Either should be double-clickable once you download them. If you already have pip, Either should be double-clickable once you download them. If you already have pip,
you can upgrade them by running:: you can upgrade them by running::
> pip install --upgrade pip setuptools > pip install --upgrade pip setuptools
Most often, once you pull up a command prompt you want to be able to type :command:``pip`` Most often, once you pull up a command prompt you want to be able to type :command:`pip`
and :command:``python`` which will run those things, but this might not automatically happen and :command:`python` which will run those things, but this might not automatically happen
on Windows, because it doesn't know where those executables are (give either a try!). on Windows, because it doesn't know where those executables are (give either a try!).
To fix this, you should be able to navigate to your Python install directory To fix this, you should be able to navigate to your Python install directory
(e.g ``C:\Python27``), then go to ``Tools``, then ``Scripts``; then find the (e.g ``C:\Python27``), then go to ``Tools``, then ``Scripts``; then find the
``win_add2path.py`` file and run that. Open a **new** Command Prompt and ``win_add2path.py`` file and run that. Open a **new** Command Prompt and
check that you can now just type :command:``python`` to bring up the interpreter. check that you can now just type :command:`python` to bring up the interpreter.
Finally, to install `virtualenv`_, you can simply run:: Finally, to install `virtualenv`_, you can simply run::

View file

@ -19,7 +19,7 @@ make larger applications easier to distribute:
declare an "entry point" another package can hook into to extend the declare an "entry point" another package can hook into to extend the
other package. other package.
- **installation manager**: :command:`easy_install`, which comes with distribute - **installation manager**: :command:`easy_install`, which comes with distribute
can install other libraries for you. You can also use :command:`pip`_ which can install other libraries for you. You can also use `pip`_ which
sooner or later will replace :command:`easy_install` which does more than just sooner or later will replace :command:`easy_install` which does more than just
installing packages for you. installing packages for you.
@ -42,7 +42,7 @@ Basic Setup Script
Because you have Flask running, you either have setuptools or distribute Because you have Flask running, you either have setuptools or distribute
available on your system anyways. If you do not, fear not, there is a available on your system anyways. If you do not, fear not, there is a
script to install it for you: :file:`distribute_setup.py`_. Just download and script to install it for you: `distribute_setup.py`_. Just download and
run with your Python interpreter. run with your Python interpreter.
Standard disclaimer applies: :ref:`you better use a virtualenv Standard disclaimer applies: :ref:`you better use a virtualenv

View file

@ -184,7 +184,7 @@ An Easier Solution
Because the common pattern for file uploads exists almost unchanged in all Because the common pattern for file uploads exists almost unchanged in all
applications dealing with uploads, there is a Flask extension called applications dealing with uploads, there is a Flask extension called
``Flask-Uploads``_ that implements a full fledged upload mechanism with `Flask-Uploads`_ that implements a full fledged upload mechanism with
white and blacklisting of extensions and more. white and blacklisting of extensions and more.
.. _Flask-Uploads: http://pythonhosted.org/Flask-Uploads/ .. _Flask-Uploads: http://pythonhosted.org/Flask-Uploads/