Comment
Comment copied to clipboard
Use custom style and remove bootstrap.
In order to reduce the app dependencies, I would like to replace bootstrap with a custom CSS.
Would you really need it as a feature though? I replaced it in my project by overriding the templates.
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.
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.
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).
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?
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.