0

我正在为我的 django 管理员玩 Grappeli。按照设置说明操作后,我找不到操作下拉菜单。例如,允许我删除一个对象。这使它无法使用。有任何想法吗?我做错了什么的线索?

我正在使用(从另一个程序员继承)django-storage 和 s3 作为存储并设置: STATICFILES_STORAGE = 'server.s3utils.StaticRootS3BotoStorage' DEFAULT_FILE_STORAGE = 'server.s3utils.MediaRootS3BotoStorage'

请注意,在收集静态 - 在 grappeli 部分之后。我收到了这个错误:

Traceback (most recent call last):
  File "manage.py", line 12, in <module>
    execute_from_command_line(sys.argv)
  File "/home/alon/.virtualenvs/stox-server/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/home/alon/.virtualenvs/stox-server/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/alon/.virtualenvs/stox-server/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/alon/.virtualenvs/stox-server/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/home/alon/.virtualenvs/stox-server/local/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/home/alon/.virtualenvs/stox-server/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 173, in handle_noargs
    collected = self.collect()
  File "/home/alon/.virtualenvs/stox-server/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 101, in collect
    for finder in finders.get_finders():
  File "/home/alon/.virtualenvs/stox-server/local/lib/python2.7/site-packages/django/contrib/staticfiles/finders.py", line 253, in get_finders
    yield get_finder(finder_path)
  File "/home/alon/.virtualenvs/stox-server/local/lib/python2.7/site-packages/django/utils/functional.py", line 32, in wrapper
    result = func(*args)
  File "/home/alon/.virtualenvs/stox-server/local/lib/python2.7/site-packages/django/contrib/staticfiles/finders.py", line 265, in _get_finder
    return Finder()
  File "/home/alon/.virtualenvs/stox-server/local/lib/python2.7/site-packages/django/contrib/staticfiles/finders.py", line 62, in __init__
    "The STATICFILES_DIRS setting should "
django.core.exceptions.ImproperlyConfigured: The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting

但由于其余的 grappelli 外观和感觉都在那里。我不确定这个问题是否有关联

4

1 回答 1

4

操作下拉菜单一直位于页面底部。

于 2014-06-24T12:50:45.623 回答