Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy Django with SSL without Nginx

Tags:

django

Is it possible to deploy a django project without using third party tools like nginx or apache just to serve up https:// webpages? Being forced to setup a reverse proxy or some other web server just to serve https seems a bit overkill.

like image 690
Daniel Gleason Avatar asked May 08 '26 19:05

Daniel Gleason


1 Answers

  1. Using of built-in development server (manage.py runserver) is a bad idea for production environment. But, yes you can use SSL connection even with built-in server
  2. Better idea is to use some application server. For example gunicorn. And yes again, you can serve SSL connection with gunicorn.
  3. Apache or Nginx servers are not just for https. These allows you to effectively control other server resources like max number of processes, request/response headers, etc. WEB servers support many features that you can set without writing python code. And that will be more understandable for infra/server engineers.
like image 110
rzlvmp Avatar answered May 11 '26 14:05

rzlvmp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!