This article has participated in the “Digitalstar Project” and won a creative gift package to challenge the creative incentive money.

show

  • The whole project

Complete the project

  • Enter the large-format

  • The main panel

And on the left, I’m going to give you a little bit of space to add your own ICONS and show you some other features as you learn.

takeaway

Not only this blog system, but you can also learn here.Well this blog system we will be divided into several periods to demonstrate, teach you step by step to complete their own blog. Let’s start today’s fatology

Overall design pattern

So we’re using the classic design pattern MVC plus DAO and what’s MVC, just in case you don’t know, MVC pattern the MVC pattern stands for model-View-Controller pattern. This pattern is used for layered development of applications.

Model – A Model represents an object or JAVA POJO that accesses data. It can also have logic to update the controller as the data changes. View – A View represents a visualization of the data contained in the model. Controller (Controller) – Controllers act on models and views. It controls the flow of data to model objects and updates the view as the data changes. It separates the view from the model.Although the presentation is in Java, it does not affect the use of Python.

Back-end knowledge introduction

  • flask

Flask is used here in the body frame why is it used here? I have a previous article on the Flask framework that you might want to check out. I won’t go into the details here. Portal document link: Link

  • mysql

I don’t have to tell you that, you’ve probably all used it, but I’ve summarized some basic applications that you can use.Link portalHere we usepymysqlAs a driver for linked databases

  • Flask-SQLAlchemy

Flask-sqlalchemy is fun to use, easy to use for basic applications, and easy to scale for large projects. For complete guidance, see the API documentation for SQLAlchemy. It’s basically a mapping to the database that allows us to manipulate the database without having to write nativesqlstatementsThe document

  • flask_migrate

Flask-migrate is an extension that uses Alembic to handle the SQLAlchemy database migration of Flask applications. Database operations are provided through the Flask command line interface. This thing is also relatively simple and can be viewed through the documentation if necessary

  • flask_script

Flask-script: flask-script: flask-script: flask-script: flask-script: flask-script: Flask-script: Flask-script: Flask-script This includes running a development server, a custom Python command line, and script documentation links for database initialization, scheduled tasks, and other command-line tasks outside of web applications: links

Introduction to front-end knowledge

  • bootstrap

    Bootstrap makes front-end development faster and easier. Instantly accessible to all developers, adaptable to all devices, and applicable to all projects.

Document links:linkThe frame we use is perfect for beginnersjinjiaTemplates are like a tiger with wings added

  • jinjia

First of all, Jinjia is essentially embedded in HTML, so you’re still writing HTML files, but things like Flask transform the jinjia statements embedded in it into the corresponding HTML, which is the equivalent of a dynamic page. The basic grammar

<title>{% block title %}{% endblock %}</title>
<ul>
{% for user in users %}
  <li><a href="{{ user.url }}">{{ user.username }}</a></li>
{% endfor %}
</ul>
Copy the code

Start with documentation: links

  • jQuery

    JQuery is a fast, concise JavaScript framework, the next great JavaScript code base (framework) after Prototype, released by John Resig in January 2006. JQuery is designed to “write Less, Do More”, which is to write Less code and Do More things. It encapsulates common JavaScript functionality and provides a simple JavaScript design pattern that optimizes HTML document manipulation, event handling, animation design, and Ajax interaction.

You’ll probably also use the following basic syntax for HTML and JavaScript, which is pretty simple if you don’t

Finally said to the fat friend

I haven’t written Python in a couple of days and this one is just refreshing. Keep an eye on me for the Java and Python web. Finally or that sentence together fat learning, refueling