上一页 1 ··· 4 5 6 7 8
摘要: 打开settings.py,在底部添加: import os STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(os.path.dirname(__file__), '../static/').replace('\\','/'), ) 阅读全文
posted @ 2020-09-08 16:00 def_Class 阅读(1240) 评论(0) 推荐(0)
摘要: 目前能够提供Web网络服务的程序有 IIS、 Nginx和 Apache等。其中,IIS (Internet Information Services,互联网信息服务)是 Windows系统中默认的 Web服务程序。但是,IIS只能在 Windows系统中使用。 Apache(音译为阿帕奇)是世界使 阅读全文
posted @ 2020-08-11 15:38 def_Class 阅读(1034) 评论(0) 推荐(0)
摘要: 基本的创建与查询 # -*- coding: utf-8 -*- from django.http import HttpResponse from TestModel.models import Test """# 数据库操作--新建数据 def testdb(request): test1 = 阅读全文
posted @ 2020-08-04 10:52 def_Class 阅读(204) 评论(0) 推荐(0)
摘要: 1配置 vsftpd-3.0.2-27.el7.x86_64 阿里云 centos 7.0 2 ftp工作模式 2.1 ftp通道 ftp工作会启动两个通道: 控制通道,数据通道 在ftp协议中,控制连接均是由客户端发起的,而数据连接有两种模式:port模式(主动模式)和pasv(被动模式) 2.2 阅读全文
posted @ 2020-07-31 18:20 def_Class 阅读(502) 评论(0) 推荐(0)
摘要: 1.首先远程连接到服务器 2.打开服务器管理器 3添加角色和功能 4、安装类型:选择基于角色或基于功能的安装 →服务器角色:从服务器池中选择服务器 5、服务器角色选择Web服务器(iis) 6、功能选择NET Framework3.5全选 然后确认并安装,等待安装完成进行下一步。 7、服务管理器的工 阅读全文
posted @ 2020-07-28 15:13 def_Class 阅读(11070) 评论(1) 推荐(3)
摘要: Django 模型是与数据库相关的,与数据库相关的代码一般写在 models.py 中,Django 支持 sqlite3, MySQL, PostgreSQL等数据库,只需要在settings.py中配置即可,不用更改models.py中的代码,丰富的API极大的方便了使用。 1. 新建项目和应用 阅读全文
posted @ 2020-07-23 19:28 def_Class 阅读(242) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8