I struggled a lot for sending a good customized template in an email from my code. I used many email sending utility and i was able to send emails successfully from my code. But they didn't really look very good. It was just some email with some text in it. So Used one of the … Continue reading Customized email with django
Tag: ajax
Backend view for follower/following database logic
Hi Guys I have got a request from @trafffic98 to explain the logic as a follow up of follower/following database logic, written here. so here in this blog i will just put the logic of follow and unfollow button. Follow def follow(request): """ Method is used to follow an user. """ response = {} # … Continue reading Backend view for follower/following database logic
Django Ajax file-uploader with bootstrap progressbar
Hey guys. You might have implemented the file upload logic in your web-app. Usually in Google chrome it shows the file upload percentage, but in other browsers it doesn't show. What if you are using some other browser and you have uploaded a large file of size 10-20MB approx and it takes 5 minutes to upload. … Continue reading Django Ajax file-uploader with bootstrap progressbar
Django-ajax form submission using jquery.
This approach uses jquery-ajax to submit the form and get the response from the backend without reloading the page on submission of the form. The models, froms, views, html and javascript is explained below. models.py class Employee(models.Model): # Primary key emp_id = models.AutoField(primary_key=True) # Employee name upto 50 char emp_name = models.CharField(max_length=50) # Employee age … Continue reading Django-ajax form submission using jquery.