Git Product home page Git Product logo

my-blog-python3-webapp's Introduction

my-blog-python3-webapp

这个项目是学完廖雪峰官方网站python教程后的结课项目练习。这个博客项目没有选用Django,Flask这样的框架,很多模块都是自己开发,比如Orm,过滤器,路由器,web框架,配置文件等。所以第一遍结束后实在是一知半解,仅能根据后台Log日志记录,大致理解代码的执行流程和处理逻辑。不过后来学习了Django,又练习了小米商城项目后。再回头看理解的好多了。而且也认识到不用框架比用框架能学到更多东西。 由于廖老师的课程是很久之前写的,所以部分代码已经不适用。 下面是和教程代码稍有区别的几点:

  • 一:协程写法从@asyncio.coroutine + yield from 换成 async和await。
  • 二:from aiohttp import web 的app运行写法变了从srv = yield from loop.create_server(app.make_handler(), '127.0.0.1', 9000)换成
    runner = web.AppRunner(app) await runner.setup() site = web.TCPSite(runner, '127.0.0.1', 8000) await site.start()
  • 三:部分html页面的标签属性有所更改,不然页面显示不出来。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.