Wednesday, August 29, 2018

Re: how to make https work in django REST framework on runserver port

Hi Rupam,

On 29/08/2018 17.44, Rupam Hazra wrote:
> I want to do on production but how .
> could you elaborate me because i am new in python
>

You shouldn't be using the development server in production. That is
quite clearly stated in the documentation for good reasons.

You could set up a web server that forwards HTTPS requests to the Django
development server, but that would require pretty much the same amount
of work as doing it the proper way and set up your Django app as WSGI
application as explained here:

https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/

Please just follow that guide instead.

Kind regards,

Kasper Laudrup

--
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/c286e004-8007-1c62-92ec-1495a9e7b0bd%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment