Subject · Computer science
Veb proqramlaşdırma (back end)Topics
Topic plan
The subject's topics and the learning outcomes attached to each one.
1. Introduction and basics of django: introducing django; creating a virtual environment; installing django; creating the first django project
LectureIn the subject, the working principle of the django framework in the python environment, the construction of a virtual environment for the isolation of projects and the creation of the first web project are studied.
Open resource: Introduction and basics of django: introducing django; creating a virtual environment; installing django; creating the first django project (opens in a new tab)Topic learning outcomes
- It applies the basics of the django framework and project structure.
2. Presentations and routing. exception handling when sending a request to the server
LectureIn the topic, processing of incoming URL requests in django, setting routes within the project with the path and re_path functions, redirecting to subapplications via include, and HTTP error handling are studied.
Open resource: Presentations and routing. exception handling when sending a request to the server (opens in a new tab)3. Templates: template engine and template syntax. using variables. template tags and template filters
LectureThe topic explores how django's built-in templating engine works, the use of variables to render dynamic data into HTML pages, as well as template tags that handle conditional and loop operators, and filters that visually modify data.
Open resource: Templates: template engine and template syntax. using variables. template tags and template filters (opens in a new tab)Topic learning outcomes
- Django templates create dynamic web pages with html, css, and static files.
4. Templates: template inheritance: extends, block tags, url tag; use of static files (css, javascript, images) in templates
LectureIn order to prevent the repetition of HTML codes, the mechanism of template inheritance (template inheritance) through the extends and block tags, the url tag for the dynamic determination of links between pages, as well as the integration of css, javascript and media files (static documents) into the project are studied.
Open resource: Templates: template inheritance: extends, block tags, url tag; use of static files (css, javascript, images) in templates (opens in a new tab)Topic learning outcomes
- Django templates create dynamic web pages with html, css, and static files.
5. Concept of crud; adding records to VB tables; django-extensions module; selecting records from VB tables; editing, changing and deleting posts; slugs (slug) in URL addresses; get_absolute_url method
LectureIn the topic, CRUD operations, which are the main functions when working with databases, writing, filtering and sorting data in tables using django orm, the django-extensions module, which facilitates project management, as well as slug fields for building seo-friendly urls and the get_absolute_url method, which returns the unique addresses of objects, are studied.
Open resource: Concept of crud; adding records to VB tables; django-extensions module; selecting records from VB tables; editing, changing and deleting posts; slugs (slug) in URL addresses; get_absolute_url method (opens in a new tab)Topic learning outcomes
- Django manages the database and performs CRUD operations through an orm.
6. Vb (database), SQL and ORM (object-relational mapping); creation of model classes; model classes and types; creating and running migration files
LectureIn the topic, the principles of converting relational databases and SQL queries into python code through django orm, building model classes and field types representing database tables, as well as creating and executing migration files for applying these models to the database are studied.
Open resource: Vb (database), SQL and ORM (object-relational mapping); creation of model classes; model classes and types; creating and running migration files (opens in a new tab)Topic learning outcomes
- Django manages the database and performs CRUD operations through an orm.
7. Connection types between tables: foreignkey, manytomanyfield, onetoonefield; admin control panel: creation of super user-site administrator; registration of models; configuring the display of the list of articles in the admin panel; individual fields and activities in the admin panel; search panel and filter panel
LectureDjango ORM implementation of inter-table connection types (foreignkey, manytomanyfield, onetoonefield) in relational databases, creation of an administrator profile with the createsuperuser command for project management, registration of models in the admin panel, as well as customization of individual fields, activities, search and filter panels in the admin interface for convenient data management are studied in the subject.
Open resource: Connection types between tables: foreignkey, manytomanyfield, onetoonefield; admin control panel: creation of super user-site administrator; registration of models; configuring the display of the list of articles in the admin panel; individual fields and activities in the admin panel; search panel and filter panel (opens in a new tab)Topic learning outcomes
- Applies security principles to backend applications and tests web applications.
- Establishes connections between models and configures the django admin panel.