Thursday, December 1, 2016

Re: Django runserver, the header doesn't contain connection:keep-alive

On Thursday, December 1, 2016 at 6:42:38 AM UTC-3, 韦然 wrote:
Dear all,

The current header is:

HTTP/1.0 200 OK

Date: Thu, 01 Dec 2016 08:33:29 GMT

Server: WSGIServer/0.1 Python/2.7.12

X-Frame-Options: SAMEORIGIN

Content-Type: text/xml



The docs states clearly that runserver is not for production, just for developing.  For a light webserver you could use nginx + gunicorn. The are several tutorials for this.

mikelpierre
http://flickrock.com/mikelpierre 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4d2054f6-3531-4d2e-992a-8978b0d79992%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment