I'm not immediately convinced that a database field is the way to go for a couple reasons:
- It would make data less portable between development (where SSL is often not in use) and production.
- I'm not sure it's a common case that only some sites would use SSL but not others.
A third-party library called django-hosts, which djangoproject.com uses, adds a setting called HOSTS_SCHEME to solve this. I think there's been some discussion about merging at least parts of this library into core since it solves common problems.
See also #10944 (we might close this ticket as a duplicate of that one) and #23829 (about customizing ping_google
to allow https). I think the best course of action would be to consider this feedback and write to the DevelopersMailingList with your proposal. Either solution of a new setting or a new database field need feedback from a wider audience. Thanks!