1

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 2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, I was looking to confirm your first sentence.
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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.