Django: Difference between revisions
(Update Interlanguage link) |
(fix typo) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Web frameworks]] | [[Category:Web frameworks]] | ||
[[ja:Django]] | [[ja:Django]] | ||
[[zh-hans:Django]] | [[zh-hans:Django]] | ||
[ | [[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 | [[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/ | 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:
- For a PostgreSQL backend install the python-psycopg2 package.
- If you intend to use a MySQL database as backend, install the python-mysqlclient package.
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
- awesome-django - A curated list of Django apps, projects and resources.
- Django vs Flask - Comparison of Django and Flask frameworks.