django 初始命令
2024-10-13 11:25:27
1.安装django
pip3 install django
2、创建一个Django对象
django-admin.py startproject 项目名称
django-admin.py startproject mysite
3、创建一个应用
python3 manage.py startapp blog(应用名称)
4、启动Django项目
python3 manage.py runserver 8080
5.创建表命令;
进入应用 python3 manage.py makemigrations
python3 manager.py migrate
6.创建管理员
python3 manager.py createsuperuser 后根据提示输入要创建的管理员的账号邮箱等信息
最新文章
- 【转】What is an SDET? Part 2 – Skill Matrix of SDET
- 使用ASP.NET Web API 2创建OData v4 终结点
- 说说chrome上的JS调试
- Mysql 安装问题排查方法
- CreateFile,WriteFile,ReadFile
- swift入门-day02
- H TML5 之 (1) 初识HTML5
- A simple Gaussian elimination problem.
- 【nodejs】创建udp套接字的类型参数的含义
- ex3多类问题和NN中的前向传播
- Android 应用退到后台
- 笔记之monkey自定义脚本
- CF1139B Chocolates
- swift 实践- 01 -- UItableView的简单使用
- css写复选框
- Liunx Pwd
- R语言如何将字符串转变为命令执行
- Struck: Structured Output Tracking with Kernels
- nth-digit
- Calendar 中getActualMaximumd 功能
热门文章
- Redis具体解释
- Docker 安装和基础用法
- Unity应用架构设计(1)—— MVVM 模式的设计和实施(Part 2)
- Mybatis判断map参数是否存在
- 20.2.翻译系列:EF 6中基于代码的数据库迁移技术【EF 6 Code-First系列】
- 20.翻译系列:Code-First中的数据库迁移技术【EF 6 Code-First系列】
- mysql触发器详解 mysql触发器
- 织梦dedecms移动版设置二级域名的方法 织梦如何设置m.开头的域名
- Laravel 执行流程(一)之自动加载
- JavaScript系统对象