Falcon v2.0.0 Documentation
fresh virtualenv. To that end, let’s create a new project folder called “look”, and set up a virtual environment within it that we can use for the tutorial: $ mkdir look $ cd look $ virtualenv .venv $ Documentation, Release 2.0.0 # For Python 3 $ python3 -m venv /home/myproject/venv # For Python 2 $ virtualenv /home/myproject/venv Then install your dependencies. $ /home/myproject/venv/bin/pip install -r version you are using and your operating system. At the end of the day the application needs a virtualenv in /home/myproject/venv with the project dependencies installed. Use the pip binary within the0 码力 | 184 页 | 671.87 KB | 1 年前3Falcon v3.0.0-b2 Documentation
fresh virtualenv. To that end, let’s create a new project folder called “look”, and set up a virtual environment within it that we can use for the tutorial: $ mkdir look $ cd look $ virtualenv .venv $ First Steps from the WSGI tutorial: asgilook .venv asgilook __init__.py app.py We’ll create a virtualenv using the venv module from the standard library (Falcon requires Python 3.6+ for ASGI): $ mkdir Python distribution does not happen to include the venv module, you can always install and use virtualenv instead. Tip: Some of us find it convenient to manage virtualenvs with virtualenvwrapper or pipenv0 码力 | 340 页 | 1.15 MB | 1 年前3Falcon v3.0.0 Documentation
fresh virtualenv. To that end, let’s create a new project folder called “look”, and set up a virtual environment within it that we can use for the tutorial: $ mkdir look $ cd look $ virtualenv .venv $ First Steps from the WSGI tutorial: asgilook .venv asgilook __init__.py app.py We’ll create a virtualenv using the venv module from the standard library (Falcon requires Python 3.6+ for ASGI): $ mkdir Python distribution does not happen to include the venv module, you can always install and use virtualenv instead. Tip: Some of us find it convenient to manage virtualenvs with virtualenvwrapper or pipenv0 码力 | 344 页 | 1.16 MB | 1 年前3Falcon v3.0.1 Documentation
fresh virtualenv. To that end, let’s create a new project folder called “look”, and set up a virtual environment within it that we can use for the tutorial: $ mkdir look $ cd look $ virtualenv .venv $ First Steps from the WSGI tutorial: asgilook .venv asgilook __init__.py app.py We’ll create a virtualenv using the venv module from the standard library (Falcon requires Python 3.6+ for ASGI): $ mkdir Python distribution does not happen to include the venv module, you can always install and use virtualenv instead. Tip: Some of us find it convenient to manage virtualenvs with virtualenvwrapper or pipenv0 码力 | 344 页 | 1.16 MB | 1 年前3Falcon v3.0.0-b1 Documentation
fresh virtualenv. To that end, let’s create a new project folder called “look”, and set up a virtual environment within it that we can use for the tutorial: $ mkdir look $ cd look $ virtualenv .venv $ asgilook .venv asgilook __init__.py app.py Note: Installing virtualenv is not needed for recent Python 3.x versions. We can simply create a virtualenv using the venv module from the standard library, for instance: depending on how Python is packaged and installed in your OS. Even if that is the case, installing virtualenv should still work as usual. Some of us find it convenient to manage virtualenvs with virtualenvwrapper0 码力 | 338 页 | 1.14 MB | 1 年前3Falcon v2.0.0 Documentation
used by the framework. First Steps The first thing we’ll do is install Falcon inside a fresh virtualenv [http://docs.python- guide.org/en/latest/dev/virtualenvs/]. To that end, let’s create a new project up a virtual environment within it that we can use for the tutorial: $ mkdir look $ cd look $ virtualenv .venv $ source .venv/bin/activate $ pip install falcon It’s customary for the project’s top-level install your dependencies. # For Python 3 $ python3 -m venv /home/myproject/venv # For Python 2 $ virtualenv /home/myproject/venv Then install your dependencies. $ /home/myproject/venv/bin/pip install -r0 码力 | 265 页 | 299.57 KB | 1 年前3Falcon v3.1.1 Documentation
ASGI tutorial instead! First Steps The first thing we’ll do is install Falcon inside a fresh virtualenv [http://docs.python- guide.org/en/latest/dev/virtualenvs/]. To that end, let’s create a new project up a virtual environment within it that we can use for the tutorial: $ mkdir look $ cd look $ virtualenv .venv $ source .venv/bin/activate $ pip install falcon It’s customary for the project’s top-level WSGI tutorial: asgilook ├── .venv └── asgilook ├── __init__.py └── app.py We’ll create a virtualenv using the venv module from the standard library (Falcon requires Python 3.6+ for ASGI): $ mkdir0 码力 | 540 页 | 476.60 KB | 1 年前3Falcon v3.1.1-rc1 Documentation
ASGI tutorial instead! First Steps The first thing we’ll do is install Falcon inside a fresh virtualenv [http://docs.python- guide.org/en/latest/dev/virtualenvs/]. To that end, let’s create a new project up a virtual environment within it that we can use for the tutorial: $ mkdir look $ cd look $ virtualenv .venv $ source .venv/bin/activate $ pip install falcon It’s customary for the project’s top-level WSGI tutorial: asgilook ├── .venv └── asgilook ├── __init__.py └── app.py We’ll create a virtualenv using the venv module from the standard library (Falcon requires Python 3.6+ for ASGI): $ mkdir0 码力 | 540 页 | 476.61 KB | 1 年前3Falcon v3.1.0 Documentation
ASGI tutorial instead! First Steps The first thing we’ll do is install Falcon inside a fresh virtualenv [http://docs.python- guide.org/en/latest/dev/virtualenvs/]. To that end, let’s create a new project up a virtual environment within it that we can use for the tutorial: $ mkdir look $ cd look $ virtualenv .venv $ source .venv/bin/activate $ pip install falcon It’s customary for the project’s top-level WSGI tutorial: asgilook ├── .venv └── asgilook ├── __init__.py └── app.py We’ll create a virtualenv using the venv module from the standard library (Falcon requires Python 3.6+ for ASGI): $ mkdir0 码力 | 537 页 | 474.34 KB | 1 年前3Falcon v3.1.1-b3 Documentation
ASGI tutorial instead! First Steps The first thing we’ll do is install Falcon inside a fresh virtualenv [http://docs.python- guide.org/en/latest/dev/virtualenvs/]. To that end, let’s create a new project up a virtual environment within it that we can use for the tutorial: $ mkdir look $ cd look $ virtualenv .venv $ source .venv/bin/activate $ pip install falcon It’s customary for the project’s top-level WSGI tutorial: asgilook ├── .venv └── asgilook ├── __init__.py └── app.py We’ll create a virtualenv using the venv module from the standard library (Falcon requires Python 3.6+ for ASGI): $ mkdir0 码力 | 540 页 | 476.61 KB | 1 年前3
共 32 条
- 1
- 2
- 3
- 4