Correct path to django settings and a function argument