Re: Multi return values in single function

2020-01-04 Thread V.K. Vanama
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 webp

Re: Multi return values in single function

2020-01-04 Thread Evil Kunt
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" wrote: hi, I design cms desi

Re: Multi return values in single function

2020-01-04 Thread Motaz Hejaze
# show us your models.py def index(request): content = { about:'about', serv1:'serv1', serv2:'serv2', serv3:'serv3', serv4:'serv4', project1:'project1', project2:'project2', contact:'contact', } return render(request, 'index.html'

Re: Multi return values in single function

2020-01-04 Thread Eduardo Cervantes
Sorry bud, Your english is a little rough around the edges so that be part of the barrier. good luck. https://eddyizm.github.io/resume/ On Sat, Jan 4, 2020 at 8:02 AM N Rupesh wrote: > I think , you don't understand my problem > > On Sat, Jan 4, 2020, 8:23 PM Muhammed Rafi A > wrote: > >> r

Re: Multi return values in single function

2020-01-04 Thread N Rupesh
I think , you don't understand my problem On Sat, Jan 4, 2020, 8:23 PM Muhammed Rafi A wrote: > return render(request, 'index.html', content) > > > On Sat, Jan 4, 2020, 8:09 PM nrupesh08 wrote: > >> hi, >> I design cms design on the company profile website. >> 5 pages on the website: >> index,

Re: Multi return values in single function

2020-01-04 Thread Eduardo Cervantes
I think I understand what you mean but it would be helpful, at least to me, to see some code and possibly a mock up of your intended UI. Cheers, Eduardo https://eddyizm.github.io/resume/ On Sat, Jan 4, 2020, 06:38 nrupesh08 wrote: > hi, > I design cms design on the company profile website. > 5

Re: Multi return values in single function

2020-01-04 Thread Muhammed Rafi A
return render(request, 'index.html', content) On Sat, Jan 4, 2020, 8:09 PM 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 pag

Multi return values in single function

2020-01-04 Thread nrupesh08
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, p