Comment icon indicating copy to clipboard operation
Comment copied to clipboard

Use custom style and remove bootstrap.

Open Radi85 opened this issue 4 years ago • 6 comments

In order to reduce the app dependencies, I would like to replace bootstrap with a custom CSS.

Radi85 avatar May 17 '20 12:05 Radi85

Would you really need it as a feature though? I replaced it in my project by overriding the templates.

MrCordeiro avatar Nov 18 '20 11:11 MrCordeiro

That's good news 😃 However, without overriding the templates, you would still need the bootstrap. Removing it makes the app more customizable by overriding CSS classes only instead of overriding the whole template. IMHO, it would be a cool feature but needs a lot of work.

Radi85 avatar Nov 18 '20 12:11 Radi85

Would you really need it as a feature though? I replaced it in my project by overriding the templates.

Can you share how you did this or maybe the repo where you did this? Utility frameworks are foreign to me :) I added similar feature requesting support for Tailwind. Your code might help make me changes.

spsphulse avatar Feb 16 '21 18:02 spsphulse

Would you really need it as a feature though? I replaced it in my project by overriding the templates.

Can you share how you did this or maybe the repo where you did this? Utility frameworks are foreign to me :) I added similar feature requesting support for Tailwind. Your code might help make me changes.

Sorry for taking so long to answer this (I had bookmarked it and then forgotten about it). It's not overly complicated. Just like any Django project, you can override the templates of any third-party app by creating HTML files with the same names in your root template folder.

An easy way to do it is to create a comment folder inside your templates folder (as that's the name of this app) and copy all the content from this location into your project. Then you can treat these template files as your own and change them as you wish (just don't change their names).

MrCordeiro avatar Feb 24 '21 10:02 MrCordeiro

My comment.css file is rendering in debug = True but not in debug = False. All the other css files of project are working in debug is False and True both . What is the reason behind it?

vishalsingha avatar Jul 19 '22 04:07 vishalsingha

My comment.css file is rendering in debug = True but not in debug = False. All the other css files of project are working in debug is False and True both . What is the reason behind it?

Basically, django shouldn't ideally be used to serve static files in production mode. For more information, you may read serving static files in production.

Also, just a suggestion, please don't start unrelated threads here. it just messes up the historical logs, and is distracting. if you have something new, feel free to open a issue or discussion as per the needs.

abhiabhi94 avatar Jul 24 '22 03:07 abhiabhi94