Reputation: 31
How to set up a project to use HTTPS? What do I need?
I use Django 1.4.2
I added
#https
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
How to configure urls.py? Does anyone have a sample configuration?
Upvotes: 2
Views: 150
Reputation: 10312
Maybe this could help: https://github.com/teddziuba/django-sslserver
This will give you the ability to accept HTTPS requests using only Django.
Upvotes: 0
Reputation: 22449
After you have bought and installed a certificated there's three ways to redirect from http to https.
Upvotes: 2