Hello guys, I'm trying to write to my settings.py file from the data I received from my form, but it isn't recognizing the form fields I declared.
Say for instance, my form is: Class MessageForm(forms.form): sender = forms.EmailField() password = forms.CharField() and I imported my form in settings as follows: from vmail.forms import MessageForm then I try to do: Email_Host_User = MessageForm.sender It doesn't recognise MessageForm.sender as a valid call. In fact, it's underlined with red on my IDE. Please, is there Any suggestion on how to go about this? As I intend to use a form to alternate the details in the settings.py file for sending an email. P.S: ignore the typos, the code structure is correct down here. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG%3D1guxpj2d%2BHd2gdwn4UxuD8deuaaGYF6EzrFzJwAqYmKhfAw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.