Django | Quick install guide | Django documentation
5897 단어 document
Quick install guide ¶
Before you can use Django, you’ll need to get it installed. We have a complete installation guide that covers all the possibilities; this guide will guide you to a simple, minimal installation that’ll work while you walk through the introduction.
Install Python ¶
Being a Python Web framework, Django requires Python. It works with any Python version from 2.4 to 2.7 (due to backwards incompatibilities in Python 3.0, Django does not currently work with Python 3.0; see the Django FAQ for more information on supported Python versions and the 3.0 transition), but we recommend installing Python 2.5 or later. If you do so, you won’t need to set up a database just yet: Python 2.5 or later includes a lightweight database called SQLite .
Get Python at http://www.python.org . If you’re running Linux or Mac OS X, you probably already have it installed.
Django on Jython
If you use Jython (a Python implementation for the Java platform), you’ll need to follow a few additional steps. See Running Django on Jython for details.
You can verify that Python is installed by typing python from your shell; you should see something like:
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Set up a database ¶
If you installed Python 2.5 or later, you can skip this step for now.
If not, or if you'd like to work with a "large"database engine like PostgreSQL, MySQL, or Oracle, consult the database installation information .
Remove any old versions of Django ¶
If you are upgrading your installation of Django from a previous version, you will need to uninstall the old Django version before installing the new version .
Install Django ¶
You've got three easy options to install Django:
Always refer to the documentation that corresponds to the version of Django you're using!
If you do either of the first two steps, keep an eye out for parts of the documentation marked new in development version. That phrase flags features that are only available in development versions of Django, and they likely won't work with an official release.
Verifying ¶
To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django:
>>> import django
>>> print django.get_version()
1.3
That's it! ¶
That's it -- you can now move onto the tutorial .
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Java - PDF 문서에서 목록을 만드는 방법순서가 지정된 목록(예: 번호 매기기 목록), 순서가 지정되지 않은 목록(예: 글머리 기호 목록) 및 중첩 목록입니다. 이 기사에서는 을 사용하여 Java에서 번호 매기기 목록, 글머리 기호 목록 및 다단계 목록을 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.