سؤال

When using Django CMS, how do you add your own custom CSS file to be loaded in the admin? I'd like to customize the layout of the page admin.

هل كانت مفيدة؟

المحلول

You'll need to copy at least base.html from /contrib/admin/templates/admin/ to

project
--templates
----admin
------base.html

There you can tell admin to load whatever .css files you want.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top