当前位置: 代码迷 >> 综合 >> django搭建 - 本地服务器设置与配置
  详细解决方案

django搭建 - 本地服务器设置与配置

热度:78   发布时间:2024-02-07 01:05:31.0

流程目录


确认已经安装完成的软件

搭建Django基础框架

编写配置文件

创建第一个应用

DEBUG为FALSE时的静态文件调整

网站小图标显示

静态文件显示

创建数据库

数据库基本操作

管理页面设计

URL


1 确认已经安装完成的软件

1-1 确认python

直接使用cmd 命令 python 来确认是否安装和对应的版本号

C:\Users\30818>python
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

1-2 确认数据库

C:\Users\30818>mysql -uroot -p
Enter password: ********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 8.0.21 MySQL Community Server - GPL

准备数据库绑定