2013-10-20 02:04:27 +02:00
|
|
|
============
|
|
|
|
OpenSlides
|
|
|
|
============
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
What is OpenSlides?
|
|
|
|
===================
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
OpenSlides is a free, web based presentation and assembly system for
|
|
|
|
managing and projecting agenda, motions and elections of an assembly. See
|
|
|
|
https://openslides.org/ for more information.
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Requirements
|
|
|
|
============
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
OpenSlides runs everywhere where Python is running (for example on
|
2016-02-05 14:33:38 +01:00
|
|
|
GNU/Linux, Mac or Windows (XP or newer)). On each client you need only a
|
|
|
|
current version of a webbrowser.
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Installation
|
|
|
|
============
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
1. Installation on GNU/Linux or Mac OS X
|
|
|
|
----------------------------------------
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
a. Check requirements
|
|
|
|
'''''''''''''''''''''
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Make sure that you have installed `Python (>= 3.4)
|
|
|
|
<https://www.python.org/>`_ on your system. You also need the Python
|
|
|
|
development headers, the Independent JPEG Group's JPEG runtime library
|
|
|
|
(dependency package) and the compression library (development).
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
\E. g. for Ubuntu run::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-20 21:12:32 +02:00
|
|
|
$ sudo apt-get install python3-dev libjpeg-dev zlib1g-dev
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
b. Setup a virtual Python environment (optional)
|
|
|
|
''''''''''''''''''''''''''''''''''''''''''''''''
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
You can setup a virtual Python environment using the virtual environment
|
|
|
|
(venv) package for Python to install OpenSlides as non-root user.
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
*Note: For Ubuntu 14.04 you have to install the pyvenv binary package*
|
|
|
|
``python3.4-venv`` *before.*
|
2016-03-21 20:22:57 +01:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Create your OpenSlides directory, change to it, setup and activate the
|
|
|
|
virtual environment::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
$ mkdir OpenSlides
|
|
|
|
$ cd OpenSlides
|
|
|
|
$ python3 -m venv .virtualenv
|
|
|
|
$ source .virtualenv/bin/activate
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
c. Install OpenSlides
|
|
|
|
'''''''''''''''''''''
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
To install OpenSlides just run::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
$ pip install openslides
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
You can also use the package from the `OpenSlides website
|
|
|
|
<https://openslides.org/>`_. Download latest OpenSlides release as
|
|
|
|
compressed tar archive and run::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
$ pip install openslides-x.x.tar.gz
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
This will install all required Python packages (see
|
|
|
|
``requirements_production.txt``).
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
d. Start OpenSlides
|
|
|
|
'''''''''''''''''''
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
To start OpenSlides simply run::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
$ openslides
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-05-29 08:29:14 +02:00
|
|
|
If you run this command the first time, a new database and the admin account
|
|
|
|
(Username: `admin`, Password: `admin`) will be created. Please change the
|
|
|
|
password after first login!
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-05-29 08:29:14 +02:00
|
|
|
OpenSlides will start a webserver. It will also try to open the webinterface in
|
|
|
|
your default webbrowser. The server will try to listen on the local ip address
|
|
|
|
on port 8000. That means that the server will be available to everyone on your
|
|
|
|
local network (at least for commonly used network configurations).
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
If you use a virtual environment (see step b.), do not forget to activate
|
|
|
|
the environment before restart after you have closed the terminal::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
$ source .virtualenv/bin/activate
|
|
|
|
|
|
|
|
To get help on the command line options run::
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
$ openslides --help
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-02-27 18:27:03 +01:00
|
|
|
You can store settings, database and other personal files in a local
|
|
|
|
subdirectory and use these files e. g. if you want to run multiple
|
|
|
|
instances of OpenSlides::
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
$ openslides --local-installation
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
2. Installation on Windows
|
|
|
|
--------------------------
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Download the latest portable version of OpenSlides for Windows from
|
|
|
|
`OpenSlides website <https://openslides.org/>`_ which does not require any
|
|
|
|
install steps. Simply unzip the downloaded file and run ``openslides.exe``.
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Development
|
|
|
|
===========
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
If you want to contribute to OpenSlides, have a look at `OpenSlides website
|
|
|
|
<https://openslides.org/>`_ and write us an email. There is also an
|
|
|
|
`instruction to install the development version
|
|
|
|
<https://github.com/OpenSlides/OpenSlides/blob/master/DEVELOPMENT.rst>`_.
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-05-29 08:29:14 +02:00
|
|
|
Installation for big assemblies
|
|
|
|
===============================
|
|
|
|
|
2016-08-24 08:21:38 +02:00
|
|
|
The installation steps described above install OpenSlides in a way that does
|
|
|
|
NOT support hundreds of concurrent clients. To install OpenSlides in for big
|
|
|
|
assemblies some config variables have to be changed in the OpenSlides settings
|
2016-05-29 08:29:14 +02:00
|
|
|
usualy called settings.py.
|
|
|
|
|
2016-08-24 08:21:38 +02:00
|
|
|
The configuration values that have to be altered are:
|
2016-05-29 08:29:14 +02:00
|
|
|
|
|
|
|
* CACHES
|
|
|
|
* CHANNEL_LAYERS
|
|
|
|
* DATABASES
|
|
|
|
|
|
|
|
Please see:
|
2016-08-24 08:21:38 +02:00
|
|
|
|
2016-05-29 08:29:14 +02:00
|
|
|
* http://channels.readthedocs.io/en/latest/deploying.html
|
|
|
|
* https://docs.djangoproject.com/en/1.9/topics/cache/
|
|
|
|
* https://github.com/sebleier/django-redis-cache
|
|
|
|
* https://docs.djangoproject.com/en/1.9/ref/settings/#databases
|
|
|
|
|
|
|
|
You should use a webserver like Apache HTTP Server or nginx to serve the static
|
2016-08-24 08:21:38 +02:00
|
|
|
and media files as proxy server in front of OpenSlides server. You also
|
2016-05-29 08:29:14 +02:00
|
|
|
should use a database like PostgreSQL and Redis as channels backend and cache
|
|
|
|
backend.
|
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Used software
|
|
|
|
=============
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
OpenSlides uses the following projects or parts of them:
|
|
|
|
|
2015-12-07 20:48:50 +01:00
|
|
|
* `backports-abc <https://github.com/cython/backports_abc>`_,
|
2014-04-28 22:32:58 +02:00
|
|
|
License: Python Software Foundation License
|
|
|
|
|
2013-10-20 02:04:27 +02:00
|
|
|
* `Beautiful Soup <http://www.crummy.com/software/BeautifulSoup/>`_,
|
|
|
|
License: MIT
|
|
|
|
|
|
|
|
* `Django <https://www.djangoproject.com>`_, License: BSD
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
* `Django REST framework <http://www.django-rest-framework.org>`_, License:
|
|
|
|
BSD
|
2015-12-07 20:48:50 +01:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
* `html5lib <https://github.com/html5lib/html5lib-python>`_, License: MIT
|
2015-12-07 20:48:50 +01:00
|
|
|
|
2016-05-29 08:29:14 +02:00
|
|
|
* `Django Channels <https://github.com/andrewgodwin/channels/>`_, License: MIT
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
* `django-jsonfield <https://github.com/bradjasper/django-jsonfield/>`_,
|
|
|
|
License: MIT
|
2015-12-07 20:48:50 +01:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
* `natsort <https://pypi.python.org/pypi/natsort>`_, License: MIT
|
2013-10-04 11:38:39 +02:00
|
|
|
|
2016-01-27 22:46:23 +01:00
|
|
|
* `PyPDF2 <http://mstamy2.github.io/PyPDF2/>`_, License: BSD
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
* `ReportLab <http://www.reportlab.com/opensource/>`_,
|
2013-10-20 02:04:27 +02:00
|
|
|
License: BSD
|
|
|
|
|
2014-04-28 01:03:10 +02:00
|
|
|
* `roman <https://pypi.python.org/pypi/roman>`_, License: Python 2.1.1
|
|
|
|
|
2014-04-28 22:32:58 +02:00
|
|
|
* `setuptools <https://pypi.python.org/pypi/setuptools>`_,
|
|
|
|
License: Python Software Foundation License
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
* `Six <http://pythonhosted.org/six/>`_, License: MIT
|
|
|
|
|
2016-01-27 22:46:23 +01:00
|
|
|
* `Whoosh <https://bitbucket.org/mchaput/whoosh/wiki/Home>`_, License: BSD
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
* Several JavaScript packages (see ``bower.json``)
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-03-21 20:22:57 +01:00
|
|
|
* `angular <http://angularjs.org>`_, License: MIT
|
|
|
|
* `angular-animate <http://angularjs.org>`_, License: MIT
|
|
|
|
* `angular-bootstrap <http://angular-ui.github.io/bootstrap>`_, License: MIT
|
|
|
|
* `angular-bootstrap-colorpicker <https://github.com/buberdds/angular-bootstrap-colorpicker>`_, License: MIT
|
|
|
|
* `angular-chosen-localytics <http://github.com/leocaseiro/angular-chosen>`_, License: MIT
|
|
|
|
* `angular-csv-import-tmp <https://github.com/cybadave/angular-csv-import>`_, License: MIT
|
|
|
|
* `angular-formly <http://formly-js.github.io/angular-formly/>`_, License: MIT
|
|
|
|
* `angular-formly-templates-bootstrap <http://formly-js.github.io/angular-formly-templates-bootstrap/>`_, License: MIT
|
|
|
|
* `angular-gettext <http://angular-gettext.rocketeer.be/>`_, License: MIT
|
|
|
|
* `angular-loading-bar <https://chieffancypants.github.io/angular-loading-bar>`_, License: MIT
|
|
|
|
* `angular-messages <http://angularjs.org>`_, License: MIT
|
2016-08-24 17:07:26 +02:00
|
|
|
* `pdfmake <https://github.com/pdfmake/pdfmake>`_, License: MIT
|
2016-01-27 22:46:23 +01:00
|
|
|
* `angular-pdf <http://github.com/sayanee/angularjs-pdf>`_, License: MIT
|
2016-03-21 20:22:57 +01:00
|
|
|
* `angular-sanitize <http://angularjs.org>`_, License: MIT
|
2015-12-07 20:48:50 +01:00
|
|
|
* `angular-scroll-glue <https://github.com/Luegg/angularjs-scroll-glue>`_, License: MIT
|
2016-03-21 20:22:57 +01:00
|
|
|
* `angular-ui-router <http://angular-ui.github.io/ui-router/>`_, License: MIT
|
|
|
|
* `angular-ui-tinymce <http://angular-ui.github.com>`_, License: MIT
|
|
|
|
* `angular-ui-tree <https://github.com/angular-ui-tree/angular-ui-tree>`_, License: MIT
|
|
|
|
* `api-check <https://github.com/kentcdodds/api-check>`_, License: MIT
|
2015-12-07 20:48:50 +01:00
|
|
|
* `bootstrap <http://getbootstrap.com>`_, License: MIT
|
2016-03-21 20:22:57 +01:00
|
|
|
* `chosen <http://harvesthq.github.io/chosen/>`_, License: MIT
|
|
|
|
* `font-awesome-bower <https://github.com/tdg5/font-awesome-bower>`_, License: MIT
|
2015-12-07 20:48:50 +01:00
|
|
|
* `jquery <https://jquery.com>`_, License: MIT
|
|
|
|
* `jquery.cookie <https://plugins.jquery.com/cookie>`_, License: MIT
|
|
|
|
* `js-data <http://www.js-data.io>`_, License: MIT
|
|
|
|
* `js-data-angular <http://www.js-data.io/docs/js-data-angular>`_, License: MIT
|
|
|
|
* `js-data-http <http://www.js-data.io/docs/dshttpadapter>`_, License: MIT
|
|
|
|
* `lodash <https://lodash.com/>`_, License: MIT
|
|
|
|
* `ng-dialog <https://github.com/likeastore/ngDialog>`_, License: MIT
|
|
|
|
* `ng-file-upload <https://github.com/danialfarid/ng-file-upload>`_, License: MIT
|
2016-03-21 20:22:57 +01:00
|
|
|
* `ngbootbox <https://github.com/eriktufvesson/ngBootbox>`_, License: MIT
|
2015-12-07 20:48:50 +01:00
|
|
|
* `open-sans-fontface <https://github.com/FontFaceKit/open-sans>`_, License: Apache License version 2.0
|
2016-03-21 20:22:57 +01:00
|
|
|
* `pdfjs-dist <http://mozilla.github.io/pdf.js/>`_, License: Apache-2.0
|
|
|
|
* `roboto-condensed <https://github.com/davidcunningham/roboto-condensed>`_, License: Apache 2.0
|
|
|
|
* `tinymce <http://www.tinymce.com>`_, License: LGPL-2.1
|
|
|
|
* `tinymce-i18n <https://github.com/OpenSlides/tinymce-i18n>`_, License: LGPL-2.1
|
2015-12-07 20:48:50 +01:00
|
|
|
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
License and authors
|
|
|
|
===================
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
OpenSlides is Free/Libre Open Source Software (FLOSS), and distributed
|
|
|
|
under the MIT License, see ``LICENSE`` file. The authors of OpenSlides are
|
|
|
|
mentioned in the ``AUTHORS`` file.
|