官术网_书友最值得收藏!

  • Django 2 by Example
  • Antonio Melé
  • 269字
  • 2021-06-25 21:18:57

Installing Django

If you have already installed Django, you can skip this section and jump directly to the Creating your first project section. Django comes as a Python package and thus can be installed in any Python environment. If you haven't installed Django yet, the following is a quick guide to install Django for local development.

Django 2.0 requires Python version 3.4 or higher. In the examples for this book, we will use Python 3.6.5. If you're using Linux or macOS X, you probably have Python installed. If you are using Windows, you can download a Python installer at https://www.python.org/downloads/windows/.

If you are not sure whether Python is installed on your computer, you can verify it by typing python in the shell. If you see something like the following, then Python is installed on your computer:

Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 03:03:55) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

If your installed Python version is lower than 3.4, or if Python is not installed on your computer, download Python 3.6.5 from https://www.python.org/downloads/ and install it.

Since you will use Python 3, you don't have to install a database. This Python version comes with a built-in SQLite database. SQLite is a lightweight database that you can use with Django for development. If you plan to deploy your application in a production environment, you should use an advanced database, such as PostgreSQL, MySQL, or Oracle. You can get more information about how to get your database running with Django at https://docs.djangoproject.com/en/2.0/topics/install/#database-installation.

主站蜘蛛池模板: 西贡区| 正安县| 沽源县| 阿勒泰市| 东至县| 大关县| 华蓥市| 高雄市| 富川| 九江县| 兖州市| 工布江达县| 盘山县| 柏乡县| 西贡区| 江北区| 洛浦县| 毕节市| 常宁市| 云梦县| 青川县| 琼中| 河曲县| 天全县| 涿鹿县| 察哈| 新野县| 武川县| 乌苏市| 荔浦县| 花莲县| 连城县| 固原市| 莱西市| 桃江县| 东城区| 成都市| 石林| 金寨县| 贵德县| 临海市|