Hi guys I am using django 1.6 + uwsgi + nginx deploying a web site I cant visit https url with urllib2 when i use uwsgi , if i dont use uwsgi ,then i can visit https url: *use django shell without uwsgi:* In [1]: import urllib2 In [4]: response=urllib2.urlopen("https://www.baidu.com") In [6]: data=response.read()
In [7]: print data <html> <head> <script> location.replace(location.href.replace("https://","http://")); </script> </head> <body> <noscript><meta http-equiv="refresh" content="0;url=http://www.baidu.com/"></noscript> </body> </html> It works fine *use django shell with uwsgi:* *I get an error:**<urlopen error unknown url type: https>* <https://lh3.googleusercontent.com/-PhdW_H9DyVo/VVF2Z2DPXWI/AAAAAAAAAAU/6COi8mqv5To/s1600/16%28%24%400%28V%29JFZ8%7EU%5BB%60%7BK%5B7J.jpg> *I dont konw why,Can you guys help me,thanks!!* -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/57632fca-e2eb-4e62-ae1f-228172adc33f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.