equal
deleted
inserted
replaced
|
1 Quick start |
|
2 =========== |
|
3 |
|
4 .. highlight:: console |
|
5 |
|
6 From CubicWeb |
|
7 ------------- |
|
8 |
|
9 - Install everything (here with pip, possibly in a virtualenv):: |
|
10 |
|
11 pip install pyramid-cubicweb cubicweb-pyramid pyramid_debugtoolbar |
|
12 |
|
13 - Make sure CubicWeb is in user mode:: |
|
14 |
|
15 export CW_MODE=user |
|
16 |
|
17 - Create a CubicWeb instance, and install the 'pyramid' cube on it (see |
|
18 :ref:`configenv` for more details on this step):: |
|
19 |
|
20 cubicweb-ctl create pyramid myinstance |
|
21 |
|
22 .. warning:: |
|
23 |
|
24 You `must` allow anonymous access. |
|
25 |
|
26 - Edit your ``~/etc/cubicweb.d/myinstance/all-in-one.conf`` and set values for |
|
27 :confval:`pyramid-auth-secret` and :confval:`pyramid-session-secret`. |
|
28 |
|
29 - Start the instance with the :ref:`'pyramid' command <cubicweb-ctl_pyramid>` |
|
30 instead of 'start':: |
|
31 |
|
32 cubicweb-ctl pyramid --debug myinstance |
|
33 |
|
34 In a pyramid application |
|
35 ------------------------ |
|
36 |
|
37 Coming soon. |