aboutsummaryrefslogtreecommitdiff
path: root/forms.py
diff options
context:
space:
mode:
authorAlban Gruin2017-01-22 19:20:05 +0100
committerAlban Gruin2017-01-22 19:20:05 +0100
commit245b978ee20a7091cb2924bc14ae36f4d0460477 (patch)
tree82a7275a03ea19d4dd7357d9e63a3882a3b21369 /forms.py
parentab3885a7cc8551061da8bc41835933a75c9937e0 (diff)
Utilisation d'un formulaire Django pour faire ça proprement
Diffstat (limited to 'forms.py')
-rw-r--r--forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/forms.py b/forms.py
new file mode 100644
index 0000000..e0085d0
--- /dev/null
+++ b/forms.py
@@ -0,0 +1,5 @@
+from django import forms
+
+
+class SubscribeForm(forms.Form):
+ email = forms.EmailField(label="Adresse email")