0

私は使用しています

https://github.com/andreyfedoseev/django-less

プロジェクトで使用する量を減らしたいからです。「less.finders.LessFinder」を django 設定の STATICFILES_FINDERS に追加しましたが、./manage.py collectstatic を実行しようとするとこのエラーが発生します

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/jean-lucmartin/lolsales/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/Users/jean-lucmartin/lolsales/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/jean-lucmartin/lolsales/venv/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Users/jean-lucmartin/lolsales/venv/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/Users/jean-lucmartin/lolsales/venv/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle
    return self.handle_noargs(**options)
  File "/Users/jean-lucmartin/lolsales/venv/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 163, in handle_noargs
    collected = self.collect()
  File "/Users/jean-lucmartin/lolsales/venv/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 103, in collect
    for finder in finders.get_finders():
  File "/Users/jean-lucmartin/lolsales/venv/lib/python2.7/site-packages/django/contrib/staticfiles/finders.py", line 252, in get_finders
    yield get_finder(finder_path)
  File "/Users/jean-lucmartin/lolsales/venv/lib/python2.7/site-packages/django/utils/functional.py", line 27, in wrapper
    result = func(*args)
  File "/Users/jean-lucmartin/lolsales/venv/lib/python2.7/site-packages/django/contrib/staticfiles/finders.py", line 265, in _get_finder
    (module, e))
django.core.exceptions.ImproperlyConfigured: Error importing module less.finders: "No module named finders"

したがって、「ファインダー」モジュールがないことは明らかです..しかし、なぜ!?!?!?

4

0 に答える 0