Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

manage.py collectstatic report "no attribute 'preload_metadata" #126

Closed
luojiyin1987 opened this issue Feb 5, 2018 · 1 comment
Closed

Comments

@luojiyin1987
Copy link

luojiyin1987 commented Feb 5, 2018

Django is 1.10.7,

Traceback (most recent call last):
  File "manage.py", line 29, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 208, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 41, in load_command_class
    return module.Command()
  File "/usr/local/lib/python3.5/site-packages/collectfast/management/commands/collectstatic.py", line 35, in __init__
    if self.storage.preload_metadata is not True:
  File "/usr/local/lib/python3.5/site-packages/django/utils/functional.py", line 235, in inner
    return func(self._wrapped, *args)
AttributeError: 'StaticFilesStorage' object has no attribute 'preload_metadata'
@luojiyin1987
Copy link
Author

from #30
fix pr

solve

write
Collectfast==0.5.2
to requirements.txt to solve it.
I hope it can help others.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants