Update cron_nightly.py for django 1.