STMP ON DJANGO

43 views
Skip to first unread message

ramadhan ngallen

unread,
May 20, 2019, 8:12:33 AM5/20/19
to Django developers (Contributions to Django itself)
Hello Guys am new to Django

I want to have a model which will have all smtp setup for email.

class EmailSetup(models.Model):
    # model for smtp email EmailSetup
    host = models.CharField(defaut='', blank=False, null=False)
    host_user = models.EmailField(defaut='', blank=False, null=False)
    password = models.CharField(max_length=32, widget=models.PasswordInput)
    port = model.IntegerField()
    email_use_tls = models.BooleanField()


This model will be registered to the admin site.
And admin will be able to save setup and whenever he/she make any modification it should updated to the database
All email will be sent from django using the setup above

I would like to know how to implement something like this and on django documentation models do not have PasswordFiled()

Adam Johnson

unread,
May 20, 2019, 8:29:59 AM5/20/19
to django-d...@googlegroups.com
Hi!

I think you've found the wrong mailing list for this post. This mailing list is for the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely to answer your support query with their limited time and energy. Read more on the mailing lists at https://www.djangoproject.com/community/

For support, please use the django-users mailing list, or IRC #django on Freenode, or a site like Stack Overflow. There are people out there willing to help on those channels, but they might not respond if you don't ask your question well. Stack Overflow's question guide can help you frame it well: https://stackoverflow.com/help/how-to-ask .

Also if you haven't read it, please take a look at Django's Code of Conduct: https://www.djangoproject.com/conduct/ . These are our "ground rules" for working well as a community, and will help you get the most out of Django and our fantastic community.

Thanks for your understanding,

Adam

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/52eba26e-7319-4b4f-b784-c742b6eba021%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Adam
Reply all
Reply to author
Forward
0 new messages