- 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.
- 物聯(lián)網(wǎng)識(shí)別技術(shù)
- 物聯(lián)網(wǎng)安全與深度學(xué)習(xí)技術(shù)
- 計(jì)算機(jī)網(wǎng)絡(luò)與數(shù)據(jù)通信
- 計(jì)算機(jī)網(wǎng)絡(luò)安全實(shí)訓(xùn)教程(第二版)
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(shì)(2021—2023)
- Getting Started with Grunt:The JavaScript Task Runner
- 物聯(lián)網(wǎng)之霧:基于霧計(jì)算的智能硬件快速反應(yīng)與安全控制
- WordPress Web Application Development
- SAE原理與網(wǎng)絡(luò)規(guī)劃
- 通信十年:擁抱互聯(lián)網(wǎng)
- 網(wǎng)管第一課:網(wǎng)絡(luò)操作系統(tǒng)與配置管理
- 深入理解Nginx:模塊開發(fā)與架構(gòu)解析
- 新IP:面向泛在全場(chǎng)景的未來(lái)數(shù)據(jù)網(wǎng)絡(luò)
- 互聯(lián)網(wǎng)視覺設(shè)計(jì)(全彩慕課版)
- 網(wǎng)絡(luò)設(shè)備配置與調(diào)試項(xiàng)目實(shí)訓(xùn)