Django and SSL question

前端 未结 3 443
闹比i
闹比i 2020-12-07 19:33

I am planning to sell products by charging credit cards thus using SSL will be critical for Django-powered website. And I am very naive for this.

My initial django s

3条回答
  •  旧巷少年郎
    2020-12-07 20:06

    Django doesn't handle the SSL stuff. Apache will take care of that for you transparently and Django will work as usual. You can check for SSL in a view with request.is_secure().

    However you must serve links where appropriate as https urls. You also may want to redirect certain http pages to https pages (like the django admin screen).

提交回复
热议问题