HTTPS instead of HTTP in view

28 views
Skip to first unread message

Hugo Kitano

unread,
Sep 14, 2015, 3:30:41 PM9/14/15
to Django users
Only one view in my project uses HTTPS instead of HTTP, now, after me fooling around with SSL's and cookies and such.
My view for that project is simple enough that it isn't the problem

It's the home page of the project.  Any ideas for why only one view uses HTTPS? I can't use the view in runserver anymore now.


Auto Generated Inline Image 1

Hugo Kitano

unread,
Sep 14, 2015, 3:34:22 PM9/14/15
to Django users
This is my settings.py, but I've commented out all the code I added

Auto Generated Inline Image 1

James Schneider

unread,
Sep 14, 2015, 4:28:17 PM9/14/15
to django...@googlegroups.com
To clarify, are you running this on a full web server such as Apache? If so, do you have directives in the webserver configuration that are handling the redirection to HTTPS? Or are you using the built-in runserver?

The built-in runserver has no support for HTTPS. Do you have any 3rd party packages installed in settings.py that may introduce middleware that would redirect to HTTPS? 

-James

On Mon, Sep 14, 2015 at 12:34 PM, Hugo Kitano <hkit...@gmail.com> wrote:
This is my settings.py, but I've commented out all the code I added

--
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...@googlegroups.com.
To post to this group, send email to django...@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/3c1535df-ff18-4587-97d6-9f95a53a5f76%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages