Probably you are using a fully qualified name in your MEDIA_URL. Just use a relative path instead.
On Tue, Oct 25, 2011 at 10:28 AM, Shawn Collins <[email protected]>wrote: > Ok so that forced the css through the https but it still pulls the > images from http. > > On Oct 24, 3:01 pm, Bruce Kroeze <[email protected]> wrote: > > You can use something like this, if you are using the default > > shop/context_processors.py > > > > <style type="text/css" src="http{% if is_secure %}s{% endif > > %}://your_static/css/site.css"></style> > > > > On Mon, Oct 24, 2011 at 12:49 PM, Shawn Collins <[email protected] > >wrote: > > > > > > > > > > > > > > > > > > > > > Yes it did help. Thank you very much. What did you do to force the css > > > through https? > > > > > On Oct 23, 9:39 am, Laszlo Antal <[email protected]> wrote: > > > > Hi, > > > > > > Not front of my computer so I can't give exact directions. But I used > > > firebug and the Net tab(?) where it shows all the http requests. There > you > > > will see what has a URL with http and https. > > > > In my case the issue was the images loaded from the css files for > > > background and buttons for divs. > > > > > > Hope it helps > > > > > > lzantal > > > > > > On Oct 22, 2011, at 16:17, Shawn Collins <[email protected]> > wrote: > > > > > > > Fire Fox and Chrome, are both telling me that my pages are only > > > > > partially encrypted. The logo.png is encrypted, and the favicon.png > is > > > > > encrypted but everything else is not. I'm hoping it's only my media > > > > > that is not encrypted but so far that's the only error messages I > get. > > > > > Here are my virtual host settings for the store. > > > > > <VirtualHost *:80> > > > > > ServerAdmin [email protected] > > > > > ServerNamewww.north49hats.ca > > > > > ServerAlias 127.0.0.1 localhost 10.8.1.154 Wigens > > > > > > > <Location "/"> > > > > > SetHandler mod_python > > > > > PythonHandler django.core.handlers.modpython > > > > > PythonPath "['/home/shawn', > '/usr/lib/python2.6/site-packages/ > > > > > django'] + sys.path" > > > > > SetEnv DJANGO_SETTINGS_MODULE store.settings > > > > > PythonDebug On > > > > > </Location> > > > > > > > <Location "/media"> > > > > > SetHandler None > > > > > </Location> > > > > > > > Alias /media /home/shawn/store/static > > > > > </VirtualHost> > > > > > > > <VirtualHost *:443> > > > > > ServerAdmin [email protected] > > > > > ServerNamewww.north49hats.ca > > > > > ServerAlias 127.0.0.1 localhost 10.8.1.154 Wigens > > > > > > > <Location "/"> > > > > > SetHandler mod_python > > > > > PythonHandler django.core.handlers.modpython > > > > > PythonPath "['/home/shawn', > '/usr/lib/python2.6/site-packages/ > > > > > django'] + sys.path" > > > > > SetEnv DJANGO_SETTINGS_MODULE store.settings > > > > > PythonDebug On > > > > > </Location> > > > > > > > <Location "/media"> > > > > > SetHandler None > > > > > </Location> > > > > > > > SSLEngine on > > > > > SSLCertificateFile /etc/httpd/conf/ssl.key/public.crt > > > > > SSLCertificateKeyFile /etc/httpd/conf/ssl.key/private.key > > > > > SSLCACertificateFile /etc/httpd/conf/ssl.key/intermediate.crt > > > > > > > Alias /media /home/shawn/store/static > > > > > </VirtualHost> > > > > > > > And in my settings.py file I have the middleware ssl line right at > the > > > > > end of the lineup. > > > > > > > MIDDLEWARE_CLASSES = ( > > > > > "django.middleware.common.CommonMiddleware", > > > > > "django.contrib.sessions.middleware.SessionMiddleware", > > > > > "django.middleware.csrf.CsrfViewMiddleware", > > > > > "django.middleware.locale.LocaleMiddleware", > > > > > "django.contrib.auth.middleware.AuthenticationMiddleware", > > > > > "django.middleware.doc.XViewMiddleware", > > > > > "django.contrib.messages.middleware.MessageMiddleware", > > > > > "threaded_multihost.middleware.ThreadLocalMiddleware", > > > > > #"satchmo_ext.recentlist.middleware.RecentProductMiddleware", > > > > > #'debug_toolbar.middleware.DebugToolbarMiddleware', > > > > > "satchmo_store.shop.SSLMiddleware.SSLRedirect", > > > > > ) > > > > > And I have the ssl = True line in at the bottom. > > > > > > > SATCHMO_SETTINGS = { > > > > > 'SHOP_BASE' : '', > > > > > 'MULTISHOP' : False, > > > > > 'PRODUCT_SLUG' : 'items', > > > > > 'SSL' : True, > > > > > #'SHOP_URLS' : patterns('satchmo_store.shop.views',) > > > > > } > > > > > > > and I have the HTTPS_PATH line in the local_settings.py file > > > > > > > LOCAL_DEV = True > > > > > DEBUG = False > > > > > TEMPLATE_DEBUG = DEBUG > > > > > HTTPS_PATHS = ('admin/', 'settings/', 'accounts/') > > > > > > > And I have verisign certificates, that are actually being used, but > it > > > > > still tells me that the page is only partially encrypted. Can > anyone > > > > > help me find what I'm missing? > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups "Satchmo users" 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 athttp:// > > > groups.google.com/group/satchmo-users?hl=en. > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Satchmo users" 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/satchmo-users?hl=en. > > > > -- > > Bruce Kroezehttp://www.ecomsmith.com > > It's time to hammer your site into shape. > > -- > You received this message because you are subscribed to the Google Groups > "Satchmo users" 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/satchmo-users?hl=en. > > -- Bruce Kroeze http://www.ecomsmith.com It's time to hammer your site into shape. -- You received this message because you are subscribed to the Google Groups "Satchmo users" 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/satchmo-users?hl=en.
