Fix
Fixed refactoring bugs
Upstart config for django