During this advanced Django course, you will be able to improve your skills with the framework and interact with complex issues.
Django is designed to be extensible, and together we will explore all the possibilities to appropriate this framework.
Integration of tests, project deployment and performance optimization will also be discussed.
At the end of the advanced Django course, you will know how to adapt the power of Django to your case. A project that grows requires a lasting structure, and Django provides a solid framework to make it happen.
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: Advanced models (models.py):
- Customization of the administration interface
- Model inheritance
“Abstract“ model
- Advanced query methods:
2: Advanced views (views.py):
- The view mixins
- Middlewares
- Write a middleware (LoginRequired)
3: Advanced forms (forms.py):
- Write a custom field
- Write a custom widget
- Introduction to the concept of Formset
- Formset Factory
- Create a form with Formset and its view
4: Advanced Templates (* .html):
- Secure and escaping strings
- Context processors
- Create a custom filter (template filter)
- Create a custom tag (template tag)
- Pagination
5: User management (advanced):
- Groups and permissions
- Create your own permissions
- Replaceable user model
- Create your own user model and reference it in a model
- Create a page / view reserved for a group
6: Internationalization and regionalization (I18N, L10N):
- Translation and internationalization of content
- Dynamic language change (create middleware)
- Regionalization of URLs (urls.py)
7: Signals:
- The signal concept
- Presentation of the main native signals
- Create an action on save a Model
8: Performance optimization:
- “Premature optimization is the root of all evil”
- Access to the database and ORM best practices
- Object.ForeignKey.id vs Object.ForeignKey_id
- select_related, prefetch_related, Prefetch
- Identify slow queries / views and optimize them
- Cache management (views, templates, models)
9: Fixtures (Test data / Demo data):
- Concept of fixtures
- Configure settings.py
- Create fixtures
- Load fixtures from files (* .json)
10: Administration commands:
- Use of existing commands
- Create a custom command for Django (automate the loading of fixtures)
11: Tests:
- Introduction to testing models, views and forms
- Organization and launch of tests
- Advanced testing methods
- Factory_boy
- Faker
- Write your first tests
12: Deployment:
- Dependencies list of our project (requirements.txt)
- Logging
- Apache / mod_wsgi
- gunicorn / uwsgi
- Nginx instead of apache
No reviews for this item!.
DJN3 Reference : |
Django Course : |
3 Part : |
Advanced Difficulty level : |
Classroom Course modalities : |
6 day (40 h) Duration : |
30,000 Price : |
75% Practical work : |
75% Workshops / side projects : |
العربيّة , English , Français Languages : |
Boumerdes , Constantine 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 : |