I am trying to create a form which asks user to input a value, do some
calculations on it and show the results back to the user. Here is what I've
done: I have created an app called QMarcum. Inside this app I have this
views.py, forms.py and urls.py:
views.py
from django.shortcuts import rende
I've created a form in Django:
#forms.py
from django import forms
class ContactForm(forms.Form):
name = forms.CharField()
number = forms.FloatField()
eail_user = forms.EmailField()
and imported in in views.py
#views.pyfrom django.shortcuts import renderfrom .models imp
2 matches
Mail list logo