Jump to content

Django

From ArchWiki
Revision as of 10:55, 9 December 2023 by Gregy (talk | contribs) (fix typo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Django is a high-level Python Web framework which follows the model–view–template (MVT) architectural pattern.

Installation

Install the python-django package. Documentation can be installed with the python-django-docsAUR package.

Database driver

There are different database backends available for Django:

Usage

If you wish to start a Django project, use django-admin command

$ django-admin startproject mysite

This will create a mysite directory in your current directory. It will also create a manage.py script, which will let you interact with your project.

More information you will find in the official Django tutorial and Django documentation.

See also