As per the instructions provided in the Django Documentation 3.0, you are restricted to get or generate only a single return value to each function defined in views.py. *Instead*, as you stated, the* solution to your issue* is that *creating hyperlinks in which the particular portion of the webpage or website will be redirected to. By specifying explicitly that in your case, "index.html" as the base to all other html files till you decide that your Django Project Creation is Succeeded.* I hope you understand.
I answered your question based on the title and issue posted by you. If you are familiar with my description, its cool. Else, better to upload an image containing the clear picture of communication conversations between the urls which depends on your issue/requirement. On Saturday, January 4, 2020 at 8:09:52 PM UTC+5:30, nrupesh08 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/0996f7f3-999e-45b0-b3cb-eb51b15be000%40googlegroups.com.