提交显示属性错误,请问这个怎么解决呢
我的views.py文件
from django.shortcuts import render from django.http import HttpResponse from . import models def index(request): articles = models.Article.objects.all() return render(request,'blog/index.html',{'articles':articles}) def article_page(request,article_id): article = models.Article.objects.get(pk=article_id) return render(request,'blog/article_page.html',{'article':article}) def edit_page(request): return render(request,'blog/edit_page.html') def edit_action(request): title = request.POST.get('title','TITLE') content = request.POST.get('content','CONTENT') models.article.objects.create(title=title,content=content) articles = models.Article.objects.all() return render(request,'blog/index.html',{'articles':articles})