Forcing HTTPS in admin

2010-02-28 Thread cool-RR
Does `admin` provide a way to force using it through https? I'd want it to simply redirect a user which doesn't use https to the same address, except with https instead of http. Is there something like this built into `admin`? Ram. -- You received this message because you are subscribed to the

Re: Forcing HTTPS in admin

2010-02-28 Thread Janusz Harkot
no, but you can do this very easy on the fronted-webserver (nginx, apache, cherokee etc.) J. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, sen

Re: Forcing HTTPS in admin

2010-03-01 Thread ozgurv
You can write a middleware that redirects users who visit admin related pages (starts with /admin maybe) to HTTPS. On Mon, Mar 1, 2010 at 2:08 AM, Janusz Harkot wrote: > no, but you can do this very easy on the fronted-webserver (nginx, > apache, cherokee etc.) > > J. > > -- > You received this m

Re: Forcing HTTPS in admin

2010-03-01 Thread Malcolm Box
You could, but doing it on the front-end webserver makes more sense. Malcolm On Mon, Mar 1, 2010 at 3:02 PM, ozgurv wrote: > You can write a middleware that redirects users who visit admin > related pages (starts with /admin maybe) to HTTPS. > > On Mon, Mar 1, 2010 at 2:08 AM, Janusz Harkot >

Re: Forcing HTTPS in admin

2010-03-01 Thread cool-RR
I did the middleware to do this, but I figured that making the admin encrypted would be a common enough task that it should be a builtin option in the admin. So anyway, +1 for that. On Mar 1, 5:21 pm, Malcolm Box wrote: > You could, but doing it on the front-end webserver makes more sense. > > Ma