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
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
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
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
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
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
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
>
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 =
8 matches
Mail list logo