mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-02 03:42:26 +02:00
Make contact email editable in settings.py
This commit is contained in:
parent
f574645510
commit
011c1cac9a
2 changed files with 12 additions and 1 deletions
9
la_chariotte/order/templatetags/settings.py
Normal file
9
la_chariotte/order/templatetags/settings.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from django import template
|
||||
from django.conf import settings
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
||||
@register.simple_tag
|
||||
def settings_value(name):
|
||||
return getattr(settings, name, "")
|
|
@ -1,4 +1,6 @@
|
|||
{% load static %}
|
||||
{% load settings %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
|
@ -136,7 +138,7 @@
|
|||
</div>
|
||||
<div class="column is-size-6 columns">
|
||||
<div class="column margin-auto">
|
||||
<p>Contact : <a href="mailto:contact@chariotte.fr">contact@chariotte.fr</a>
|
||||
<p>Contact : <a href="mailto:{% settings_value "CONTACT_MAIL" %}">{% settings_value "CONTACT_MAIL" %}</a>
|
||||
<p>Suivez <strong>la Chariotte</strong> sur :</p>
|
||||
</div>
|
||||
<div class="column">
|
||||
|
|
Loading…
Reference in a new issue