| author | raph |
| Thu, 10 Dec 2009 15:07:25 +0100 | |
| changeset 42 | 82f6e2879e0a |
| parent 37 | d62454bf4402 |
| child 63 | 0a610af4033f |
| permissions | -rw-r--r-- |
| 0 | 1 |
******* |
2 |
Comt |
|
3 |
******* |
|
4 |
||
5 |
Presentation |
|
6 |
============ |
|
| 36 | 7 |
Comt is an open source Web-based text annotation platform. |
| 0 | 8 |
|
9 |
License |
|
10 |
======= |
|
11 |
GNU AFFERO GENERAL PUBLIC LICENSE |
|
12 |
http://www.gnu.org/licenses/agpl.html |
|
13 |
||
14 |
Dependencies |
|
15 |
============ |
|
16 |
||
17 |
Environment |
|
18 |
------------- |
|
| 37 | 19 |
- Postgresql 8.3 or Mysql 5+ or sqlite |
| 0 | 20 |
- Python 2.5+ |
| 37 | 21 |
- Openoffice 3.0+ (headless) & Pandoc |
| 0 | 22 |
|
23 |
||
24 |
Requirements |
|
25 |
------------ |
|
| 36 | 26 |
- python |
27 |
- python magic |
|
28 |
- python development headers |
|
29 |
- python setuptools |
|
30 |
- python uno |
|
| 0 | 31 |
- pandoc |
32 |
- headless openoffice |
|
| 36 | 33 |
- git |
34 |
- libyaml |
|
| 0 | 35 |
(all other python dependencies will be downloaded by buildout) |
36 |
||
37 |
Installation (development install) |
|
38 |
============ |
|
| 31 | 39 |
1. Install python2.5+ and all required libraries |
40 |
(ubuntu users : 'sudo apt-get install python python-magic python-setuptools python-uno libyaml-0-1 python-dev git-core') |
|
| 0 | 41 |
2. Install pandoc |
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
42 |
(ubuntu users : 'sudo apt-get install pandoc') |
| 0 | 43 |
3. Install openoffice (headless mode) [used for document conversion] |
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
44 |
(ubuntu users : 'sudo apt-get install sun-java6-jre openoffice.org openoffice.org-headless xvfb) |
| 0 | 45 |
4. Install/configure database [skip this step if you plan to use a sqlite database] |
46 |
4 a) Postgresql |
|
47 |
- Install and configure database server [skip this step if use an external database server] |
|
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
48 |
(ubuntu users : 'sudo apt-get install postgresql') |
| 0 | 49 |
- Install database client |
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
50 |
(ubuntu users : 'sudo apt-get install postgresql-client') |
| 0 | 51 |
- Install python database connector: psycopg2 |
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
52 |
(ubuntu users : 'sudo apt-get install python-psycopg2') |
| 0 | 53 |
4 b) Mysql |
54 |
- Install and configure mysql server [skip this step if use an external database server] |
|
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
55 |
(ubuntu users : 'sudo apt-get install mysql-server') |
| 0 | 56 |
- Install database client |
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
57 |
(ubuntu users : 'sudo apt-get install mysql-client') |
| 0 | 58 |
- Install python database connector: mysqldb |
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
59 |
(ubuntu users : 'sudo apt-get install python-mysqldb') |
| 0 | 60 |
5. Create a database (we recommend UTF8 encoding) and a read/write access to it. [skip this step if you plan to use a sqlite database] |
61 |
The database account accessing the database MUST have administrative privileges when running the 'syncdb command' (step 8) |
|
62 |
(The reason for that is that Postgresql requires such privileges to create the C-based stored procedure that we use for full text indexing) |
|
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
63 |
(ex. postgresql: 'sudo -u postgres createdb -E utf8 -e <db_name>) |
|
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
64 |
6. Setup the project and get dependencies |
| 0 | 65 |
- `python bootstrap.py` |
66 |
- `./bin/buildout` |
|
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
67 |
7. Configure Comt to your settings |
| 0 | 68 |
- copy settings_local_sample.py to settings_local.py (this file will contain your personal settings) |
69 |
- edit settings_local.py to suit your settings (search for 'YOUR_SETTINGS' occurrences, those are mandatory settings) |
|
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
70 |
8. Create the database structure (and test your database connection) |
| 0 | 71 |
- `./bin/django syncdb --settings=settings` |
| 31 | 72 |
- `./bin/django migrate --settings=settings` |
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
73 |
9. Create basic right management system |
| 0 | 74 |
- `./bin/django loaddata roles_generic --settings=settings` |
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
75 |
10. Launch development server |
|
17
a4be0b8a905d
bug fix : can view own comment on comment add on mod priori
reno
parents:
0
diff
changeset
|
76 |
- `./bin/django runserver --settings=settings` |
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
77 |
11. Access your Comt instance by pointing your browser to http://127.0.0.1:8000/ |
| 0 | 78 |
|
79 |
Installation (production environment) |
|
80 |
============= |
|
81 |
If you'd like to install Comt on a production environment, check out django installation guide at http://www.djangoproject.com/documentation/modpython/ |
|
82 |
||
| 31 | 83 |
Upgrade |
84 |
======= |
|
85 |
||
86 |
Normal upgrade |
|
87 |
-------------- |
|
88 |
Upgrading you database should only need one command: |
|
| 33 | 89 |
- `./bin/buildout` |
| 31 | 90 |
- `./bin/django migrate --settings=settings` |
91 |
||
92 |
Upgrade from alpha releases |
|
93 |
---------------------------- |
|
94 |
If your database was created using comt alpha prior to the revision 29, here are the commands you should run: |
|
| 33 | 95 |
- `./bin/buildout` |
96 |
- `./bin/django syncdb` |
|
97 |
- `./bin/django migrate cm 0001_initial --fake` |
|
98 |
- `./bin/django migrate` |
|
| 31 | 99 |
|
| 0 | 100 |
Openoffice |
101 |
========== |
|
102 |
Comt uses openoffice to convert documents from ODT, MS Word, etc. to html. |
|
103 |
On a development setup, you should make sure no openoffice process is left and launch |
|
104 |
`soffice -headless "-accept=socket,port=2002;urp;"` to start openoffice in background mode. |
|
105 |
||
106 |
Comt uses |
|
107 |
============ |
|
108 |
||
109 |
Javascript libs used (and license) / shipped with the distribution |
|
110 |
------------------------------------------------------------------ |
|
111 |
- Yahoo UI http://developer.yahoo.com/yui/ BSD License |
|
112 |
- JQuery http://jquery.com/ MIT |
|
113 |
- markItUp http://markitup.jaysalvat.com/home/ MIT/GPL |
|
114 |
||
115 |
Python libraries used (and license) / NOT shipped with the distribution |
|
116 |
----------------------------------------------------------------------- |
|
117 |
- django http://www.djangoproject.com/ BSD License |
|
118 |
- python magic http://hupp.org/adam/hg/python-magic permissive BSD style license |
|
119 |
- Beautiful soup http://www.crummy.com/software/BeautifulSoup/ PSF license |
|
120 |
- python-chardet http://chardet.feedparser.org/ LGPL |
|
121 |
- python-feedparser http://feedparser.org/ "Permissive" custom license |
|
122 |
- python-imaging http://www.pythonware.com/products/pil/ http://www.pythonware.com/products/pil/license.htm |
|
123 |
- python-pytz |
|
124 |
- html5lib |
|
125 |
- python-simplejson |
|
126 |
- python-uno |
|
127 |
- python-utidylib |
|
128 |
- python-yaml |
|
129 |
||
130 |
Icons |
|
131 |
----- |
|
132 |
- Icons derived from FatCow Icon Set http://www.fatcow.com/free-icons/index.bml (Creative Commons Attribution 3.0 License) |
|
133 |
||
134 |
FAQ |
|
135 |
==== |
|
136 |
Q: I get 'import error' when starting the server (step #9) |
|
137 |
R: Make sure you installed all required python dependencies |
|
138 |
||
139 |
Community |
|
140 |
========= |
|
141 |
The Comt web site http://www.co-ment.org is the place to ask questions, report bugs, check out the source code or download the releases of Comt. |
|
142 |
||
143 |
Credits |
|
144 |
======== |
|
145 |
We'd like to thank: |
|
|
18
f0f9929a4900
add sudo in ubuntu examples for commands to be run as root
gibus
parents:
17
diff
changeset
|
146 |
- Kirill Miazine (http://km.krot.org/) for the norwegian translation |