Re: how to make https work in django REST framework

2022-09-13 Thread sham khan
Hi Zhenwu, May you share the details of how you got this working? Regards, Shamim On Friday, February 14, 2014 at 2:47:43 AM UTC+5:30 zhen...@gmail.com wrote: > > Thanks all for your help. Finally we figured out how to do it from the doc > link Kirby provided. Really appreciated your help. >

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

2018-08-29 Thread Kasper Laudrup
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 s

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

2018-08-29 Thread Rupam Hazra
@jason, I want to do on production but how . could you elaborate me because i am new in python On Wednesday, 29 August 2018 17:09:34 UTC+5:30, Jason wrote: > > for local development, why do you need https? for staging and production, > you should be using apache with mod_wsgi or nginx with uwsg

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

2018-08-29 Thread Jason
for local development, why do you need https? for staging and production, you should be using apache with mod_wsgi or nginx with uwsgi/gunicorn On Wednesday, August 29, 2018 at 7:16:15 AM UTC-4, Rupam Hazra wrote: > > > Hi, i am working django rest service using runserver on different port on >

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

2018-08-29 Thread Rupam Hazra
Hi, i am working django rest service using runserver on different port on http but i want to use the https service. Please help. -- 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,

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Thanks all for your help. Finally we figured out how to do it from the doc link Kirby provided. Really appreciated your help. thanks. /zhenwu On Thursday, February 13, 2014 11:20:53 AM UTC-8, zhenwu he wrote: > > > Thank you! working on it. thanks. > > /zhenwu > > On Thursday, February 13, 20

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Thank you! working on it. thanks. /zhenwu On Thursday, February 13, 2014 11:06:55 AM UTC-8, C. Kirby wrote: > > Use the django deployment docs for a howto: > https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ > > On Thursday, February 13, 2014 12:58:53 PM UTC-6, zhenwu he wrote: >> >>

Re: how to make https work in django REST framework

2014-02-13 Thread C. Kirby
Use the django deployment docs for a howto: https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ On Thursday, February 13, 2014 12:58:53 PM UTC-6, zhenwu he wrote: > > > Thanks Kirby. > > You meant merge django into apache? ok, let me see what I can do. thanks. > > /zhenwu > > On Thursday

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Thanks Kirby. You meant merge django into apache? ok, let me see what I can do. thanks. /zhenwu On Thursday, February 13, 2014 10:18:03 AM UTC-8, C. Kirby wrote: > > Zhenwu, > > You only mentioned it in passing in the last post, but did you say you are > running django in production via the ma

Re: how to make https work in django REST framework

2014-02-13 Thread C. Kirby
Zhenwu, You only mentioned it in passing in the last post, but did you say you are running django in production via the manage.py runserver command? You _really_ shouldn't use runserver in production. You should be using a webserver (I guess apache in your case) and wsgi to serve up django.

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Hi, Eric: After thinking further, I am a little lost. :( Here is my understanding. 1, I need have django run server running, for example, listen to port 1234 2, I enable https on apache, which is listening to 443. then I redirect all connections to 443 to port 1234 using config you provided.

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Thanks Luca. Yeah, I have https setup, but that is for UI, not for REST, the REST is purely handled by django run server port. Based on Eric's comment, it seems that I need change user to send request to apache using https, and then I need config redirect on apache to django. then django will

Re: how to make https work in django REST framework

2014-02-13 Thread zhenwu he
Thanks Eric for your help. Basically, user has to send REST API to apache using https, and then apache redirect this call to django using http. Should I config anything on django besides configuration redirect on apache. Based on what you are saying, I do not need config anything on django sid

Re: how to make https work in django REST framework

2014-02-13 Thread Luca Corti
Il 2014-02-13 06:16 zhenwu he ha scritto: Thanks for your help, Luca. Could you elaborate a little bit? I am kind of new to this kind of thing. What I am doing is that, I am using django to redirect all url calls to python API to handle something and then return as response. you want me to redir

Re: how to make https work in django REST framework

2014-02-13 Thread Erik Cederstrand
Den 13/02/2014 kl. 06.16 skrev zhenwu he : > > Thanks for your help, Luca. > > Could you elaborate a little bit? I am kind of new to this kind of thing. > What I am doing is that, I am using django to redirect all url calls to > python API to handle something and then return as response. you

Re: how to make https work in django REST framework

2014-02-12 Thread zhenwu he
Thanks for your help, Luca. Could you elaborate a little bit? I am kind of new to this kind of thing. What I am doing is that, I am using django to redirect all url calls to python API to handle something and then return as response. you want me to redirect this http call to where? and where

Re: how to make https work in django REST framework

2014-02-11 Thread Luca Corti
On 12/feb/2014, at 00:36, zhenwu he wrote: > Currently I am using Python Django as my REST framework and it could take all > the calls through http. If I want to switch from http to https, what should I > do to make this work? Just issue a redirect to the equivalent HTTPS url from your web serv

how to make https work in django REST framework

2014-02-11 Thread zhenwu he
Hi, There: Currently I am using Python Django as my REST framework and it could take all the calls through http. If I want to switch from http to https, what should I do to make this work? thanks in advance. /zhenwu -- You received this message because you are subscribed to the Google Grou