https in trackable url
Opened this issue · 4 comments
lcd1232 commented
Right now if you're using https on server you still get url with http, there is no checking about protocol.
Problem is here
gotlium commented
I think we can add new constant to fix this problem.
lcd1232 commented
@gotlium I think better provide argument like is_secure
or the whole request object to def send_db_mail(*args, **kwargs)
because one django server can serve many sites and some of them can using http and others https. The best way to know is https or not using check request.is_secure()
gotlium commented
By default we can use is_secure=False
, and when required https, developer can add is_secure=request.is_secure()
. PR?