django-less问题 - 不能收集静止

时间:2013-03-03 17:47:51

标签: python django less

我正在使用

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

因为我想少用我的项目。我在django设置中将'less.finders.LessFinder'添加到我的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"

所以很明显没有“发现者”模块..但是为什么!?!?!?

0 个答案:

没有答案