How to enable https in Django-auth generated pages?
问题 Using the Django-auth application (Django version 1.3), I want to have my login page go to https://mysite.com/login/ . Currently, I'm using: # urls.py from django.contrib.auth.views import login urlpatterns = patterns('', url(r'^login/$', login, name='login-view'),) # navbar.html <li id="nav-login"><a href="{% url login-view %}" ><b>Login</b></a></li> which works nicely, but goes to http://mysite.com/login/ . Is there some way to tell Django-auth what prefix (https) to use, when it reverses