pydanny / dj-libcloud

Adds easy python 3 and 2.7 support to Django for management of static assets.
BSD 3-Clause "New" or "Revised" License
53 stars 4 forks source link

In reference to issue #12 #15

Open jagooding opened 9 years ago

jagooding commented 9 years ago

So I decided to try and use dj-libcloud for my default file storage since I saw that you implemented the .url feature in issue #12 , which does not work in django-storages.

The good news is that I can upload files to google cloud all day long with dj-libcloud, unfortunately when I try to use {{ foo.bar.url }} in a template, it returns None instead of the expected url.

Any thoughts or ideas?

jezdez commented 9 years ago

Hmm, that's odd. Can you try checking in a Python shell what foo.bar.storage.provider['type'].lower() returns?

The line responsible for this is here: https://github.com/pydanny/dj-libcloud/blob/8663cb9567ab4e9c87ffc4a57991490ccae7cfb9/djlibcloud/storage.py#L180-L181

Can you provide a sanitized version of your LIBCLOUD_PROVIDERS setting?