Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
Pylons/pyramid
AlexMarshall12/pyramid
AndreaCrotti/pyramid
Cito/pyramid
DeanHodgkinson/pyramid
DrunkenCub/pyramid
HorizonXP/pyramid
Hquant/pyramid
IDSGPlayground/pyramid-tutorial-yuxin-aaron
JDeuce/pyramid
Javex/pyramid
MorphiX00/pyramid
RichardBarrell/pyramid
RyoAbe/pyramid
SMFOSS/pyramid
XiaonuoGantan/pyramid
aMunRieL/pyramid
aadabi/pyramid
abourget/pyramid
adamryan/pyramid
adroullier/pyramid
alanliang/pyramid
alertedsnake/pyramid
altoplano/pyramid
alvinyue/pyramid
antoneliasson/pyramid
archanmishra/pyramid
asolomentsev/pyramid
audoe/pyramid
audreyr/pyramid
bbinet/pyramid
bdyaniv/pyramid
bennihepp/pyramid
bertjwregeer/pyramid
blaflamme/pyramid
brianr/pyramid
bshanks/pyramid
cameronr/pyramid
caseman/pyramid
cburns/pyramid
cconrad/pyramid
cdt3/pyramid
cguardia/pyramid
cherschel/pyramid
cjw296/pyramid
cloudappsetup/pyramid
countvajhula/pyramid
csenger/pyramid
daado/pyramid
dahabit/pyramid
dairiki/pyramid
david-furminieux/pyramid
davidjb/pyramid
dbaty/pyramid
dekimsey/pyramid
deshank/pyramid
dfee/pyramid
dhavlik/pyramid
di/pyramid
dianaclarke/pyramid
diarmuidbourke/pyramid
dnouri/pyramid
domenkozar/pyramid
douglatornell/pyramid
dzinxed/pyramid
einSelbst/pyramid
elpargo/pyramid
endophage/pyramid
ericrasmussen/pyramid
esehara/pyramid
eugeneai/pyramid
firemyst/pyramid
giorgil2/pyramid
gregglind/pyramid
gulp-swe/pyramid
gwho/pyramid
hathawsh/pyramid
helduel/pyramid
hfeeki/pyramid
hlv42/pyramid
ikeikeikeike/pyramid
irskep/pyramid
jackncoke/pyramid
jaewonk/pyramid
jarda/pyramid
jbohman/pyramid
jgonera/pyramid
jhnwsk/pyramid
jinty/pyramid
jkrebs/pyramid
johbo/pyramid
johnwshipman/pyramid
jpcw/pyramid
jtwaleson/pyramid
junkafarian/pyramid
kaiquewdev/pyramid
kenmanheimer/pyramid
khink/pyramid
knzm/pyramid
kroman0/pyramid
ksava/pyramid
ktosiu/pyramid
kusut/pyramid
lambacck/pyramid
lanestevens/pyramid
ledmonster/pyramid
leonsim/pyramid
lgiorgi/pyramid
lgp171188/pyramid
llacroix/pyramid
lxneng/pyramid
m4webb/pyramid
mabbas512/pyramid
madjar/pyramid
malthe/pyramid
marcofalcioni/pyramid
markramm/pyramid
mattburgess/pyramid
mbra/pyramid
mccane/pyramid
mgedmin/pyramid
michaelBenin/pyramid
mitchellrj/pyramid
mjpieters/pyramid
mkerrin/pyramid
mmerickel/pyramid
mojocatplay/pyramid
msabramo/pyramid
mt3/pyramid
muellert/pyramid
mypandos/pyramid
nek4life/pyramid
niallo/pyramid
nik-cars/pyramid
nmclean/pyramid
pbugni/pyramid
placidrage/pyramid
polinom/pyramid
ponomar/pyramid
ppaez/pyramid
pyeek/pyramid
pylonsproject-jp/pyramid
pyramidcn/pyramid
r0b1n1983/pyramid
rach/pyramid
ralphbean/pyramid
ranjithtenz/pyramid
ravikishore1993/pyramid
raviteja2007/pyramid
rbu/pyramid
reedobrien/pyramid
replaceafill/pyramid
rick446/pyramid
rjweir/pyramid
rob0t7/pyramid
ronjouch/pyramid
ronnix/pyramid
rpatterson/pyramid
samuelrayment/pyramid
sawdog/pyramid
sbellem/pyramid
shazow/pyramid
shentonfreude/pyramid
sjuxax/pyramid
skopp/pyramid
slacy/pyramid
slinkp/pyramid
slmf/pyramid
soulcheck/pyramid
spiffytech/pyramid
sptremblay/pyramid
szicari-cars/pyramid
t2y/pyramid
taiSon/pyramid
tamentis/pyramid
thegeekinside/pyramid
timo/pyramid
tml/pyramid
tomlikestorock/pyramid
velox-zz/pyramid
vhallac/pyramid
viirak/pyramid
vinces1979/pyramid
vipera/pyramid
virhilo/pyramid
wangmxf/pyramid
waynet/pyramid
westurner/pyramid
wichert/pyramid
witsch/pyramid
wrystr/pyramid
wujiang/pyramid
wwitzel3/pyramid
xaav/pyramid
yhc003/pyramid
zesk06/pyramid
zhenghao1/pyramid
ztane/pyramid
zuiwanting/pyramid
zwack/pyramid
Nothing to show
Choose a Head Repository
Pylons/pyramid
AlexMarshall12/pyramid
AndreaCrotti/pyramid
Cito/pyramid
DeanHodgkinson/pyramid
DrunkenCub/pyramid
HorizonXP/pyramid
Hquant/pyramid
IDSGPlayground/pyramid-tutorial-yuxin-aaron
JDeuce/pyramid
Javex/pyramid
MorphiX00/pyramid
RichardBarrell/pyramid
RyoAbe/pyramid
SMFOSS/pyramid
XiaonuoGantan/pyramid
aMunRieL/pyramid
aadabi/pyramid
abourget/pyramid
adamryan/pyramid
adroullier/pyramid
alanliang/pyramid
alertedsnake/pyramid
altoplano/pyramid
alvinyue/pyramid
antoneliasson/pyramid
archanmishra/pyramid
asolomentsev/pyramid
audoe/pyramid
audreyr/pyramid
bbinet/pyramid
bdyaniv/pyramid
bennihepp/pyramid
bertjwregeer/pyramid
blaflamme/pyramid
brianr/pyramid
bshanks/pyramid
cameronr/pyramid
caseman/pyramid
cburns/pyramid
cconrad/pyramid
cdt3/pyramid
cguardia/pyramid
cherschel/pyramid
cjw296/pyramid
cloudappsetup/pyramid
countvajhula/pyramid
csenger/pyramid
daado/pyramid
dahabit/pyramid
dairiki/pyramid
david-furminieux/pyramid
davidjb/pyramid
dbaty/pyramid
dekimsey/pyramid
deshank/pyramid
dfee/pyramid
dhavlik/pyramid
di/pyramid
dianaclarke/pyramid
diarmuidbourke/pyramid
dnouri/pyramid
domenkozar/pyramid
douglatornell/pyramid
dzinxed/pyramid
einSelbst/pyramid
elpargo/pyramid
endophage/pyramid
ericrasmussen/pyramid
esehara/pyramid
eugeneai/pyramid
firemyst/pyramid
giorgil2/pyramid
gregglind/pyramid
gulp-swe/pyramid
gwho/pyramid
hathawsh/pyramid
helduel/pyramid
hfeeki/pyramid
hlv42/pyramid
ikeikeikeike/pyramid
irskep/pyramid
jackncoke/pyramid
jaewonk/pyramid
jarda/pyramid
jbohman/pyramid
jgonera/pyramid
jhnwsk/pyramid
jinty/pyramid
jkrebs/pyramid
johbo/pyramid
johnwshipman/pyramid
jpcw/pyramid
jtwaleson/pyramid
junkafarian/pyramid
kaiquewdev/pyramid
kenmanheimer/pyramid
khink/pyramid
knzm/pyramid
kroman0/pyramid
ksava/pyramid
ktosiu/pyramid
kusut/pyramid
lambacck/pyramid
lanestevens/pyramid
ledmonster/pyramid
leonsim/pyramid
lgiorgi/pyramid
lgp171188/pyramid
llacroix/pyramid
lxneng/pyramid
m4webb/pyramid
mabbas512/pyramid
madjar/pyramid
malthe/pyramid
marcofalcioni/pyramid
markramm/pyramid
mattburgess/pyramid
mbra/pyramid
mccane/pyramid
mgedmin/pyramid
michaelBenin/pyramid
mitchellrj/pyramid
mjpieters/pyramid
mkerrin/pyramid
mmerickel/pyramid
mojocatplay/pyramid
msabramo/pyramid
mt3/pyramid
muellert/pyramid
mypandos/pyramid
nek4life/pyramid
niallo/pyramid
nik-cars/pyramid
nmclean/pyramid
pbugni/pyramid
placidrage/pyramid
polinom/pyramid
ponomar/pyramid
ppaez/pyramid
pyeek/pyramid
pylonsproject-jp/pyramid
pyramidcn/pyramid
r0b1n1983/pyramid
rach/pyramid
ralphbean/pyramid
ranjithtenz/pyramid
ravikishore1993/pyramid
raviteja2007/pyramid
rbu/pyramid
reedobrien/pyramid
replaceafill/pyramid
rick446/pyramid
rjweir/pyramid
rob0t7/pyramid
ronjouch/pyramid
ronnix/pyramid
rpatterson/pyramid
samuelrayment/pyramid
sawdog/pyramid
sbellem/pyramid
shazow/pyramid
shentonfreude/pyramid
sjuxax/pyramid
skopp/pyramid
slacy/pyramid
slinkp/pyramid
slmf/pyramid
soulcheck/pyramid
spiffytech/pyramid
sptremblay/pyramid
szicari-cars/pyramid
t2y/pyramid
taiSon/pyramid
tamentis/pyramid
thegeekinside/pyramid
timo/pyramid
tml/pyramid
tomlikestorock/pyramid
velox-zz/pyramid
vhallac/pyramid
viirak/pyramid
vinces1979/pyramid
vipera/pyramid
virhilo/pyramid
wangmxf/pyramid
waynet/pyramid
westurner/pyramid
wichert/pyramid
witsch/pyramid
wrystr/pyramid
wujiang/pyramid
wwitzel3/pyramid
xaav/pyramid
yhc003/pyramid
zesk06/pyramid
zhenghao1/pyramid
ztane/pyramid
zuiwanting/pyramid
zwack/pyramid
Nothing to show
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 67 additions and 13 deletions.
  1. +4 −0 docs/glossary.rst
  2. +63 −13 docs/tutorials/wiki2/installation.rst
