#4294: get_image_url for ImageFields only return http and not https
--------------------------------------------------+-------------------------
   Reporter:  Oscar <[EMAIL PROTECTED]>         |                Owner:  adrian 
         
     Status:  closed                              |            Component:  
Database wrapper
    Version:  SVN                                 |           Resolution:  
invalid         
   Keywords:  imagefield https ssl get_image_url  |                Stage:  
Unreviewed      
  Has_patch:  0                                   |           Needs_docs:  0    
           
Needs_tests:  0                                   |   Needs_better_patch:  0    
           
--------------------------------------------------+-------------------------
Changes (by Fraser Nevett <[EMAIL PROTECTED]>):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => invalid
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 The {{{get_XXX_url()}}} function uses
 [http://www.python.org/doc/1.5.2p2/lib/module-urlparse.html
 urlparse.urljoin] to combine {{{settings.MEDIA_URL}}} with the field's
 path.
 
 I can only imagine you are experiencing the HTTP/HTTPS warning because
 your {{{MEDIA_URL}}} is set to an absolute URL like
 "{{{http://media.example.com}}}";. In this case, browsers will obviously
 use HTTP to access it, because that is what the scheme of the URL tells
 them to do.
 
 If you set {{{MEDIA_URL}}} to "{{{//media.example.com}}}" (i.e. omit the
 {{{http:}}} but leave the double-slash prefix) then browsers should access
 the linked media using the same scheme as the one with which the page was
 requested.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4294#comment:1>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to