modified base.py to use get for django key