bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
Learn/Django

Django

Django Tutorial

Part of the Django path, Django Tutorial digs into Django Introduction in detail.

Lesson 1

Django Tutorial

Django is a back-end server side web framework.

Read lesson →Loading…
Lesson 2

Django Introduction

Django is a Python framework that makes it easier to create web sites using Python.

Read lesson →Loading…
Lesson 3

Django Getting Started

To install Django, you must have Python installed, and a package manager like PIP .

Read lesson →Loading…
Lesson 4

Django - Create Virtual Environment

It is suggested to have a dedicated virtual environment for each Django project, and one way to manage a virtual environment is venv , which is included in Python.

Read lesson →Loading…
Lesson 5

Install Django

Now, that we have created a virtual environment, we are ready to install Django.

Read lesson →Loading…
Lesson 6

Django Create Project

Once you have come up with a suitable name for your Django project, like mine: my_tennis_club , navigate to where in the file system you want to store the code (in the virtual environment), I will…

Read lesson →Loading…
Lesson 7

Django Create App

An app is a web application that has a specific meaning in your project, like a home page, a contact form, or a members database.

Read lesson →Loading…
Lesson 8

Django Views

Django views are Python functions that take http requests and return http response, like HTML documents.

Read lesson →Loading…
Lesson 9

Django URLs

Create a file named urls.py in the same folder as the views.py file, and type this code in it:

Read lesson →Loading…
Lesson 10

Django Templates

In the Django Intro page, we learned that the result should be in HTML, and it should be created in a template, so let's do that.

Read lesson →Loading…
Lesson 11

Django Models

A Django model is a table in your database.

Read lesson →Loading…
Lesson 12

Django Insert Data

The Members table created in the previous chapter is empty.

Read lesson →Loading…
Lesson 13

Django Update Data

To update records that are already in the database, we first have to get the record we want to update:

Read lesson →Loading…
Lesson 14

Django Delete Data

To delete a record in a table, start by getting the record you want to delete:

Read lesson →Loading…
Lesson 15

Django Update Model

To add a field to a table after it is created, open the models.py file, and make your changes:

Read lesson →Loading…

Django chapters

All
1. Django Tutorial2. Display Data3. Admin4. Django Syntax5. QuerySets6. Static Files7. PostgreSQL8. Deploy Django9. More Django