D
D
Dauren S2016-03-07 08:53:37
Django
Dauren S, 2016-03-07 08:53:37

Django print received data from database?

In viewe, I wrote a function that takes data from the table
def show_form_cat(request,url):
category=Category.objects.get(url__exact=url)
Question: how to print the data that I received from the database without sending it to the template? because when I do print gives an error that there is no return to the template

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-03-07
@vintello

Why can't a template be a printable?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question