References issue #8

Update production config to match the recent changes, and add some fixes to development config.

While here, add some style fixes to views.py.