another fix for runtime error on running django server