README 2.76 KB
Newer Older
1

chris's avatar
chris committed
2
 Nuages - Easy poll sharing
3
 =========================
4

chris's avatar
chris committed
5
 Nuages aims to provide a collaborative meeting poll system, similar to doodle or rdvz. It is build in python, using the django framework and a little of javascript. This application was named after Django's famous song. Feedback and collaboration are welcome at nuage@ domainepublic.net
6

chris's avatar
chris committed
7
8
9
 The project uses the following javascripts:
    - jquery, jquery-ui: http://www.jquery.com/
    - jquery-dynamic-formset: http://code.google.com/p/django-dynamic-formset/
10

11
12
 Translation
 ===========
13

14
Create/update a translation file:
15

16
    # django-admin makemessages -l fr
17

18
Edit and translate the translation file:
19

20
    # gedit locale/fr/LC_MESSAGES/django.po
21

22
Compile translated messages:
23

24
    # django-admin compilemessages
25

26
27
 Fast installation
 =================
28

29
Install python-django package (<1.2)
chris's avatar
chris committed
30
Extract the nuages archive somewhere in your home folder
31
Edit project setings (optional)
32

33
    # vi settings.py
34

chris's avatar
chris committed
35
Build nuages database
36

37
    # ./manage.py syncdb
38

39
Start the python webserver
40

41
    # ./manage.py runserver
42

43
You should have the application running at 127.0.0.1:8000
44

45
46
 Apache installation
 ===================
47

48
49
50
51
Install python-django package (<1.2)
Extract the archive somewhere in your home folder
Move the "static" folder on tha apache side.
Edit project setings, set DEBUG option to False, and change MEDIA_ROOT
52

53
    # vi settings.py
54

chris's avatar
chris committed
55
Build nuages database
56

57
58
    # ./manage.py sql sondage
    # ./manage.py syncdb
59

60
61
There are several ways to configure Apache and python,
 we try wsgi, simply install libapache2-mod-wsgi, and add the following to /etc/apache2/sites-available/nuage
62

63
64
65
    <VirtualHost 62.58.108.143:80>
      
      ServerName nuage.domainepublic.net
66

67
68
      Alias /static/ /var/www/nuage/static/
      Alias /media/ /var/www/nuage/media/
69

70
      WSGIScriptAlias / /home/chris/django/nuage/apache/django.wsgi
71

72
    </VirtualHost>
73

74
Move the static files and link the media files
75

76
77
    mv static /var/www/nuage/
    ln -s /usr/share/python-support/python-django/django/contrib/admin/media/ /var/www/nuage/
78

79
Fix permission for apache user
80

81
82
    sudo chown www-data nuage/nuage.sqlite
    sudo chown www-data nuage
83

84
85
 Installing lenny django package on squeeze 
 ==========================================
86

87
Remove any installed python-django package (1.2)
chris's avatar
chris committed
88
Install backport lenny python-django (1.1)
89
90
Add the following to /etc/apt/preferences
    Package: python-django
chris's avatar
chris committed
91
    Pin: version 1.1*
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
    Pin-Priority: 1001

 Build log
 =========

django-admin startproject nuage

cd nuage; BAZ=$(pwd)
gedit settings.py urls.py

./manage.py startapp sondage
cd sondage; gedit models.py forms.py views.py

cd $BAZ; ./manage.py startapp userbase
cd userbase; gedit views.py 

cd $BAZ; mkdir templates static

# rm nuage.sqlite ; ./manage.py sql sondage ; ./manage.py syncdb
111
112