How do we set up https for log in and sign up pages

As title, I have trouble to set up the https for log in pages I am using django 1.8. In the wsgi file, I have added os.environ['https'] = on and put SESSION_COOKIE_SECURE = True and CSRF_COOKIE_SECURE = True into the settings what else I need to do ? plz help

Have a look at this

I had checked that out before. But what do I need to do in the file in order to have https security

By the time the request make it to your view, the protocol has already been decided. You could check the protocol and redirect to https if it's http.