NOTE: This process is for AWS AMI instance setup using a paid SSL certificate. If you are using a Ubuntu instance, use Let’s Encrypt instead, as it is free, automated and open Certificate Authority. You might use Let's Encrypt for an AWS AMI in...
Django templates are very powerful for speeding up a website prototype, e.g., template literals, template filters, and template inheritance. Especially, the template inheritance, makes it much easier to build a multi-page web application with mini...
I have recently found that in our team, both
if request.POST:
pass
and
if request.method == ‘POST’:
pass
have been used to check a POST request. Are they the same? Which one is better? I have googled around and find out that they ar...
1. Set up MySQL for a Django Project
SQLite is the default database engine in Django. Here, I am using MySQL for local development.
Create a database to be used
How to create a MySQL database is beyond the scope of this blog. I have introdu...
1. Django Overview
Django is HTTP in, and HTTP out, as shown in the figure below. Django is the stuff in yellow. The URLs tell the Request where it should go to pick up something. The VIEWS are python callables that return response. Within the VI...