Come and learn more about the Django framework. Thanks to this training, you will learn to solve complex problems by writing reliable and efficient code.
Based on our knowledge gained over the years on real projects, we will explain how to avoid pitfalls and how to navigate the rich ecosystem of Django.
Like all our training courses, this one will introduce you to the latest stable version to date and its new features (Django 5.0 at the time of the article).
1 : The models (models.py):
- Introduction to the ORM, Model and Field concept
- Definition of model fields
- Migrations
- Manipulate models:
+ Simple database query methods (ORM)
+ CRUD (Create, Read / Retrieve, Update, Delete) methods of model instances
2 : Routing (urls.py):
- Concept "App" in Django
- Include and Namespace
- URLs with parameters
3 : The Views (views.py):
- Class-based views
- The keys to choose between Function-based view and Class-based view (FBV vs CBV)
- Use CBV (Class Based View) to display our model (Detailview / Listview)
4 : Templates (* .html):
- Create the templates to display and list our instances
- Inheritance and inclusion of templates
- Definition of application template blocks
5 : The Forms (forms.py):
- Introduction to the “ModelForm” concept
- Declaration, display and processing of simple form
- Validation of the form fields
- Creation of a simple form with ModelForm
- Create CBVs to modify our Model (CreateView, UpdateView, DeleteView)
6 : Relationship between models:
- Introduction to ForeignKey, ManyToMany and OneToOne field concepts
- Implementation of relations: 1-N, N-N, 1-1
- Create a model linked to the existing model
- Manage this model from the administration interface (Django admin)
- Implement the relation in the existing form (ForeignKey field in .html)
7 : Users management:
- Introduction to the concepts of users, groups, permissions
- Introduction to concepts (Reusable app)
- Protect your views (Decorators and Mixins)
- Creation of a login form
- Creation of a view reserved for connected users
- Management of session variables in Django (Create, Read, Delete)
8 : Static & media files:
- Management of static files (/static)
- Management of media files (/media)
- Upload and manipulation of media files on Django
9 : Django message framework :
- Concept
- Configuration (settings.py)
- Integration dans les vues
10 : Deployment:
- Dependencies list of our project (requirements.txt)
- debug = False
- Integration in Apache with WSGI (wsgi.py)
- Management of static files (collectstatic)
No reviews for this item!.
DJN2 Reference : |
Django Course : |
2 Part : |
Intermediate Difficulty level : |
Classroom Course modalities : |
5 day (31 h) Duration : |
20,000 Price : |
75% Practical work : |
75% Workshops / side projects : |
العربيّة , English , Français Languages : |
Bab Ezzouar , Boumerdes Location : |
Feb. 10, 2024 | Last update :
Very small (5 to 7 People) Group : |
Accelerated , Weekend 1 , Weekend 2 , Classic , Online Course methods : |
Breaks and lunches offered Meal : |
Disponible Accommodation : |
Certificate of completion issued Certificat : |
Handouts Documentation : |