Giter Site home page Giter Site logo

Unable to render templates about django-sslify HOT 6 CLOSED

rdegges avatar rdegges commented on September 13, 2024
Unable to render templates

from django-sslify.

Comments (6)

rdegges avatar rdegges commented on September 13, 2024

I'm not sure, this is the first time I've seen this. It looks as if you're accepting HTTPS requests DIRECTLY to your Django process, as opposed to having some sort of webserver / proxy intercept the SSL before passing the request to Django.

If that's what you're doing, you should really be using a web server of some sort in front of your Django app:

  • gunicorn
  • nginx
  • something

from django-sslify.

jsetting32 avatar jsetting32 commented on September 13, 2024

Hi Randall,

Thank you for the quick response!

I read upon nginx and set it up but am not running it. I ran through a tutorial on uWSGI and nginx but wasn’t able to link the two together. This is the link I followed for the tutorial : http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Is this going to put me on the right track? What would you recommend between the two (gunicorn vs nginx) ?

On Mar 27, 2015, at 11:26 AM, Randall Degges [email protected] wrote:

I'm not sure, this is the first time I've seen this. It looks as if you're accepting HTTPS requests DIRECTLY to your Django process, as opposed to having some sort of webserver / proxy intercept the SSL before passing the request to Django.

If that's what you're doing, you should really be using a web server of some sort in front of your Django app:

gunicorn
nginx
something

Reply to this email directly or view it on GitHub #26 (comment).

from django-sslify.

rdegges avatar rdegges commented on September 13, 2024

I'm really only familiar with gunicorn, which is what I use. There are benefits / drawbacks to all of the different web servers, but in reality it doesn't matter so long as the webeserver itself is what's terminating the SSL connection.

I can't really speak to whether or not that tutorial is gonna help you though, sorry :(

You might be better off trying stackoverflow or something like that for this sort of help, as I'm sorta useless ><

from django-sslify.

jsetting32 avatar jsetting32 commented on September 13, 2024

Its no problem.

Thanks for your feedback, I greatly appreciate it!

On Mar 27, 2015, at 11:34 AM, Randall Degges [email protected] wrote:

I'm really only familiar with gunicorn, which is what I use. There are benefits / drawbacks to all of the different web servers, but in reality it doesn't matter so long as the webeserver itself is what's terminating the SSL connection.

I can't really speak to whether or not that tutorial is gonna help you though, sorry :(

You might be better off trying stackoverflow or something like that for this sort of help, as I'm sorta useless ><


Reply to this email directly or view it on GitHub #26 (comment).

from django-sslify.

raul1991 avatar raul1991 commented on September 13, 2024

Hi randall,
Can you explain why django server should not be handling direct https connections ? Or some link

from django-sslify.

rdegges avatar rdegges commented on September 13, 2024

It's not so much that the Django server shouldn't be terminating the SSL -- it's moreso a matter of speed and efficiency. EG: An actual webserver is going to be MUCH faster at handling the crypto operations, and this will also spare your Django process itself the pain of doing crypto on top of every connection.

AFAIK, this is the 'best practice' for scripting languages like Python where you're stuck on a single processor.

from django-sslify.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.