README 2.42 KB
Newer Older
1

2
  nuage - Easy poll sharing
3

4
  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
5
6
7
8


Fast installation

9
10
    Install python-django package (<1.2)
    Extract the nuage archive somewhere in your home folder
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    Edit project setings (optional)

        # vi settings.py

    Build nuage database

        # ./manage.py sql sondage
        # ./manage.py syncdb

    Start the python webserver

        # ./manage.py runserver

    You should have the application running at 127.0.0.1:8000

Apache installation

28
    Install python-django package (<1.2)
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
    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

        # vi settings.py

    Build nuage database

        # ./manage.py sql sondage
        # ./manage.py syncdb

    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

        <VirtualHost 62.58.108.143:80>
          
          ServerName nuage.domainepublic.net

          Alias /static/ /var/www/nuage/static/
          Alias /media/ /var/www/nuage/media/

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

        </VirtualHost>

    Move the static files and link the media files

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

    Fix permission for apache user

        sudo chown www-data nuage/nuage.sqlite
        sudo chown www-data nuage

64
65
66
67
68
69
70
71
72
Installing lenny django package on squeeze 

    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

73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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