Updated version working with Django 1.5

I extended this while working on a small project using Django 1.5, and quickly notices that it hadn't been maintained and still tried to find "settings.py" to decide if the project existed.
I added completion to the "Dmanage" command, and also refactored a bunch of stuff (prefix for commands, pulled out constants).