changed static and templates directories from using static url to using os.BASE_DIR