Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Python-100-Days
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huangkq
Python-100-Days
Commits
8c75922e
Commit
8c75922e
authored
Feb 15, 2019
by
jackfrued
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新了部分文档
parent
74c92de6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
14 deletions
+24
-14
03.静态资源和Ajax请求.md
Day41-55/03.静态资源和Ajax请求.md
+0
-3
15.单元测试和项目上线.md
Day41-55/15.单元测试和项目上线.md
+3
-0
15.测试和部署.md
Day41-55/15.测试和部署.md
+0
-4
README.md
README.md
+21
-7
No files found.
Day41-55/03.静态资源和Ajax请求.md
View file @
8c75922e
...
...
@@ -244,7 +244,6 @@ STATIC_URL = '/static/'
首先修改项目的urls.py文件,为“好评”和“差评”功能映射对应的URL,跟上面一样我们在URL中使用了占位符语法来绑定讲师的编号。
```
Python
from django.contrib import admin
from django.urls import path
...
...
@@ -263,7 +262,6 @@ urlpatterns = [
设计视图函数
`make_comment`
来支持“好评”和“差评”功能,可以通过
`json`
模块的
`dumps`
函数实现将字典转成JSON字符串并作为
`HttpResponse`
返回给浏览器的内容。在创建
`HttpResponse`
对象时,可以通过
`content_type`
参数来指定响应的
[
MIME类型
](
http://www.w3school.com.cn/media/media_mimeref.asp
)
为JSON且使用UTF-8编码(避免JSON字符串中的中文出现乱码)。
```
Python
def make_comment(request, no):
ctx = {'code': 200}
try:
...
...
@@ -284,7 +282,6 @@ def make_comment(request, no):
修改模板页引入jQuery库来实现事件处理、Ajax请求和DOM操作。
```
HTML
<!DOCTYPE html>
{% load staticfiles %}
<html lang="en">
...
...
Day41-55/15.单元测试和项目上线.md
0 → 100644
View file @
8c75922e
## Django 2实战15:单元测试和项目上线
Day41-55/15.测试和部署.md
deleted
100644 → 0
View file @
74c92de6
## Django 2实战15:测试和部署
README.md
View file @
8c75922e
...
...
@@ -227,11 +227,21 @@
#### Day47 - [日志和缓存](./Day41-55/07.日志和缓存.md)
#### Day48 - [文件上传](./Day41-55/08.文件上传.md)
#### Day48 - [文件上传
和富文本编辑
](./Day41-55/08.文件上传.md)
#### Day49
-50 - [RESTful架构和应用](./Day41-55/09-10.RESTful架构和应用
.md)
#### Day49
- [文件下载和报表](./Day41-55/09.文件下载和报表
.md)
#### Day51-55 - [项目实战](./Day41-55/11-15.项目实战.md)
#### Day50 - [RESTful架构和DRF入门](./Day41-55/10.RESTful架构和DRF入门.md)
#### Day51 - [RESTful架构和DRF进阶](./Day41-55/11.RESTful架构和DRF进阶.md)
#### Day52 - [使用缓存](./Day41-55/12.使用缓存.md)
#### Day53 - [短信和邮件](./Day41-55/13.短信和邮件.md)
#### Day54 - [异步任务和定时任务](./Day41-55/14.异步任务和定时任务.md)
#### Day55 - [单元测试和项目上线](./Day41-55/15.单元测试和项目上线.md)
-
项目开发流程和相关工具
-
生成非HTML内容
...
...
@@ -242,7 +252,7 @@
### Day56~65 - [Flask实战](./Day56-65)
#### Day56 - [
安装和入门](./Day56-65/01.安装和
入门.md)
#### Day56 - [
Flask入门](./Day56-65/01.Flask
入门.md)
#### Day57 - [模板的使用](./Day56-65/02.模板的使用.md)
...
...
@@ -298,15 +308,19 @@
#### Day85 - [回归分析](./Day76-90/10.回归分析.md)
#### Day86~Day87 - [大数据分析](./Day76-90/11-12.大数据分析.md)
#### Day86 - [大数据分析入门](./Day76-90/11.大数据分析入门.md)
#### Day87 - [大数据分析进阶](./Day76-90/12.大数据分析进阶.md)
#### Day88 - [Tensorflow入门](./Day76-90/13.Tensorflow入门.md)
#### Day8
8~Day89 - [Tensorflow实战](./Day76-90/13-
14.Tensorflow实战.md)
#### Day8
9 - [Tensorflow实战](./Day76-90/
14.Tensorflow实战.md)
#### Day90 - [推荐系统](./Day76-90/15.推荐系统.md)
### Day91~100 - [团队项目开发](./Day91-100)
#### 第91天:
团队开发和项目选题
#### 第91天:
[团队开发和项目选题]()
1.
软件过程模型
-
经典过程模型(瀑布模型)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment