Open lcd1232 opened 7 years ago
I think we can add new constant to fix this problem.
@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()
By default we can use is_secure=False
, and when required https, developer can add is_secure=request.is_secure()
. PR?
@gotlium yeah, will do
Right now if you're using https on server you still get url with http, there is no checking about protocol. Problem is here