skip to Main Content

I’m trying to implement SSL on my dev server, purely just so I can see it working.

I see from the Certbot page that Certbot works with Apache, Nginx, Haproxy and Plesk.

How would I go about implementing this with Django’s dev server? I’m not working in a production environment of any kind yet.

2

Answers


  1. You should create a self signed cert and then you can set up Nginx as a front facing webserver for your uWSGI Django app.

    Login or Signup to reply.
  2. Just to clear something up first: djangos dev server ./manage.py runserver does NOT serve HTTPS, only plain HTTP.

    So you should use a webserver (from the ones you mentioned: Apache, Nginx, Haproxy or Plesk) to test you SSL/HTTPS with the certs.

    See this post and this code example for ideas to implement SSL with the dev server.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search