README 2.61 KB
Newer Older
1

2
3
 nuage - Easy poll sharing
 =========================
4

5
 nuage 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
7


8
9
 Translation
 ===========
10

11
Create/update a translation file:
12

13
    # django-admin makemessages -l fr
14

15
Edit and translate the translation file:
16

17
    # gedit locale/fr/LC_MESSAGES/django.po
18

19
Compile translated messages:
20

21
    # django-admin compilemessages
22

23
24
 Fast installation
 =================
25

26
27
28
Install python-django package (<1.2)
Extract the nuage archive somewhere in your home folder
Edit project setings (optional)
29

30
    # vi settings.py
31

32
Build nuage database
33

34
35
    # ./manage.py sql sondage
    # ./manage.py syncdb
36

37
Start the python webserver
38

39
    # ./manage.py runserver
40

41
You should have the application running at 127.0.0.1:8000
42

43
44
 Apache installation
 ===================
45

46
47
48
49
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
50

51
    # vi settings.py
52

53
Build nuage database
54

55
56
    # ./manage.py sql sondage
    # ./manage.py syncdb
57

58
59
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
60

61
62
63
    <VirtualHost 62.58.108.143:80>
      
      ServerName nuage.domainepublic.net
64

65
66
      Alias /static/ /var/www/nuage/static/
      Alias /media/ /var/www/nuage/media/
67

68
      WSGIScriptAlias / /home/chris/django/nuage/apache/django.wsgi
69

70
    </VirtualHost>
71

72
Move the static files and link the media files
73

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

77
Fix permission for apache user
78

79
80
    sudo chown www-data nuage/nuage.sqlite
    sudo chown www-data nuage
81

82
83
 Installing lenny django package on squeeze 
 ==========================================
84

85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
Remove any installed python-django package (1.2)
Install lenny python-django (1.0)
Add the following to /etc/apt/preferences
    Package: python-django
    Pin: version 1.0*
    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
109
110