View
@@ -1091,3 +1091,7 @@ Glossary
A technique used when serving a cacheable static asset in order to force
a client to query the new version of the asset. See :ref:`cache_busting`
for more information.
pip
The `Python Packaging Authority <https://www.pypa.io/>`_ recommended tool
for installing Python packages.
@@ -9,9 +9,9 @@ This tutorial assumes that you have already followed the steps in
:ref:`installing_chapter`, except **do not create a virtualenv or install
Pyramid**. Thereby you will satisfy the following requirements.
* Python interpreter is installed on your operating system
* :term:`setuptools` or :term:`distribute` is installed
* :term:`virtualenv` is installed
* A Python interpreter is installed on your operating system.
* :term:`virtualenv` is installed.
* :term:`pip` will be installed when we create a virtual environment.
Create directory to contain the project
@@ -72,6 +72,24 @@ Python 3.5:
c:\> c:\Python35\Scripts\virtualenv %VENV%
Upgrade pip in the virtual environment
--------------------------------------
On UNIX
^^^^^^^
.. code-block:: bash
$ $VENV/bin/pip install --upgrade pip
On Windows
^^^^^^^^^^
.. code-block:: ps1con
c:\> %VENV%\Scripts\pip install --upgrade pip
Install Pyramid into the virtual Python environment
---------------------------------------------------
@@ -80,26 +98,27 @@ On UNIX
.. code-block:: bash
$ $VENV/bin/easy_install pyramid
$ $VENV/bin/pip install pyramid
On Windows
^^^^^^^^^^
.. code-block:: ps1con
c:\> %VENV%\Scripts\easy_install pyramid
c:\> %VENV%\Scripts\pip install pyramid
Install SQLite3 and its development packages
--------------------------------------------
If you used a package manager to install your Python or if you compiled your
Python from source, then you must install SQLite3 and its development packages.
If you downloaded your Python as an installer from https://www.python.org, then
you already have it installed and can skip this step.
If you used a package manager to install your Python or if you compiled
your Python from source, then you must install SQLite3 and its
development packages. If you downloaded your Python as an installer
from https://www.python.org, then you already have it installed and can skip
this step.
If you need to install the SQLite3 packages, then, for example, using the
Debian system and ``apt-get``, the command would be the following:
If you need to install the SQLite3 packages, then, for example, using
the Debian system and ``apt-get``, the command would be the following:
.. code-block:: bash
@@ -168,6 +187,7 @@ On Windows
and the project into directories that do not contain spaces in their paths.
.. _installing_project_in_dev_mode:
Installing the project in development mode
@@ -185,15 +205,15 @@ On UNIX
.. code-block:: bash
$ cd tutorial
$ $VENV/bin/python setup.py develop
$ $VENV/bin/pip install -e .
On Windows
^^^^^^^^^^
.. code-block:: ps1con
c:\pyramidtut> cd tutorial
c:\pyramidtut\tutorial> %VENV%\Scripts\python setup.py develop
c:\pyramidtut\tutorial> %VENV%\Scripts\pip install -e .
The console will show ``setup.py`` checking for packages and installing missing
packages. Success executing this command will show a line like the following::
@@ -215,13 +235,17 @@ On UNIX
$ $VENV/bin/python setup.py test -q
.. py.test? See https://github.com/Pylons/pyramid/issues/2104#issuecomment-155852046
On Windows
^^^^^^^^^^
.. code-block:: ps1con
c:\pyramidtut\tutorial> %VENV%\Scripts\python setup.py test -q
.. py.test? See https://github.com/Pylons/pyramid/issues/2104#issuecomment-155852046
For a successful test run, you should see output that ends like this::
..
@@ -310,6 +334,13 @@ initialize our database.
already have a database, you should delete it before running
``initialize_tutorial_db`` again.
.. note::
The ``initialize_tutorial_db`` command is not performing a migration but
rather simply creating missing tables and adding some dummy data. If you
already have a database, you should delete it before running
``initialize_tutorial_db`` again.
Type the following command, making sure you are still in the ``tutorial``
directory (the directory with a ``development.ini`` in it):
@@ -415,6 +446,13 @@ assumptions:
- You are willing to use :term:`URL dispatch` to map URLs to code.
- You want to use zope.sqlalchemy_, pyramid_tm_ and the transaction_ package
to scope sessions to requests.
- You want to use pyramid_jinja2_ to render your templates.
Different templating engines can be used but we had to choose one to
make the tutorial. See :ref:`available_template_system_bindings` for some
options.
- You want to use zope.sqlalchemy_, pyramid_tm_ and the transaction_ package to
scope sessions to requests.
@@ -440,3 +478,15 @@ assumptions:
.. _transaction:
http://zodb.readthedocs.org/en/latest/transactions.html
.. _pyramid_jinja2:
http://docs.pylonsproject.org/projects/pyramid-jinja2/en/latest/
.. _pyramid_tm:
http://docs.pylonsproject.org/projects/pyramid-tm/en/latest/
.. _zope.sqlalchemy:
https://pypi.python.org/pypi/zope.sqlalchemy
.. _transaction:
http://zodb.readthedocs.org/en/latest/transactions.html

No commit comments for this range