root / README @ 4ffb82dc
History | View | Annotate | Download (1.4 kB)
1 |
Synnefo |
---|---|
2 |
======= |
3 |
|
4 |
Installation |
5 |
------------ |
6 |
$ sudo easy_install virtualenv |
7 |
.... |
8 |
$ git clone https://user@code.grnet.gr/git/synnefo synnefo |
9 |
$ virtualenv --python=python2.6 synnefo --no-site-packages |
10 |
... |
11 |
$ cd synnefo |
12 |
$ ./bin/pip install django django-piston pycurl simplejson selenium |
13 |
... |
14 |
... |
15 |
$ cp settings.py.dist settings.py |
16 |
$ ./bin/python manage.py syncdb |
17 |
$ cd synnefo/db |
18 |
$ ../bin/python db_controller.py |
19 |
... |
20 |
$ cd synnefo |
21 |
$ ./bin/python manage.py runserver |
22 |
|
23 |
Notes |
24 |
------ |
25 |
1) On ubuntu systems: |
26 |
sudo aptitude install libcurl3-gnutls libcurl3-gnutls-dev |
27 |
|
28 |
2) jQuery.ajax POST is not working unless you edit lib/python2.6/site-packages/piston/utils.py. |
29 |
On def content_type change: |
30 |
ctype = self.request.META.get('CONTENT_TYPE', type_formencoded) |
31 |
to |
32 |
ctype = self.request.META.get('CONTENT_TYPE', type_formencoded).split(";")[0] |
33 |
|
34 |
3) On Ubuntu 10.04 (tested by mgogoulos) you'll have to install zmq-static with: |
35 |
sudo aptitude install uuid-dev |
36 |
./bin/pip install pyzmq-static |
37 |
|
38 |
4) Also see README.DB, which describes setting up a DB with various backends. |
39 |
|
40 |
5) The checkout directory name "synnefo" is mandatory |
41 |
|
42 |
6) In Mac computers with Snow Leopard, you may have a problem installing pycurl. Remember to set 64-bit arch when you install it. |
43 |
|
44 |
env ARCHFLAGS="-arch x86_64" ./bin/pip install pycurl |