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()