Commit 58af5ba5 authored by agusmakmun's avatar agusmakmun
Browse files

Update post

parent 2bcd456d
......@@ -7,10 +7,12 @@ categories: [python, django]
Adding BroadCast Mail to All User Registered in Django Admin. This is my last problem, we need custom default Django Admin to can submit BroadCast mail to All User. Because this is perfectly to make a promotions.
This problem has been helped by our Danny W. Adair who are answered someone's question about the ["Django Admin Customizing"](http://stackoverflow.com/a/5803941/3445802 target="_blank").
This problem has been helped by our Danny W. Adair who are answered someone's question about the ["Django Admin Customizing"]("http://stackoverflow.com/a/5803941/3445802" target="_blank").
> In this configuration, we use gmail for email backend. Please following this tutorial first [Email BackEnd with SMTP Gmail](https://agusmakmun.github.io/python/django/2016/04/18/email-backend-with-smtp-gmail.html).
-----
**1.** In your `models.py`
{% highlight python %}
......@@ -28,6 +30,8 @@ class BroadCast_Email(models.Model):
{% endhighlight %}
-----
**2.** In your `admin.py`, importing some module for "admin" and for "email setup".
{% highlight python %}
......@@ -73,6 +77,8 @@ admin.site.register(models.BroadCast_Email, BroadCast_Email_Admin)
{% endhighlight %}
-----
**3.** And then, you can see. we have **Submit BroadCast** selection, just click button **Go** to submit broadcast mail.
![Screenshot broadcast](https://raw.githubusercontent.com/agusmakmun/agusmakmun.github.io/master/static/img/_posts/Broadcast_Mail.png "Screenshot broadcast")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment