I often see people claiming their backend is implemented in Django, but isn't Django supposed to be for the frontend? I'd assume the backend refers to the business logic where the frontend refers to the presentation. Am I missing something?

解决方案

Neither.

Django is a framework, not a language. Python is the language in which Django is written.

Django is a collection of Python libs allowing you to quickly and efficiently create a quality Web application, and is suitable for both frontend and backend.

However, Django is pretty famous for its "Django admin", an auto generated backend that allows you to manage your website in a blink for a lot of simple use cases without having to code much.

More precisely, for the front end, Django helps you with data selection, formatting, and display. It features URL management, a templating language, authentication mechanisms, cache hooks, and various navigation tools such as paginators.

For the backend, Django comes with an ORM that lets you manipulate your data source with ease, forms (an HTML independent implementation) to process user input and validate data and signals, and an implementation of the observer pattern. Plus a tons of use-case specific nifty little tools.

For the rest of the backend work Django doesn't help with, you just use regular Python. Business logic is a pretty broad term.

You probably want to know as well that Django comes with the concept of apps, a self contained pluggable Django library that solves a problem. The Django community is huge, and so there are numerous apps that do specific business logic that vanilla Django doesn't.

python主要用于后端开发还是前端,Django是用于前端还是后端?相关推荐

  1. Python后端开发(主Django)面试题

    最近两个后端同事离职了,帮忙面试了些后端开发的实习生,虽然有过一些后端经验,但我不是主要写后端的,复习了下Django也稍微准备了一些主要是Django相关的面试题,数据库相关部分额外,没有在此举出, ...

  2. python微信小程序后端开发_使用django开发微信小程序后端

    tips: 本文面向的对象是已经会使用django开发web后端的人员 微信小程序后端与普通web的区别 微信小程序的后端开发和普通的restful API 大致上相同,只不过要注意以下几点限制 必须 ...

  3. 电脑端京东的我的订单html+css页面_什么是前端和后端开发?写给即将迈入前端开发领域的朋友...

    引言 不太清楚前端和后端是什么意思? 您是否想学习更多关于编程技术的知识,但又不确定从哪里开始?一个好的开始是了解前端开发和后端开发之间的区别. 一些专业的技术术语可能会令人困惑. 但请不用担心,我们 ...

  4. Vue 合同模板_【开源】后端开发也很容易上手的前端框架模板

    作为一个后端开发,说实话每次看到vue,react等等框架都头大.看着很漂亮,但是我这三脚猫的前端水平真是玩不转啊. 今天发现了一个bootstrap的前端模板框架.对我来说友好多了.和Thymele ...

  5. 【计算机就业-后端开发工程师】校招想去互联网公司担任后端开发工程师该怎么准备

    前言 hello大家好,我本次分享的主题是计算机专业校招想去互联网公司担任后端开发工程师该怎么准备,比如说计算机专业投什么岗,笔试面试需要准备什么.我将结合自己以及身边小伙伴们的秋招经历来进行简要的分 ...

  6. java后端语言,后端开发语言哪一种比较好?后端开发语言比较

    网络开发语言是一种编程语言,用于支持并维系一个网站的建设,使用一个高级合理的编辑语言,能够帮助您更快的进行网络建设开发.然而,在网络建设时,网络建设开发师常常为了选择哪一种网络开发语言而发愁,下面小编 ...

  7. python动态网页开发教程_python django创建一个属于自己的动态网站

    您如何开始使用Python创建网站?好吧,你可以自己完成所有工作,并编写一个在Web服务器上运行的程序,接受页面请求并以HTML和其他资源的形式提供响应.然而,这是很多工作,那么为什么在有大量现有工具 ...

  8. python 全栈开发,Day79(Django的用户认证组件,分页器)

    一.Django的用户认证组件 用户认证 auth模块 在进行用户登陆验证的时候,如果是自己写代码,就必须要先查询数据库,看用户输入的用户名是否存在于数据库中: 如果用户存在于数据库中,然后再验证用户 ...

  9. python 全栈开发,Day84(django请求生命周期,FBV和CBV,ORM拾遗,Git)

    一.django 请求生命周期 流程图: 1. 当用户在浏览器中输入url时,浏览器会生成请求头和请求体发给服务端 请求头和请求体中会包含浏览器的动作(action),这个动作通常为get或者post ...

最新文章

  1. 曙光高性能集群系统管理员手册(链接)
  2. 推荐系统--基于用户的协同过滤算法
  3. vue-cli3项目优化首页加载过慢的一些心得
  4. Java的Socket编程
  5. Redis之 介绍和安装
  6. 数码媒体前股东向华视传媒提告状讼
  7. 转载:详解C中volatile关键字
  8. tensorflow2.0内存溢出解决办法
  9. 拥抱SQLAlchemy 之二 拉拉手,我请你去看电影~
  10. Java判断奇数和偶数。
  11. 云计算与云原生 — OpenShift 部署实践
  12. 二级分销系统对企业来说意味着什么?
  13. 思科路由器、交换机的远程登录配置
  14. imx6ull 以太网
  15. 国产步进电机驱动芯片TMI8420,可pin to pin​替代DRV8825
  16. 网易数据运河系统 NDC 设计与应用
  17. 时钟分频原理 - 时钟分频原理详解
  18. spring学习--------AOP的实现
  19. vue element datepicker八小时时间差
  20. 【19】核心易中期刊推荐——人工智能 | 遥感信息处理

热门文章

  1. js-new、object.create、bind的模拟实现【转载备忘】
  2. 删除mysql的root用户恢复方法
  3. Java加密与解密笔记(三) 非对称加密
  4. Oracle安装部署之rhel 5.8下静默安装oracle11gr2
  5. 面向初级 Web 开发人员的 Tomcat
  6. 测试算法(性能)的工具类
  7. 通过PDO 连接SQL Server
  8. ubuntu8.10家庭使用(一)
  9. HijackThis日志细解【简明教程增强版】(五)
  10. golang 随机数 实现