尝试使用 django-grappelli 作为我的管理主题,安装非常具有挑战性。在我的 urls.py 中遇到以下内容:
NameError .. name 'grappelli' is not defined
在线抛出错误
(r'^grappelli/', include(grappelli.urls))
用 pip 安装了 grappelli,并且 grappelli 在我的 sites-packages 目录中。添加到我的INSTALLED_APPS
,运行 syncdb,尝试将 grappelli 添加到我的 pythonpath,但没有运气。如果我在 urls.py 中导入 grappelli,错误将变为AttributeError - 'module' has no attribute 'urls'
非常感谢您的建议或任何形式的帮助。