Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread ratnadeep ray
So what should be the correction in my case? -- 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 o

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread Durai pandian
I can see typo in adding 'fusioncharts.*context_processors*.get_result', isn't it context_processor ? if there is no typo, please check; if you have any row data by printing it. On Tue, May 26, 2020 at 10:44 PM Daniel Roseman wrote: > On Tuesday, 26 May 2020 17:27:13 UTC+1, Aboyeji Solomon Ade

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread Daniel Roseman
On Tuesday, 26 May 2020 17:27:13 UTC+1, Aboyeji Solomon Adeleke wrote: > > Yes, import the get_result from the context_process.py This is entirely wrong. The point of a context processor is that it is automatically added to the template context. You shouldn't be importing it or calling it speci

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread Aboyeji Solomon Adeleke
Yes, import the get_result from the context_process.py -- 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 di

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread ratnadeep ray
So for this we have to import the model of context_process ? -- 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 t

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread Aboyeji Solomon Adeleke
Your context should be written this way response_context = get_result(request) On Tuesday, May 26, 2020 at 2:26:35 PM UTC+1, ratnadeep ray wrote: > > Hi all, > > I am trying to display the value from the context_process.py file to the > template. > > The content of my context_process.py is as f

Re: How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread Aboyeji Solomon Adeleke
response_context = { } On Tuesday, May 26, 2020 at 2:26:35 PM UTC+1, ratnadeep ray wrote: > > Hi all, > > I am trying to display the value from the context_process.py file to the > template. > > The content of my context_process.py is as follows: > > from fusioncharts.models import QRC_DB >

How to retrieve the values from the context_process.py file to template?

2020-05-26 Thread ratnadeep ray
Hi all, I am trying to display the value from the context_process.py file to the template. The content of my context_process.py is as follows: from fusioncharts.models import QRC_DB from django.db import connection def get_result(request): > cursor = connection.cursor() > pattern =