0

我在用着

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

因为我想在我的项目中使用更少。我在 django 设置中的 STATICFILES_FINDERS 中添加了“less.finders.LessFinder”,但是当我尝试运行 ./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"

所以很明显没有'finders'模块..但是为什么!?!?!?

4

0 回答 0