OpenSlides/INSTALL

170 lines
4.3 KiB
Plaintext
Raw Normal View History

2011-07-31 10:46:29 +02:00
Installation Instructions for OpenSlides
========================================
2011-10-24 17:55:14 +02:00
Content
-------
I. Installation on Windows (32/64bit)
II. Installation on GNU/Linux and MacOSX
2011-07-31 10:46:29 +02:00
2011-10-24 17:55:14 +02:00
I. Installation on Windows (32/64bit)
-------------------------------------
2011-07-31 10:46:29 +02:00
1. Install Python 2.7
- 32bit:
a) Download and run 32bit MSI installer (python-2.7.2.msi)
from http://www.python.org/download/
b) Add python dirs to PATH (via Control Panel > System > Advanced):
C:\Python27;C:\Python27\Scripts
- 64bit:
a) Download and run 64bit MSI installer (python-2.7.2.amd64.msi)
from http://www.python.org/download/
b) Add python dirs to PATH (via Control Panel > System > Advanced):
C:\Python27;C:\Python27\Scripts
2. Install Setuptools 0.6c11
- 32bit:
Download and run 32bit binary installer
(setuptools-0.6c11.win32-py2.7.exe)
from http://pypi.python.org/pypi/setuptools
- 64bit:
a) Download 64bit version (ez_setup.py)
from http://pypi.python.org/pypi/setuptools
b) Open cmd and run to install setuptools:
python ez_setup.py
3. Install django packages
Open cmd and run:
easy_install django django-model-utils
4. Install packages for building PDF (reportlab, PIL)
- 32bit:
Run on cmd:
easy_install reportlab pil
- 64bit:
a) Download and run Reportlab 64bit binary installer
(reportlab-2.5-win-amd64-py2.7.exe) from
http://www.reportlab.com/ftp/
b) Download and run PIL 64bit binary installer
(PIL-1.1.7.win-amd64-py2.7.exe) from
http://www.lfd.uci.edu/~gohlke/pythonlibs/
2011-10-24 17:55:14 +02:00
5. Get OpenSlides:
2011-07-31 10:46:29 +02:00
2011-10-24 17:55:14 +02:00
a) Download latest OpenSlides release from http://openslides.org.
2011-09-08 09:35:53 +02:00
OR
2011-10-24 17:55:14 +02:00
b) Clone development version from mercurial repository
(anonymous checkout):
2011-09-08 09:35:53 +02:00
hg clone http://hg.openslides.org
If you have write access use instead:
hg clone ssh://hg@openslides.org/openslides
2011-07-31 10:46:29 +02:00
6. Copy default.settings.py to settings.py
2011-09-08 09:35:53 +02:00
(in subdirectory 'openslides')
2011-07-31 10:46:29 +02:00
2011-10-24 17:55:14 +02:00
7. Create OpenSlides database (and follow on screen instruction).
Go to the extracted OpenSlides root directory and enter:
2011-07-31 10:46:29 +02:00
python manage.py syncdb
2011-09-08 09:35:53 +02:00
-> Note: Answer "yes" to create superuser!
2011-07-31 10:46:29 +02:00
8. Run OpenSlides server:
2011-10-24 17:55:14 +02:00
python manage.py runserver
Optional: Add <port> or <address:port> to use server on custom
address/port.
2011-07-31 10:46:29 +02:00
2011-09-08 09:35:53 +02:00
9. Open OpenSlides in your browser:
2011-07-31 10:46:29 +02:00
2011-09-08 09:35:53 +02:00
http://127.0.0.1:8000/ (or customized server address:port)
2011-07-31 10:46:29 +02:00
2011-10-24 17:55:14 +02:00
II. Installation on GNU/Linux and MacOSX
----------------------------------------
2011-07-31 10:46:29 +02:00
2011-10-24 17:55:14 +02:00
Make sure that you have installed python and virtualenv on your
2011-07-31 10:46:29 +02:00
system.
2011-10-24 17:55:14 +02:00
1. Get OpenSlides:
2011-09-08 09:35:53 +02:00
2011-10-24 17:55:14 +02:00
a) Download latest OpenSlides release from http://openslides.org.
2011-09-08 09:35:53 +02:00
OR
2011-10-24 17:55:14 +02:00
b) Clone development version from mercurial repository (anonymous
checkout):
2011-09-08 09:35:53 +02:00
hg clone http://hg.openslides.org
If you have write access use instead:
hg clone ssh://hg@openslides.org/openslides
2. Setup virtualenv:
2011-07-31 10:46:29 +02:00
2011-11-23 08:49:03 +01:00
# Go to the (extracted/cloned) root directory of OpenSlides
# and create virtualenv environment
2011-09-08 09:35:53 +02:00
virtualenv --no-site-packages .venv
# activate virtualenv environment
2011-07-31 10:46:29 +02:00
. .venv/bin/activate
2011-09-08 09:35:53 +02:00
3. Install 'pip' (if not available):
2011-07-31 10:46:29 +02:00
easy_install pip
2011-09-08 09:35:53 +02:00
4. Install django packages:
2011-07-31 10:46:29 +02:00
pip install django django-model-utils
2011-09-08 09:35:53 +02:00
5. Install packages for building PDF:
2011-07-31 10:46:29 +02:00
pip install reportlab pil
2011-09-08 09:35:53 +02:00
6. Install other required packages:
pip install simplejson mercurial
2011-09-08 09:35:53 +02:00
7. Copy default.settings.py to settings.py:
2011-10-24 17:55:14 +02:00
cp openslides/default.settings.py openslides/settings.py
2011-07-31 10:46:29 +02:00
2011-10-24 17:55:14 +02:00
8. Create OpenSlides database in the OpenSlides root directory
and follow on screen instruction:
2011-07-31 10:46:29 +02:00
python manage.py syncdb
2011-09-08 09:35:53 +02:00
-> Note: Answer "yes" to create superuser!
2011-07-31 10:46:29 +02:00
2011-09-08 09:35:53 +02:00
9. Run OpenSlides server:
2011-07-31 10:46:29 +02:00
2011-10-24 17:55:14 +02:00
python manage.py runserver
Optional: Add <port> or <address:port> to use server on custom
address/port.
2011-07-31 10:46:29 +02:00
2011-09-08 09:35:53 +02:00
10. Open OpenSlides in your browser:
2011-07-31 10:46:29 +02:00
2011-09-08 09:35:53 +02:00
http://127.0.0.1:8000/ (or customized server address:port)
2011-07-31 10:46:29 +02:00
--
If you need help ask on OpenSlides users mailinglist.
See www.openslides.org for more information.