admin static file not found on Django 1.5 with SFTPStorage
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