Questions tagged [emailfield]

13 questions
18
votes
3 answers

Django: How to check if something is an email without a form

I have HTML form to post in Django View and because of some constraints, it's easier for me to do the validation without the usual Django form classes. My only reason to use Django Forms is Email Field(s) that are entered. Is there any function to…
sinθ
  • 11,093
  • 25
  • 85
  • 121
16
votes
1 answer

Rails: How "email_field" differs from "text_field"?

I understand that text_field creates an input field of type text, while email_field creates an input field of type email. But, what is the difference between these two input types ? Say I have a client model while a client has an email. Should I use…
Misha Moroshko
  • 166,356
  • 226
  • 505
  • 746
4
votes
2 answers

Django models with variable number of fields

I'm working on a new project and I'd like to create a django model that will have a variable number of EmailFields depending on another variable. What I'm trying to create is a House model that has all the members of the house in it (more…
apardes
  • 4,272
  • 7
  • 40
  • 66
3
votes
3 answers

django EmailField point before @

I have same small issue with django EmailField. forms.EmailField(required=True, label="E-mail", widget=forms.TextInput(attrs= It did not accept email in form xx.@xxxxxxx.xxx It throw back error message of incorrect form, but email is normally…
PasikCz
  • 105
  • 6
1
vote
2 answers

How to display error message for invalid email address using django

I have a problem with displaying error message when the user enters invalid email address. This is my forms.py file: from django import forms from .models import Contact from django.db import models class ContactForm(forms.ModelForm): class…
P3P5
  • 923
  • 6
  • 15
  • 30
1
vote
2 answers

Django EmailField accepts any value (including blank)

Having this Django model: class Subscriber(models.Model): email = models.EmailField(unique=True, blank=False) I do not face any exceptions when creating a Subscriber with empty email: >>> Subscriber.objects.create(email='')
Vadim Tikanov
  • 631
  • 1
  • 9
  • 26
0
votes
0 answers

Get emails of users from the email field of Hubspot contact from

On my WordPress website I have a contact form built in Hubspot. I got the script of this form from Hubspot and past it in my contact page (https://stagezero.ai/contact/).