Whenever you are using json make sure you return template like below example. return render(request, template_name,…
Tag: django
How To Create Django Unique Slug , Warning Of Duplicate slug
What is Django unique slug In Django Unique Slug , a slug is a short label…
Django Allowed Host : How To Set Allowed_Host In Django
Setting up allowed host is a good practice to stop hackers or attackers from entering your…
Django Slug Field : How To Auto Populate Django Slug
In this tutorial we are going to use django slug field in our url instead of…
Django Gmail – How To Send Email In Django
Although Python provides how to send email in Django interface via the smtplib module,but Django provides a couple…
How To Create A Django Website Using Android Phone
How you ever wondered if you create a website using just phone? In this tutorial i…
How To Host Django Website On Pythonanywhere
Developing a website and host Django website is not an easy one; after developing a website…
How To Serve Django Static Files In Pythonanywhere And Heroku
To configure staticfiles, you would need to follow the steps below to make sure you set…
Django Detail View – Creating Views Using Class Based View
Django detail views Below are illustration of How to Create a Class Based View In Django A…