Hey ,

content is a dictionary , use key value pair and return it . Use if endif
or block in template , to render it accordingly .

I couldn't get ur question properly , but i can help u , if necessary we
can have any webex or skype .

On 4 Jan 2020 20:09, "nrupesh08" <nrupes...@gmail.com> wrote:

hi,
I design cms design on the company profile website.
5 pages on the website:
 index, about, services, projects, contact.

the problem is,
to display easily DB to frontend expect index page. because. all mixed
retrieve DB. just main or sample of the display index page. like., about,
service, project and contact.

like,.: def index(request):
content = {}
return render(request, 'index.html', {})

I want, like return values
 def index(request):
    content = {
       about, services(4 services displayed), projects(2 project
displayed), contact
    }
     return render(request, 'index.html', {})


but, *how to so many return values in one function?*

please help me.

-- 
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/django-users/915fc8da-b03f-4404-8007-803e520f68fe%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/915fc8da-b03f-4404-8007-803e520f68fe%40googlegroups.com?utm_medium=email&utm_source=footer>
.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABCeVgw2VQ3YBSydAb3WJFF%2B--8RMhO-yhXdPb24La7Cg3TMwQ%40mail.gmail.com.

Reply via email to