This chapter is accompanied by video tutorials :
One at a time APP The creation logic of the back view is basically the following three steps , In the later stage of development, all of them focus on these four steps !
1、 stay blog Create a templates Folder , Create a folder with the same name as the blog in this folder blog Template file for storing blog .
blog/templates/blog/index.html
2、 stay views.py Create blog home page view in index
def index(request):
return render(request, 'blog/index.html')
3、 stay blog Next create a urls.py file , Blog routes are mainly placed here
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name&