I have been trying to test the S3 backend for Django. I am using the code drop from http://code.larlet.fr/doc/django-s3-storage.html for my default storage as per the instructions on the website. The storage tests (included in the instructions) went fine with my S3 account.
I have been running into some problems trying to use S3 storage backend with photologue and I am trying to see if somebody (who know more about Django than I do) shed some light into the following error. Let me know if I need to include additional information. Thanks ----------------------------------------------------------------------------------- Request Method: GET Request URL: http://192.168.0.5:8000/admin/photologue/photo/ Exception Type: TemplateSyntaxError Exception Value: Caught an exception while rendering: This backend doesn't support absolute paths. Original Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/template/debug.py", line 71, in render_node result = node.render(context) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 915, in render dict = func(*args) File "/usr/lib/python2.5/site-packages/django/contrib/admin/ templatetags/admin_list.py", line 242, in result_list 'results': list(results(cl))} File "/usr/lib/python2.5/site-packages/django/contrib/admin/ templatetags/admin_list.py", line 237, in results yield list(items_for_result(cl,res)) File "/usr/lib/python2.5/site-packages/django/contrib/admin/ templatetags/admin_list.py", line 161, in items_for_result value = attr() File "/usr/lib/python2.5/site-packages/photologue/models.py", line 276, in admin_thumbnail (self.get_absolute_url(), func()) File "/usr/lib/python2.5/site-packages/django/utils/functional.py", line 55, in _curried return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs)) File "/usr/lib/python2.5/site-packages/photologue/models.py", line 308, in _get_SIZE_url if not self.size_exists(photosize): File "/usr/lib/python2.5/site-packages/photologue/models.py", line 337, in size_exists if os.path.isfile(func()): File "/usr/lib/python2.5/site-packages/django/utils/functional.py", line 55, in _curried return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs)) File "/usr/lib/python2.5/site-packages/photologue/models.py", line 316, in _get_SIZE_filename return os.path.join(self.cache_path(), File "/usr/lib/python2.5/site-packages/photologue/models.py", line 284, in cache_path return os.path.join(os.path.dirname(self.image.path), "cache") File "/usr/lib/python2.5/site-packages/django/db/models/fields/ files.py", line 49, in _get_path return self.storage.path(self.name) File "/usr/lib/python2.5/site-packages/django/core/files/ storage.py", line 81, in path raise NotImplementedError("This backend doesn't support absolute paths.") NotImplementedError: This backend doesn't support absolute paths. Exception Location: /usr/lib/python2.5/site-packages/django/template/ debug.py in render_node, line 81 Python Executable: /usr/bin/python Python Version: 2.5.2 Python Path: ['/home/vinay/projects/photoalbum', '/usr/lib/python2.5/ site-packages/geopy-0.93-py2.5.egg', '/usr/lib/python2.5/site-packages/ geopy-0.93-py2.5.egg', '/usr/lib/python2.5/site-packages/geopy-0.93- py2.5.egg', '/home/vinay/projects/photoalbum/utils', '/usr/lib/ python2.5/site-packages', '/home/vinay/projects/photoalbum', '/home/ vinay/projects', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/ lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/ python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/ usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site- packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10', '/var/lib/ python-support/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/var/lib/python-support/python2.5/gtk-2.0'] Server time: Sun, 14 Sep 2008 21:47:35 -0700 Template error In template /usr/lib/python2.5/site-packages/django/contrib/admin/ templates/admin/change_list.html, error at line 34 Caught an exception while rendering: This backend doesn't support absolute paths. 24 {% if cl.has_filters %} 25 <div id="changelist-filter"> 26 <h2>{% trans 'Filter' %}</h2> 27 {% for spec in cl.filter_specs %} 28 {% admin_list_filter cl spec %} 29 {% endfor %} 30 </div> 31 {% endif %} 32 {% endblock %} 33 34 {% block result_list %}{% result_list cl %}{% endblock %} 35 {% block pagination %}{% pagination cl %}{% endblock %} 36 </div> 37 </div> 38 {% endblock %} 39 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---