Django: Difference between revisions

From ArchWiki
(Update Interlanguage link)
(fix typo)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Web frameworks]]
[[Category:Web frameworks]]
[[fr:Django]]
[[ja:Django]]
[[ja:Django]]
[[zh-hans:Django]]
[[zh-hans:Django]]
[http://www.djangoproject.com Django] is a high-level [[Python]] Web framework which follows the model–view–template (MVT) architectural pattern.
[[ru:Django]]
[https://www.djangoproject.com Django] is a high-level [[Python]] Web framework which follows the model–view–template (MVT) architectural pattern.


== Installation ==
== Installation ==


[[Install]] the {{Pkg|python-django}} package which provides latest Python 3 support. Documentation can be installed with the {{AUR|django-docs}} package.
[[Install]] the {{Pkg|python-django}} package. Documentation can be installed with the {{AUR|python-django-docs}} package.


=== Database driver ===
=== Database driver ===
Line 22: Line 22:
This will create a {{ic|mysite}} directory in your current directory. It will also create a {{ic|manage.py}} script, which will let you interact with your project.
This will create a {{ic|mysite}} directory in your current directory. It will also create a {{ic|manage.py}} script, which will let you interact with your project.


More information you will find in the [https://docs.djangoproject.com/en/2.2/intro/tutorial01/ official Django tutorial] and [https://docs.djangoproject.com/en/ Django documentation].
More information you will find in the [https://docs.djangoproject.com/en/4.0/intro/tutorial01/ official Django tutorial] and [https://docs.djangoproject.com/en/ Django documentation].


== See also ==
== See also ==

Latest revision as of 10:55, 9 December 2023

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