How can I run my django application using HTTPS Protocol on the Local machine

I am trying to load my local site using the HTTPS protocol instead of the insecure http. I have used RunServerPlus extension package of the Django Extensions. I have installed the Django Extensions, the Werkzeug, and pyOpenSSL. When I load the runserver_plus --cert-file cert.crt, the mysite.com does not load at all.

  • Could someone help me here please?

Here is the django-extensions installed

INSTALLED_APPS = [
# ...
 'django_extensions',
]

Here are the ALLOWED_HOSTS[]

ALLOWED_HOSTS = ['mysite.com', 'localhost', '127.0.0.1']

What error do you encounter when you run the command?

is the .crt file in the project directory?

Back to Top