Il est important de comprendre qu'une application Django n'est qu'un ensemble de code qui interagit avec les différentes parties du système.
It is important to understand that a Django application is just a set of code that interacts with various parts of the framework.
Nous allons aussi vous montrer comment fonctionne une application Django (bien que nous n'ayons pas d'environnement où le tester).
We'll also show you some of the main building blocks of a Django application (although at this point you won't yet have a development environment in which to test it).
Cela implique que vous devez être à l'aise en parcourant les tutoriaux existants sur l'écriture de votre première application Django.
This means you should be comfortable going through the existing tutorials on writing your first Django app.
Par exemple, il pourrait être utile d'ajouter une action manage.py pour une application Django que vous distribuez.
For example, you might want to add a manage.py action for a Django app that you're distributing.
Si vous avez commencé à dockerizer votre application django, je suis sûr que vous avez forcément rencontré quelques problèmes que vous avez facilement résolu avec plusieurs requêtes Google.
The Issue If you started to dockerize your django app, I am sure that you encountered some weird difficulties that you managed to fix after few google requests.
Conclusion Maintenant vous n'avez plus aucun prétexte pour ne plus développer sur votre application django maintenant que vous n'avez plus rien à faire pour la mettre en production !
Conclusion Now you have no excuse to not develop your django application now you have nothing to do to put it in production!
Le django rest framework va nous permettre de créer très facilement et en très peu de lignes de code une API REST au dessus de notre application django.
The django rest framework will allow us to create easily and with few lines of code, a REST API on top of our django application.
Cela peut être un problème si l'application Django est servie sous un préfixe particulier et que vous vouliez que les URL produites par la balise {% url %} contiennent le préfixe, au contraire de la version réécrite qui pourrait par exemple contenir
This is a problem if the Django application is being served from under a particular prefix and you want your URLs from the {% url %} tag to look like the prefix, rather than the rewritten version, which might contain, for example, mysite.fcgi.
Chaque fois qu'une application Django génère une erreur 404, cet intergiciel vérifie en dernier recours si l'URL demandée se trouve dans la base de données des redirections.
Each time any Django application raises a 404 error, this middleware checks the redirects database for the requested URL as a last resort.
Une vue est un « type » de page Web dans votre application Django qui sert généralement à une fonction précise et possède un gabarit spécifique.
A view is a "type" of Web page in your Django application that generally serves a specific function and has a specific template.
django-admin startapp Crée une structure de répertoires d'application Django avec le nom d'application indiqué, dans le répertoire actuel ou dans la destination indiquée.
django-admin startapp name [directory] Creates a Django app directory structure for the given app name in the current directory or the given destination.
Renvoie True si l'utilisateur possède au moins une permission dans le paquet donné (l'étiquette d'application Django).
Returns True if the user has any permissions in the given package (the Django app label).
Se familiariser avec Django en comprenant ce que c'est, les fonctionnalités qu'il fournit ainsi que les blocs de construction principaux d'une application Django.
To gain familiarity with what Django is, what functionality it provides, and the main building blocks of a Django application.