bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/Django

Django

Django Tutorial

Django Tutorial focused on Django Introduction and related concepts.

Lesson 1visual

Django Tutorial

Django Tutorial

2 min
Read lesson →
Lesson 2

Django Introduction

Django Introduction

3 min
Read lesson →
Lesson 3

Django Getting Started

To install Django, you must have Python installed, and a package manager like PIP. PIP is included in Python from version 3.4. Django Requires Python To check if your system has Python installed, run…

2 min
Read lesson →
Lesson 4

Django - Create Virtual Environment

Django - Create Virtual Environment

2 min
Read lesson →
Lesson 5

Install Django

Install Django

2 min
Read lesson →
Lesson 6visual

Django Create Project

Django Create Project

2 min
Read lesson →
Lesson 7

Django Create App

Django Create App

2 min
Read lesson →
Lesson 8

Django Views

Views Django views are Python functions that take http requests and return http response, like HTML documents. A web page that uses Django is full of views with different tasks and missions. Views ar…

2 min
Read lesson →
Lesson 9visual

Django URLs

URLs Create a file named urls.py in the same folder as the views.py file, and type this code in it: my_tennis_club/members/urls.py from django.urls import path from . import views urlpatterns = [ pat…

2 min
Read lesson →
Lesson 10visual

Django Templates

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. Create a templates folder inside the members folder, and cr…

2 min
Read lesson →
Lesson 11

Django Models

Django Models

3 min
Read lesson →
Lesson 12

Django Insert Data

Add Records The Members table created in the previous chapter is empty. We will use the Python interpreter (Python shell) to add some members to it. To open a Python shell, type this command: python…

2 min
Read lesson →
Lesson 13

Django Update Data

Update Records To update records that are already in the database, we first have to get the record we want to update: >>> from members.models import Member >>> x = Member.objects.all()[4] x will now…

2 min
Read lesson →
Lesson 14

Django Delete Data

Delete Records To delete a record in a table, start by getting the record you want to delete: >>> from members.models import Member >>> x = Member.objects.all()[5] x will now represent the member at…

2 min
Read lesson →
Lesson 15

Django Update Model

Add Fields in the Model To add a field to a table after it is created, open the models.py file, and make your changes: my_tennis_club/members/models.py from django.db import models class Member(model…

3 min
Read lesson →