Debian NM Front Desk web application
Running this code on your own machine
apt-get install python-django python-ldap python-psycopg2 python-xapian \ python-debian python-django-south python-markdown # http://anonscm.debian.org/gitweb/?p=users/enrico/django_maintenance.git git clone https://alioth.debian.org/anonscm/git/users/enrico/django_maintenance.git (you can either build the package from it or symlink the module directory into the nm.debian.org sources) # http://anonscm.debian.org/gitweb/?p=nm/python-debiancontributors.git git clone https://alioth.debian.org/anonscm/git/nm/python-debiancontributors.git (you can either build the package from it or symlink the module directory into the nm.debian.org sources) # https://github.com/jsocol/django-ratelimit git clone https://github.com/jsocol/django-ratelimit.git (you can either build the package from it or symlink the module directory into the nm.debian.org sources) Since I do not trust random stuff pulled via github, I performed a code review of commit d58c489797405db348b30dec6103dcfff73160ec and it looks safe to me (Enrico)
mkdir data # required by default settings ln -s local_settings.py.devel local_settings.py edit local_settings.py as needed
Fill in data
Visit https://nm.debian.org/am/db-export to download nm-mock.json; for privacy, sensitive information are replaced with mock strings.
If you cannot login to the site, you can ask any DD to download it for you. There is nothing secret in the file, but I am afraid of giving out convenient email databases to anyone.
./manage.py import nm-mock.json
If you are a Front Desk member or a DAM, you can use https://nm.debian.org/am/db-export?full for a full database export.
rsync -az --progress keyring.debian.org::keyrings/keyrings/ ./data/keyrings/
Run database maintenance
Run the web server
You need to run periodic maintenance to check/regenerate the denormalised fields:
Development targets Django 1.5, although the codebase has been created with Django 1.2 and it still shows in some places. Feel free to cleanup.