소개
소개글이 비어있어요
게시글
질문&답변
2020.07.23
AttributeError: type object 'Post' has no attribute 'object' 에러
해결했슴다! 감사해요
- 0
- 4
- 3K
질문&답변
2020.07.23
AttributeError: type object 'Post' has no attribute 'object' 에러
views.py 입니다 from django.shortcuts import render from .models import Post # Create your views here. def index ( request ): posts = Post.object. all () return render ( request , 'blog/index.html' , { 'posts' : posts, } )
- 0
- 4
- 3K