Fixed running the application in Django's non-debug mode.