Update django_up.py

some changes