Make your Django site secure in 2 mins ## windows
i) Open your command prompt through run as administrator
ii) Install chocolatey package if you do not have through the below link
https://chocolatey.org/install
iii) Install mkcert package through choco package, using the below command
choco install mkcert
iv) Then run the below command
mkcert -install
v) Then go to your project directory and run the below command
mkcert -cert-file cert.pem -key-file key.pem localhost 127.0.0.1
If everything goes well then you will get the message as
The certificate is at "cert.pem" and the key is at "key.pem".
vi) Run the below command in your project directory
pip install django-extensions Werkzeug
vii) Then add "django_extensions" in your installed_apps list in your settings.py file
viii) Then run the below command to start the development server in HTTPS mode
python manage.py runserver_plus --cert-file cert.pem --key-file key.pem
#Django #Python #Framework #DjangoCourse #ssl #web #ExcludeErrors #http #https
Nesta página do site você pode assistir ao vídeo on-line Make your site secure just in 2 mins | HTTP to HTTPS duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário EXCLUDE ERRORS 06 Fevereiro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,229 vezes e gostou 42 espectadores. Boa visualização!