python - How come this Django plugin won't work? -


https://github.com/sunlightlabs/django-mediasync/

the media syncs s3, doesn't change {% media_url %} s3 url in template (when go production)

i followed instructions. here's settings.py.

mediasync = {     'aws_key': aws_accesskey,     'aws_secret': aws_secretkey,     'aws_bucket': "happy_media",     'backend': 'mediasync.backends.s3',     'serve_remote': true,     'aws_bucket_cname': true,     'doctype': 'html4',     'use_ssl': false,     'cache_buster': 1234, } 

i added urls.py

from django.template import add_to_builtins add_to_builtins('mediasync.templatetags.media') 

i have:

'django.core.context_processors.media' context processors in settings.py 

try including 'django.core.context_processors.media' list of context processors in settings.py. think that's exposes media_url , makes visible in templates.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -