1. David Larlet
  2. django-storages
  3. Issues


Issue #182 new

admin static file not found on Django 1.5 with SFTPStorage

created an issue

I am trying to use storages.backends.sftpstorage.SFTPStorage with Django 1.5. Everything works except when I go to the admin site. All the static files are not found. The links will be href="admin/css/base.css".

As soon as I remove the STATICFILES_STORAGE, everything works as expected.

It would seems the code at line 88 points to MEDIA_URL instead of STATIC_URL. The admin site will use the MEDIA_URL prefix but all the files are collected and stored in the STATIC directory by default. That may be the cause of the bug.

self._base_url = settings.MEDIA_URL

Comments (1)

  1. Log in to comment