Commit 93b43f19 authored by chris's avatar chris

Doc, license, and ampache wsgi handler

parent 35872af3
nuage - Easy poll sharing
Copyright (C) 2010 Christophe Siraut
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
nuage - Easy poll sharing
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
Fast installation
Install python-django package
Extract the archive somewhere in your home folder
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
Install python-django package
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
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
import os
import sys
sys.path.append('/home/chris/django')
os.environ['DJANGO_SETTINGS_MODULE'] = 'nuage.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment