Changed DATABASES variable in settings.py so it can be run/tested locally without tunneling
Fixed perma-redirect bug. Was missing trailing slash.