D
D
Denis Startsev2016-02-13 00:42:07
Django
Denis Startsev, 2016-02-13 00:42:07

Database data not showing?

With this function - views:

def blog(request):
    article = Blog.manager.all()
    context = {
        'blog': article
    }
    return render_to_response ('my_blog.html', context)

only the name of the object [Blog: First article] is displayed in the my_blog.html template without data

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question