forked from orbit-oss/flask
docs: :command:pip, :option:--debug
This commit is contained in:
parent
936e787cca
commit
02694d609f
14 changed files with 50 additions and 50 deletions
|
|
@ -90,14 +90,14 @@ Using Applications
|
|||
------------------
|
||||
|
||||
So to use such an application you then have to create the application
|
||||
first in a separate file otherwise the ``flask`` command won't be able
|
||||
first in a separate file otherwise the :command:`flask` command won't be able
|
||||
to find it. Here an example :file:`exampleapp.py` file that creates such
|
||||
an application::
|
||||
|
||||
from yourapplication import create_app
|
||||
app = create_app('/path/to/config.cfg')
|
||||
|
||||
It can then be used with the ``flask`` command::
|
||||
It can then be used with the :command:`flask` command::
|
||||
|
||||
flask --app=exampleapp run
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ Installing Celery
|
|||
-----------------
|
||||
|
||||
Celery is on the Python Package Index (PyPI), so it can be installed with
|
||||
standard Python tools like ``pip`` or ``easy_install``::
|
||||
standard Python tools like :command:`pip` or :command:`easy_install`::
|
||||
|
||||
$ pip install celery
|
||||
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ make larger applications easier to distribute:
|
|||
this system is the entry point support which allows one package to
|
||||
declare an "entry point" another package can hook into to extend the
|
||||
other package.
|
||||
- **installation manager**: `easy_install`, which comes with distribute
|
||||
can install other libraries for you. You can also use `pip`_ which
|
||||
sooner or later will replace `easy_install` which does more than just
|
||||
- **installation manager**: :command:`easy_install`, which comes with distribute
|
||||
can install other libraries for you. You can also use :command:`pip`_ which
|
||||
sooner or later will replace :command:`easy_install` which does more than just
|
||||
installing packages for you.
|
||||
|
||||
Flask itself, and all the libraries you can find on the cheeseshop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue