Difference between revisions of "Django"

From ArchWiki
Jump to: navigation, search
m (Changed the architectural pattern)
(simplification of wikilinks (testing https://github.com/lahwaacz/wiki-scripts/blob/master/link-checker.py))
Line 6: Line 6:
  
 
Two packages of Django are currently available in the [[official repositories]]. They can be [[Pacman|installed]] with the following packages:
 
Two packages of Django are currently available in the [[official repositories]]. They can be [[Pacman|installed]] with the following packages:
* {{Pkg|python-django}} - Latest python support, with documentation in the {{aur|django-docs}} package from [[Arch User Repository|AUR]].
+
* {{Pkg|python-django}} - Latest python support, with documentation in the {{aur|django-docs}} package from [[AUR]].
 
* {{Pkg|python2-django}} - Python 2 legacy support
 
* {{Pkg|python2-django}} - Python 2 legacy support
  

Revision as of 18:17, 30 May 2015

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

Installation

Two packages of Django are currently available in the official repositories. They can be installed with the following packages:

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.