Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Django

The web framework for perfectionists with deadlines.

Documentation

  • Language:en

FAQ: Installation

How do I get started?

  1. Download the code.

  2. Install Django (read theinstallation guide).

  3. Walk through thetutorial.

  4. Check out the rest of thedocumentation, andask questions if you run into trouble.

What are Django’s prerequisites?

Django requires Python. See the table in the next question for the versions ofPython that work with each version of Django. Other Python libraries may berequired for some use cases, but you’ll receive an error about them as they’reneeded.

For a development environment – if you just want to experiment with Django –you don’t need to have a separate web server installed or database server.

Django comes with its own lightweight development server(runserver). For a production environment, Django follows the WSGIspec,PEP 3333, which means it can run on a variety of web servers. SeeHow to deploy Django for more information.

Django runsSQLite by default, which is included in Python installations.For a production environment, we recommendPostgreSQL; but we also officiallysupportMariaDB,MySQL,SQLite, andOracle. SeeSupported Databases for more information.

What Python version can I use with Django?

Django version

Python versions

4.2

3.8, 3.9, 3.10, 3.11, 3.12 (added in 4.2.8)

5.0

3.10, 3.11, 3.12

5.1

3.10, 3.11, 3.12, 3.13 (added in 5.1.3)

5.2

3.10, 3.11, 3.12, 3.13, 3.14 (added in 5.2.8)

6.0

3.12, 3.13, 3.14

6.1

3.12, 3.13, 3.14

For each version of Python, only the latest micro release (A.B.C) is officiallysupported. Python versions that have reached end-of-life are no longermaintained by the Python project and therefore should not be used with Django.

You can find the latest supported micro version for each series on thePythondownload page.

We will support a Python version up to and including the first Django LTSrelease whose security support ends after security support for that version ofPython ends. For example, Python 3.9 security support ends in October 2025 andDjango 4.2 LTS security support ends in April 2026. Therefore Django 4.2 is thelast version to support Python 3.9.

What Python version should I use with Django?

Since newer versions of Python are often faster, have more features, and arebetter supported, the latest version of Python 3 is recommended.

You don’t lose anything in Django by using an older release, but you don’t takeadvantage of the improvements and optimizations in newer Python releases.Third-party applications for use with Django are free to set their own versionrequirements.

Should I use the stable version or development version?

Generally, if you’re using code in production, you should be using astable release. The Django project publishes a full stable releaseevery eight months or so, with bugfix updates in between. These stablereleases contain the API that is covered by our backwardscompatibility guarantees; if you write code against stable releases,you shouldn’t have any problems upgrading when the next officialversion is released.

Back to Top

Additional Information

Support Django!

Support Django!

Contents

Getting help

FAQ
Try the FAQ — it's got answers to many common questions.
Index,Module Index, orTable of Contents
Handy when looking for specific information.
Django Discord Server
Join the Django Discord Community.
Official Django Forum
Join the community on the Django Forum.
Ticket tracker
Report bugs with Django or Django documentation in our ticket tracker.

Download:

Offline (development version):HTML |PDF |ePub
Provided byRead the Docs.

Diamond and Platinum Members

Sentry
JetBrains
This document is for Django's development version, which can be significantly different from previous releases. For older releases, use the version selector floating in the bottom right corner of this page.

[8]ページ先頭

©2009-2025 Movatter.jp