Update django_up.py

add security