Build your personal blogging system based on the Dragonboard 410c server series

2021-11-18 03:05:33

I. Introduction

I believe that everyone who visits a variety of blogs will more or less vomit some blunt settings of the blog system, especially the creators who write their own blogs, and love the editing system of the blog background articles. Also hate ~! The bloggers feel the same and feel whim, why not build their own blog system? So, this article came into being! (Basic environment construction can refer to the blogger "Dragonboard410c server series" article)

Second, the main code analysis

Code framework

Figure 1 code framework

2. Code sharing

2.1.myapp/views.py

#coding=utf-8
From django.shortcuts import render
From blog.models import BlogsPost
From django.shortcuts import render_to_response
# Create your views here.
Def index ( request ):
Blog_list = BlogsPost . objects . all ()
Return render_to_response ( 'index.html' ,{ 'blog_list' : blog_list })

2.2.myapp/models.py

From django.db import models
From django.contrib import admin
# Create your models here.
Class BlogsPost ( models . Model ):
TItle = models . CharField ( max_length = 150 )
Body = models . TextField ()
TImestamp = models . DateTImeField ()
Class BlogPostAdmin ( admin . ModelAdmin ):
list_display = ( 'TItle', ' timestamp')
admin. site. register (BlogsPost, BlogPostAdmin)
Third, the effect of the actual measurement

Figure 2 blog login page

Figure 3 blog background system

Figure 4 blog writing background

Fourth, the routine to share:

http://pan.baidu.com/s/1eRCqG5k

Home Appliances Wire

Home Appliances Wire

We supply rigorous UL standard electronics wires used in internal wiring of home appliances and electrical equipment such as air conditioner, humidifier, washing machine, fridge, rice cooker, microwave etc. Insulations include PVC, SXL(XLPVC), silicone rubber and FEP with the heat resistance from 176°F(80°C) to 392°F (200°C). Feyvan electronics has carried R&D on covering materials for many years, even some special Insulation materials such as TPE, TPU, insects prevention and rats prevention, our engineers have much experience to provide professional solutions for you.


Home Appliances Wire,Electrical Panel Wiring,Home Wiring,Home Electrical Wiring

Feyvan Electronics Technology Co., Ltd. , https://www.fv-cable-assembly.com

Post navigation

Previous Post: The artificial intelligence that is in the limelight will repeat the mistakes of VR last year? →

Next Post: GE Lighting makes concessions to Chinese distributors, and three measures properly handle the transition period →

Home

Recent Posts

  • TCL TV D50A810 U disk installation…
  • Guangdong will implement a special…
  • Deputy Minister of Industry and In…
  • HTC Vive Trakcer developers apply …
  • What is the outcome of the Sanshen…
  • Can use the micro-letter landing f…
  • The Second Single Source Announcem…
  • Automatic speech recognition chip …
  • Mill Technology introduces a devel…
  • Xilinx Programmable Logic Device D…
  • TV Industry Situation Analysis and…
  • # Original innovator # COOLERMASTE…
  • Sharp marketing new game offers th…
  • Patching another three years - AMD…
  • Xilinx Programmable Logic Device D…
  • Really out of stock? Apple AirPods…
  • Affordable Design Millet Wins 7 Ge…
  • GRVI Phalanx implements a thousand…
  • "Soft" defines the speci…
  • The artificial intelligence that i…