added dynamic insertion of static and template dirs into settings.py