mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #25778 -- Updated docs links to use https when available.
This commit is contained in:
parent
51a3721372
commit
7aabd62380
66 changed files with 156 additions and 156 deletions
|
@ -252,8 +252,8 @@ To do this, you can use the sites framework. A simple example::
|
|||
'/mymodel/objects/3/'
|
||||
>>> Site.objects.get_current().domain
|
||||
'example.com'
|
||||
>>> 'http://%s%s' % (Site.objects.get_current().domain, obj.get_absolute_url())
|
||||
'http://example.com/mymodel/objects/3/'
|
||||
>>> 'https://%s%s' % (Site.objects.get_current().domain, obj.get_absolute_url())
|
||||
'https://example.com/mymodel/objects/3/'
|
||||
|
||||
.. _enabling-the-sites-framework:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue