0% found this document useful (0 votes)
41 views

Django

Django is a high-level Python web framework that follows the MVC pattern. It includes an ORM for interacting with databases using Python code instead of SQL, a built-in admin interface for managing data without custom views, and URL routing that maps URLs to views. Django also provides middleware for global request/response processing, and security features that protect against common vulnerabilities.

Uploaded by

techcoderhelp
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Django

Django is a high-level Python web framework that follows the MVC pattern. It includes an ORM for interacting with databases using Python code instead of SQL, a built-in admin interface for managing data without custom views, and URL routing that maps URLs to views. Django also provides middleware for global request/response processing, and security features that protect against common vulnerabilities.

Uploaded by

techcoderhelp
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

What is Django

• Django is a high-level, open-source web framework for the Python programming language. It
follows the Model-View-Controller (MVC) architectural pattern.
• ORM (Object-Relational Mapping): Django provides an ORM that allows you to interact with
databases using Python code instead of SQL queries.
• Admin Interface: Django comes with a built-in admin interface that allows developers to
manage the application's data without having to write custom views.
• URL Routing: Django uses a URL dispatcher to map URLs to views, making it easy to organize
and manage the structure of your web application.
• Middleware: Django uses middleware components to process requests and responses
globally. Middleware can perform actions such as authentication, logging, or modifying the
request/response objects.
• Security Features: Django includes built-in protection against common web security
vulnerabilities, such as SQL injection, cross-site scripting (XSS), and cross-site request forgery
(CSRF).
Django Framework
Installation Requirements

1. Vs Code
2. Python setup
3. Django setup
How to install Vs code
How to install Python
How to install Django
Additionally, you can use the Pip module in
vs code to download or set up the
Environment .
Visti this website to get step by step guide about creating project or app.
https://docs.djangoproject.com/en/4.2/intro/tutorial01/
How to Create a Project in Django
Navigate into the Project Folder
Run the Server
Server Running Page
Create the Project App
python manage.py startapp myapp
Install app
Create a templates & static folder inside the
app folder
Create the index.html page
Create a URL file in the app
Create a views for url in the app folder
Include the app route in Project folder
Run the app for render html page
Thanks

You might also like