Django is an open source Python web framework, Django softwares are:
A model is the single, definitive source of information about your data, models are basicly subclasses of django.db.models.Model, when defining a model, each attribute will represent a column in a table, keep in mind that you have to add the model to the installed_apps inside the settings file in order to start using that model.
A view is the rendered result of requesting a URL, once a request is made, Django will look to a match in the list of urlpatterns
and return the associated view, think of the urls as the endpoints and the view as the response.
Templates are HTML files that contains some dynamic values that can be called or changed using Python syntax.
The well known HTML elements, a form can be generated easily using Django by importing forms
, which serves as a shortcut for creating and handling forms.
It is a common practice to give full or custom access to authorized peaople only, In Django this is done using the @login_required
decorator.
Admins can have access to their special features like editing content using from django.contrib import admin
.
Trnsalting the content reletive to the users language.