Statistics
| Branch: | Tag: | Revision:

root / README @ c0124a81

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) Database initialization: [the following commands assume the DB is at "./database.sqlite"]
39
	recreate db, load db/fixtures/initial_data.json:
40

    
41
	$ rm database.sqlite
42
	$ bin/python manage.py syncdb
43

    
44
	load fixtures, as necessary [take a look under db/fixtures/]:
45
	$ bin/python manage.py loaddata db/fixtures/flavors.json
46
	$ bin/python manage.py loaddata db/fixtures/vms.json
47
	...