在我的项目中,当我安装django-filebrowser时,发生了一些冲突,只是风格上的冲突,而不是任何函数

时间:2022-09-07 19:35:58

In my project I want to integrate fluent_dashborad for the admin interface, when I installed django-filebrowser some conflicts happened, conflicts in style only but not in any functionality.

在我的项目中,我想为管理界面集成fluent_dashborad,当我安装django-filebrowser时,发生了一些冲突,只是风格上的冲突,但没有任何功能上的冲突。

this is my installed apps,

这是我安装的应用,

INSTALLED_APPS = (

    'fluent_dashboard',
    'grappelli',
    'filebrowser',
    'admin_tools',
    'object_tools',
    'admin_tools.theming',
    'admin_tools.menu',
    'admin_tools.dashboard',

    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sitemaps',
    'cms.plugins.file',
    'cms.plugins.flash',
    'cms.plugins.googlemap',
    'cms.plugins.link',
    'cms.plugins.picture',
    'cms.plugins.snippet',
    'cms.plugins.teaser',
    'cms.plugins.text',
    'cms.plugins.video',
    'cms.plugins.twitter',
    'ckeditor',
    'modeltranslation',
    'cms',
    'haystack',
    'cms_search',
    'export',
    'mptt',
    'menus',
    'endless_pagination',
    'south',
    'sekizai',
    'apps.cmsplugin_title',
    'apps.cmsplugins',
    'apps.newsletters',
    'apps.contactus',
    'apps.cmsplugin_gallery',
    'apps.inline_ordering',
    'apps.gallery',
    'apps.website_settings',
    'apps.career',
    'apps.general',  
    'captcha',
    'sorl.thumbnail',
)

When I comment grappelli and admin_tools. the fluent dashboard is working perfectly but the style conflicts are coming in file browser.

当我注释grappelli和admin_tools时。fluent仪表板运行良好,但在文件浏览器中出现样式冲突。

When I tried disabling the fluent dashboard and enabling grappelli and admin_tools, it works perfectly. but I want fluent_dashboard itself.

当我尝试禁用fluent仪表板并启用grappelli和admin_tools时,它非常有效。但是我想要fluent_dashboard本身。

So either one of these will work alone but not together. How to make them work together.

所以这两个中的任何一个都可以单独工作,但不能一起工作。如何让他们一起工作。

1 个解决方案

#1


1  

Grapelli and django-fluent-dashboard currently aren't compatible.

Grapelli和django fluent-dashboard目前不兼容。

Grapelli already provides their own dashboard code. This was extracted into "django-admin-tools" to be usable outside grapelli. fluent-dashboard is built on top of that.

Grapelli已经提供了他们自己的仪表板代码。这被提取到“django-admin-tools”中,以便在grapelli之外使用。在此基础之上构建了fluent-dashboard。

You can already use what grapelli provides, and take the useful bits from fluent-dashboard (e.g. the IconAppList class).

您已经可以使用grapelli提供的内容,并从fluent-dashboard(例如IconAppList类)获取有用的数据。

(p.s. a pull request to improve grapelli compatibility is welcome off course)

(另外,希望能提高葡萄粉的兼容性,请在课程结束后提出)

#1


1  

Grapelli and django-fluent-dashboard currently aren't compatible.

Grapelli和django fluent-dashboard目前不兼容。

Grapelli already provides their own dashboard code. This was extracted into "django-admin-tools" to be usable outside grapelli. fluent-dashboard is built on top of that.

Grapelli已经提供了他们自己的仪表板代码。这被提取到“django-admin-tools”中,以便在grapelli之外使用。在此基础之上构建了fluent-dashboard。

You can already use what grapelli provides, and take the useful bits from fluent-dashboard (e.g. the IconAppList class).

您已经可以使用grapelli提供的内容,并从fluent-dashboard(例如IconAppList类)获取有用的数据。

(p.s. a pull request to improve grapelli compatibility is welcome off course)

(另外,希望能提高葡萄粉的兼容性,请在课程结束后提出)