[1.4c2] The storage backend of the staticfiles finder doesn't have a valid location.

619 views
Skip to first unread message

Micky Hulse

unread,
Mar 22, 2012, 2:22:02 AM3/22/12
to django...@googlegroups.com
I must be overlooking something obvious. My error:

<http://dpaste.com/719934/>

The static files collect just fine (currently, I just have admin files
to collect); the above error just shows up every time I run
collectstatic.

Settings:

STATIC_ROOT = '/home/billy/webapps/xyz_static/'
STATIC_URL = '/static/'
STATICFILES_DIRS = ()
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
INSTALLED_APPS = (
'django.contrib.staticfiles',
)

Sorry if this is an obvious one... I could not find anything useful
via a Google search.

Many thanks in advance!

Cheers,
M

Bill Freeman

unread,
Mar 22, 2012, 7:32:55 AM3/22/12
to django...@googlegroups.com
On Thu, Mar 22, 2012 at 2:22 AM, Micky Hulse <rgm...@gmail.com> wrote:
> I must be overlooking something obvious. My error:
>
> <http://dpaste.com/719934/>
>
> The static files collect just fine (currently, I just have admin files
> to collect); the above error just shows up every time I run
> collectstatic.
>
> Settings:
>
> STATIC_ROOT = '/home/billy/webapps/xyz_static/'
> STATIC_URL = '/static/'
> STATICFILES_DIRS = ()
> STATICFILES_FINDERS = (
>    'django.contrib.staticfiles.finders.FileSystemFinder',
>    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
>    'django.contrib.staticfiles.finders.DefaultStorageFinder',

Just a shot in the dark, but you probably want to leave DefaultStorageFinder
commented out, or see:

https://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/#std:setting-STATICFILES_FINDERS

and the not there about DEFAULT_FILE_STORAGE:

https://docs.djangoproject.com/en/1.3/ref/settings/#std:setting-DEFAULT_FILE_STORAGE

> )
> INSTALLED_APPS = (
>    'django.contrib.staticfiles',
> )
>
> Sorry if this is an obvious one... I could not find anything useful
> via a Google search.
>
> Many thanks in advance!
>
> Cheers,
> M
>

> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>

Micky Hulse

unread,
Mar 22, 2012, 12:47:41 PM3/22/12
to django...@googlegroups.com
Hi Bill, thanks so much for you pro help and quick reply, I really
appreciate it! :)

On Thu, Mar 22, 2012 at 4:32 AM, Bill Freeman <ke1...@gmail.com> wrote:
> Just a shot in the dark, but you probably want to leave DefaultStorageFinder

> commented out ...

That did the trick! Thank you so much, I owe you one. :)

Have an awesome day!

Cheers,
M

Reply all
Reply to author
Forward
0 new messages