Deal with the Django app refactoring.
Use hasattr instead of try/except to call django setup.
Merge pull request #1 from linovia/master

Deal with the Django app refactoring.