Introduction to Django

Cloud-dev
2 min readDec 22, 2021

Django Learning Objectives
Django is a powerful python web framework that is used to develop web applications. It is well
termed as the web framework for perfectionists with deadlines. Through this module, we will go
on exercising our web development skills using Django.
We’ll start off by learning how to install Django in our computers. We’ll then learn how to initiate a
Django project and a Django app. For us to interact with our app, it has to be running on a server.
We’ll, therefore, learn how to start the Django development server. We’ll also learn how to
configure URL’s in a Django application which enables us to render different pages in our apps.
We’ll also be creating templates to display information and content that users can see and interact
with. As well, we’ll install and use bootstrap in our Django apps to make them look beautiful and
intuitive.
Our applications will be storing data in a database and so we’ll learn how to connect Django apps
to a database. We’ll also learn how to send and fetch data from the database through our
applications using database queries. Additionally, we’ll learn how to test our Django applications
using unittests, so that in the worst case scenario, our applications do not crash after
experiencing any behavioural vulnerability.
Django has a powerful admin interface that helps us manage data in our application’s models
directly from the admin dashboard. We will learn how to activate and use this powerful feature
known as django-admin to manage data in our applications models. We’ll add the features of
uploading images to our Django apps as well as create web forms in which users can fill in data
that we’ll record in our database. We’ll also learn how to authenticate users into our applications
using sign-up and login features in our applications.
We have interacted with API’s before while learning Flask. In Django, we’ll go a notch higher and
build our own API’s. Once we’re done building our Django application, we’ll wrap up by learning
how to configure our applications for deployment and ultimately use the Heroku cloud platform to
deploy our applications to production.
By the end of the Django module, we will be able to:
1.Create a Django application and have it running on the Django development server.
2.Create view functions in a Django application.
3.Configure URL’s to different views or pages in a Django application.
4.Create templates and use template syntax in a Django application.
4.Create a database and connect a Django application to the database.
5.Create tests that check for the behaviour of our code in our applications.
6.Activate and use the Django admin to work with data in the application’s models.

7.Create a feature for uploading images in a Django web app.

--

--