This tool updates hemres newsletter-subscriptions and the LDAP, based on an excel file with member information.
Requires Python 3.4+
$ git clone https://github.com/jonge-democraten/jdleden.git
$ virtualenv -p python3 env
$ source env/bin/activate
$ pip install -r requirements.txt
$ python create_local_settings.py
Copy jdleden/local_settings_example.py
, name it jdleden/local_settings.py
and set the settings inside.
All settings can be found in local_settings.py
.
Activate the virtual env before using any of the management commands below,
$ source env/bin/activate
Update members,
$ python manage.py updateleden old_list.xlsx new_list.xlsx
Update after change in departments,
$ python manage.py afdelingrondschuif members_list.xlsx
Create members per department excel output,
$ python manage.py createdepartmentexcels members_list.xlsx
Create a text file with member email addresses for a given region, based on a list of gemeenten,
$ python manage.py createregionlist --ledenlijst 2017ledenlijst.xls --gemeenten Amsterdam Utrecht Eindhoven
See https://trac.jongedemocraten.nl/wiki/UpdateLedenlijst
jdleden uses hemres to update newsletter subscriptions.
jdleden uses python-ldap to update LDAP.
Django and Mezzanine are required because hemres depends on them.