Introduction to Django

Anuj Sharma
WWCode Python
Published in
2 min readJul 10, 2022

Django is the most popular and full-fledged Python web development framework.

All programming languages have their frameworks.

Let me give you an analogy. You know how to bake a cake, but instead of doing some tasks from scratch, we can use this cake mix. We can follow the directions mentioned behind this box and bake the cake. The cake mix helped us to bake the cake quickly. You don’t need to worry about making the cake mix; we need to know how to follow these directions.

In the same way, Django makes it easy to build better web apps more quickly and with less code.

Django encourages rapid development and clean, pragmatic design, so you can focus on writing your app without needing to reinvent the wheel.

In the session, Introduction to Django, you will learn how to build your first web application with Django.

First, you will learn how to create a simple page showing a short text message. Next, you will discover how to create an HTML page using a Django template.
After this, you will learn how to create dynamic URLs by creating a 404 page.
Then, you will see how to create a database model, so we can store and retrieve our data, and we will see how to show that data on our pages.

Django has its style, which you will learn by practising, such as where to put spaces and slashes.

You will also learn how to write Python logic in HTML.

Finally, you will see how to use the Django-admin panel, making it super easy to update the data.

After finishing the video, you will have a good overview of all the essential parts of Django and how they work together, so that you can build your websites in Django. So, let’s dig into the bedrock of a Django app (models, templates, and views), and build one of your own.

Resources

Slides: https://docs.google.com/presentation/d/1MiHFywU6YnNY_nuYMPhP9GZNtxTmR7SjjQtz-xVdaE8/edit?usp=sharing

GitHub:
https://github.com/theanujsharma/Learn_Django

Do you want to learn more?

I highly recommend this (https://docs.djangoproject.com/en/4.0/) link. You will see official documentation, which can be downloaded in various formats.

--

--