当前位置:网站首页>电影推荐系统
电影推荐系统
2022-07-22 18:08:00 【yn20000227】
开发框架为 Django框架MTV模式+mySQL数据库+Navicat管理数据库
构建前端页面是用的HTML+css+js
Django框架的MTV模式:
M-model(数据处理层):model层,处理所有与数据相关的业务,和数据库进行交互,并提供数据的增删改查
V-View(业务逻辑层):处理具体的业务逻辑,实现Model层和Template层的连接
T-Template(模板层):处理页面的显示
Django中内嵌的ORM 实现了数据库的模块化操作:
在理清楚系统架构以后接着来看一下系统的响应过程,MTV模式即三个层级Model、Template、Views。以登录为例的话,我作为用户要登录系统,首先通过登录页面的form表格填写信息,点击登录以后浏览器对服务器发送request请求,通过指定的url在views层匹配对应的视图函数,然后通过model层与数据库进行交互,将取出来的数据返回到views层进行数据分析,如果用户名正确,密码也正确,在views层把数据返回给指定的template层模板页,该模板页就是HTML文件,返回给浏览器呈现给用户,这就是MTV模式的整个响应过程
边栏推荐
猜你喜欢

Detailed explanation of C language linked list & Implementation of two important linked lists

DOM - node operation (I)

What is DOM

day6_ Jigsaw puzzle follow-up - switch interface, random pictures and package exe

How to use fmetp steam V2 (I)

2021-10-25 Boostrap-treeview组件节点数目过多搜索后如何跳转?

OpenGL新建一个窗口

Freshman summer internship Day5_ two

C语言实现扫雷

GAMES104 B1+B2 引擎的结构与开发分层
随机推荐
游戏暂停
"Dial" out the number on the number of digits - a variety of ideas to achieve reverse output of a four digit number
leetcode
Super detailed - how to understand the expression while (scanf ("%d", & Num)! = EOF) in C language?
Do you want to have a robot that can make cartoon avatars in three steps?
How to use C language to realize headless one-way acyclic list single list?
Debug No2 按流程检查错误
二叉树 题目合集
Bubble sorting in C language
Code random notes_ Array_ 704 binary search
Unity camera picture making panorama | screenshot making panorama
Form validation and regular expressions (I)
Vrtk reactivates the scene, jumps to the scene handle, and the UI interaction function is lost
Application and grouping of regular expressions
C语言实现三子棋
Notes and reflection notes
Introduction to C language arrays, functions, operators, and keywords
Day7 summary of freshman Summer Internship
ImageView realizes zoom, pan and fling
配置基本Pico开发


