Fixed #17101 -- Integrated django-secure and added check --deploy option

For background info, please see the [django-developers thread](https://groups.google.com/d/topic/django-developers/t8ybImtdnpM/discussion).