Replaced multiple global variables with config dictionary. Optimizing configuration from Django
Added support to override settings from django settings.py