In order to avoid confusion between my production and development instance (where DEBUG = True
), I’d like to override the CSS of my bootstrap Navbar in development (only) to show up e.g. in red instead of blue.
What is the most elegant way to accomplish this?
I can override get_context_data()
everywhere to include my settings.DEBUG
, or inherit from a newly generated base classes, but that doesn’t seem very DRY.