Reworked django settings method