Skip to content

Commit

Permalink
chore: dev mode banner fixes (#870)
Browse files Browse the repository at this point in the history
## Description

🎸 empecher l'affichage en production de la banniere `DEV MODE` en cas
d'erreur 500
🎸 améliorer le test de l'expositions des `settings` par le `context
processor`

## Type de changement

🪲 Correction de bug (changement non cassant qui corrige un problème).
🚧 technique
  • Loading branch information
vincentporte authored Jan 6, 2025
1 parent 774b840 commit 8869104
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lacommunaute/templates/layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</li>
</ul>
</nav>
{% if ENVIRONMENT != "PROD" %}
{% if ENVIRONMENT == "DEV" %}
<div class="global-messages-container" id="debug-mode-banner">
<div class="alert alert-danger fade show" role="status">
<p class="mb-0">
Expand Down
1 change: 1 addition & 0 deletions lacommunaute/utils/tests/tests_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class TestEnvironmentSettingsMiddleware:
"env,expected",
[
(Environment.PROD, False),
(Environment.TEST, False),
(Environment.DEV, True),
],
)
Expand Down

0 comments on commit 8869104

Please sign in to comment.