/docs/powa-web/index.rst

https://github.com/dalibo/powa · ReStructuredText · 97 lines · 59 code · 38 blank · 0 comment · 0 complexity · 60c37abae2cfdc6163e5193442d98ef7 MD5 · raw file

  1. PoWA-web
  2. ========
  3. Installation
  4. ************
  5. You can install PoWA-web either using `pip <http://pypi.python.org>` or
  6. manually.
  7. Manual install
  8. --------------
  9. You'll need the following dependencies:
  10. * `python <http://www.python.org>`_
  11. * `psycopg2 <http://initd.org/psycopg/>`_
  12. * `sqlalchemy <http://sqlalchemy.org>`_
  13. * `tornado >= 2.0 <http://tornadoweb.org>`_
  14. .. admonition:: debian
  15. .. code-block:: bash
  16. apt-get install python python-psycopg2 python-sqlalchemy python-tornado
  17. .. admonition:: archlinux
  18. .. code-block:: bash
  19. pacman -S python python-psycopg2 python-sqlalchemy python-tornado
  20. .. admonition:: fedora
  21. .. code-block:: bash
  22. TODO
  23. Then, download the latest release on `pypi <https://pypi.python.org/pypi/powa-web/>`_, uncompress it, and copy the sample configuration file:
  24. .. parsed-literal::
  25. wget |powa_web_download_link|
  26. tar -zxvf powa-web-|powa_web_release|
  27. cd powa-web-|powa_web_release|
  28. cp ./powa-web.conf-dist ./powa-web.conf
  29. ./powa-web
  30. Then, jump on the next section to configure powa-web.
  31. Configuration
  32. *************
  33. The powa-web configuration is stored as a simple python file.
  34. Powa-web will search its config as either of these files, in this order:
  35. * /etc/powa-web.conf
  36. * ~/.config/powa-web.conf
  37. * ~/.powa-web.conf
  38. * ./powa-web.conf
  39. The following options are required:
  40. servers (dict):
  41. A dictionary mapping server names to connection information.
  42. .. code-block:: python
  43. servers={
  44. 'main': {
  45. 'host': 'localhost',
  46. 'port': '5432',
  47. 'database': 'powa'
  48. }
  49. }
  50. cookie_secret (str):
  51. A secret key used to secure cookies transiting between the web browser and the
  52. server.
  53. .. code-block:: python
  54. cookie_secret="SECRET_STRING"
  55. See also:
  56. .. toctree::
  57. :maxdepth: 1
  58. deployment.rst
  59. development.rst