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
Sur cette page du site, vous pouvez voir la vidéo en ligne Make your site secure just in 2 mins | HTTP to HTTPS durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur EXCLUDE ERRORS 06 février 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,229 fois et il a aimé 42 téléspectateurs. Bon visionnage!