What is Django?
Django is a python Web framework. A framework software is used for creating applications.
Why do we use it?
We use frameworks because it saves lot of time of the developers and it helps in writing clean code. In short, you don't create an application from the scratch like you do in core language.
How does Django work?
Basically any web framework like Laravel, Codeigniter, etc are MVC based frameworks. They work on Model-View-Controller basis.
But Django is little different from other frameworks. It works on MVT i.e. Model View Template basis.
Working of Django
Django framework is easy to understand if you have a some understanding of any MVC frameworks.
Django will first take the url requested in the web browser and search that url in the "urls.py".
Let's take an example:
if you type "/login" URL, you have to write this in the urls.py file of your project. You have to write a function corresponding to each url. Now in that function we have to write the code and redirect it to any template you wish.
Tags : Django 3.0, Django tutorials, Working of Django, Python Django.
Latest PostsREST API using Django Rest Framework How to connect Django project with MySQL database How to delete image from folder when deleting a record in django How to update new image in django How to fetch / retrieve images in django How to upload image in django Deploy Django App on Heroku for free Upload Files/Images in Django How to show success message in django Delete data from database in Django
© Copyright - 2018 - 2022 | All rights reserved at Funda of Web IT