I can think of a number of reasons why you would want to test SSL
behavior on your local machine before running it on a production
server. Setup can be pretty annoying for one.

I wrote a blog post on how to do this very thing a while back. I used
stunnel, as Janusz mentioned, to test SSL redirect behavior on the
development server. You need to run two dev servers one for http and
one for https. You also need to make sure that you set HTTPS=on as an
environment variable so that request.is_secure() returns true
properly.

http://www.ianlewis.org/en/testing-https-djangos-development-server

Ian

On Mon, Mar 1, 2010 at 7:43 PM, Gonzalo Delgado <gonzalo...@gmail.com> wrote:
> El 01/03/10 07:07, cool-RR escribió:
>> Adnan, I'm really baffled by your response. No, my reasons for using
>> SSL here is not because I'm afraid someone will sniff my data, We are
>> talking here about `runserver`, which is the development server which
>> is never used for production. The goal of `runserver` is to be able to
>> easily test how your Django project behaves before you upload it to
>> the real server.
>
> While it may sound so, the development server isn't really intended to
> test *exactly* how a Django project behaves before uploading it to a
> production server. There are a couple of cases where it will always fall
> short, like serving static media or using SSL. It also can't help you
> much to test how a site behaves with a big number of requests per second.
> For those cases a staging[0] server is used, which is a copy of the
> production server but for testing how the site behaves under certain
> conditions or with new features, etc.
>
> [0] http://en.wikipedia.org/wiki/Staging_site
>
> --
> Gonzalo Delgado <gonzalo...@gmail.com>
>
> --
> 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, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>



-- 
=======================================
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
=======================================

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to