d/: support local_settings.py in the postgresql configuration

Now both patchwork and patchwork-postgresql support using the local_settings.py
file, deployed in /etc/patchwork/local_settings.py and symlinked to
/usr/share/patchwork/apps/local_settings.py.

While at it, the helper script for postgre is given support to reissue the
syncdb operation.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
d/patches: add patch to handle TEMPLATE_DIRS issue

In some Django versions, the TEMPLATE_DIRS configuration option must be
in tuple format.

This new small patch applies the modification.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>