【问题标题】:Python-admin grappeli - missing Action drop down for delete (or other actions)Python-admin grappeli - 缺少删除(或其他操作)的操作下拉列表
【发布时间】:2014-02-25 15:01:51
【问题描述】:

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

我正在使用(从另一个程序员继承)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 的其他外观和感觉都在那里。我不确定这个问题是否完全相关

【问题讨论】:

    标签: python django django-grappelli


    【解决方案1】:

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

    【讨论】:

    • 小崽子,我瞎了。这对我有帮助
    猜你喜欢
    • 2014-02-25
    • 1970-01-01
    • 2020-10-04
    • 2016-03-13
    • 2023-02-22
    • 1970-01-01
    • 2021-01-05
    • 1970-01-01
    • 2015-11-05
    相关资源
    最近更新 更多