Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-26 Thread Ogunsanya Opeyemi
Ok good job 

You can email me directly for any issue.
ogunsanyaopeye...@gmail.com

On Friday, June 26, 2020, ratnadeep ray  wrote:

> Hi Ogunasya,
>
> I tried that but still that's not working. After some research and
> analysis, I realized the issue is not with the urls but with the html file.
> When I am trying to direct to the url in the href via drop-down only, the
> error is coming. But if we I am trying to access the same url via table, it
> is working fine.
>
> So to summarize:
> *Working: *
> {{ver}}
>
>
> *Non-working: *
> {{ver}}
>
> Can you please suggest what is going wrong ? How can we reach the method
> 'process_data' using dropdown ?
>
> On Thursday, 25 June 2020 12:08:12 UTC+5:30, Ogunsanya Opeyemi wrote:
>>
>> Also include in your URL before your urlpatterns
>>
>> app_name=yourappname
>>
>>
>> And in your template URL  write
>> {% url 'yourappname:process_data' ver %}
>>
>>
>>
>> And if you still have issues send the update you made and let me check.
>>
>> On Thursday, June 25, 2020, ratnadeep ray  wrote:
>>
>>> Hi Ogunsanya,
>>>
>>> I have added that line of code but still getting the same error.
>>>
>>> So what can be done next ?
>>>
>>> On Thursday, 25 June 2020 00:25:17 UTC+5:30, Ogunsanya Opeyemi wrote:


 Yes
 On Wednesday, June 24, 2020, ratnadeep ray  wrote:

> So I need to add this also:
>
>
>
> urlpatterns = [
> ...
> ...
> path('process_data/', views.process_data, name='process_data'),
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5c62826f-a652
> -43c3-a89e-29cf1855a9f8o%40googlegroups.com.
>


 --
 OGUNSANYA OPEYEMI

 --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/bb999e9e-5fd9-45ec-9a59-86e3ed9b6454o%40goo
>>> glegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> OGUNSANYA OPEYEMI
>>
>> --
> 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/db746050-5807-4b00-847f-3c3077faccb2o%
> 40googlegroups.com
> 
> .
>


-- 
OGUNSANYA OPEYEMI

-- 
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/CABJxPrH_tpo_0os%3DrkpVKqf31eA_4QKuwfRGdbCRU4r5Bp2ftw%40mail.gmail.com.


Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-26 Thread ratnadeep ray
Hi Ogunasya, 

I tried that but still that's not working. After some research and 
analysis, I realized the issue is not with the urls but with the html file. 
When I am trying to direct to the url in the href via drop-down only, the 
error is coming. But if we I am trying to access the same url via table, it 
is working fine. 

So to summarize: 
*Working: *
{{ver}}


*Non-working: *
{{ver}}

Can you please suggest what is going wrong ? How can we reach the method 
'process_data' using dropdown ? 

On Thursday, 25 June 2020 12:08:12 UTC+5:30, Ogunsanya Opeyemi wrote:
>
> Also include in your URL before your urlpatterns 
>
> app_name=yourappname
>
>
> And in your template URL  write
> {% url 'yourappname:process_data' ver %}
>
>
>
> And if you still have issues send the update you made and let me check.
>
> On Thursday, June 25, 2020, ratnadeep ray  > wrote:
>
>> Hi Ogunsanya, 
>>
>> I have added that line of code but still getting the same error. 
>>
>> So what can be done next ? 
>>
>> On Thursday, 25 June 2020 00:25:17 UTC+5:30, Ogunsanya Opeyemi wrote:
>>>
>>>
>>> Yes
>>> On Wednesday, June 24, 2020, ratnadeep ray  wrote:
>>>
 So I need to add this also:



 urlpatterns = [
 ...
 ...
 path('process_data/', views.process_data, name='process_data'),

 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/5c62826f-a652-43c3-a89e-29cf1855a9f8o%40googlegroups.com
 .

>>>
>>>
>>> -- 
>>> OGUNSANYA OPEYEMI
>>>
>>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/bb999e9e-5fd9-45ec-9a59-86e3ed9b6454o%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> OGUNSANYA OPEYEMI
>
>

-- 
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/db746050-5807-4b00-847f-3c3077faccb2o%40googlegroups.com.


Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-25 Thread Ogunsanya Opeyemi
Look at your index path it is not written very well in the name you wrote
name=') without closing the apstorphe ' and request a url purely in your
template href like this href="process_data/{{ver}}".
And let me know wether it worked or not.

On Thursday, June 25, 2020, ratnadeep ray  wrote:

> Hi Ogunsanya,
>
> Now I added the same as per your suggestion. Following is my urls.py
> contnent
>
> from django.urls import path
> from fusioncharts import views
> app_name = 'fusioncharts'
>
>
> urlpatterns = [
> path('push-data/', views.push_data, name='push-data'),
> path('home/', views.home, name='home'),
> path('display_data/', views.display_data, name=
> 'display_data'),
> path('index/', views.index, name=''),
> *path**('process_data/', views.process_data,
> name='process_data'),*
> ]
>
> And my template content (process_data.py)is as follows:
>
> 
> 
> 
> Home
> 
> 
>   
>   Index page
>   
>   Select the version to compare with
>   
>  Select version to compare with
>  {%for ver in version_list%}
>  
> {{ver}}
>  {% endfor %}
>   
>   
>   The current version{{version}}
>   
>   
>   
> 
> 
>
>
> But now I am getting the following error:
>
> Page not found (404)
> Request Method: GET
> Request URL: http://127.0.0.1:8000/index/11.5.1.18900-96
> http://127.0.0.1:8000/index/11.5.1.18900-97
>
>
> Using the URLconf defined in Piechart_Excel.urls, Django tried these URL
> patterns, in this order:
> admin/
> push-data/ [name='push-data']
> home/ [name='home']
> display_data/ [name='display_data']
> index/
> process_data/ [name='process_data']
>
> The current path, index/11.5.1.18900-96, didn't match any of these.
>
>
> Can you suggest now what's going wrong ?
>
>
>
> On Thursday, 25 June 2020 12:08:12 UTC+5:30, Ogunsanya Opeyemi wrote:
>>
>> Also include in your URL before your urlpatterns
>>
>> app_name=yourappname
>>
>>
>> And in your template URL  write
>> {% url 'yourappname:process_data' ver %}
>>
>>
>>
>> And if you still have issues send the update you made and let me check.
>>
>> On Thursday, June 25, 2020, ratnadeep ray  wrote:
>>
>>> Hi Ogunsanya,
>>>
>>> I have added that line of code but still getting the same error.
>>>
>>> So what can be done next ?
>>>
>>> On Thursday, 25 June 2020 00:25:17 UTC+5:30, Ogunsanya Opeyemi wrote:


 Yes
 On Wednesday, June 24, 2020, ratnadeep ray  wrote:

> So I need to add this also:
>
>
>
> urlpatterns = [
> ...
> ...
> path('process_data/', views.process_data, name='process_data'),
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5c62826f-a652
> -43c3-a89e-29cf1855a9f8o%40googlegroups.com.
>


 --
 OGUNSANYA OPEYEMI

 --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/bb999e9e-5fd9-45ec-9a59-86e3ed9b6454o%40goo
>>> glegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> OGUNSANYA OPEYEMI
>>
>> --
> 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/14aca6b8-8bc9-455a-b3c6-de0c8740a9a7o%
> 40googlegroups.com
> 
> .
>


-- 
OGUNSANYA OPEYEMI

-- 
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/CABJxPrFiYvmQRZ68VRPZ2Xio2mbfJ4UChDy6Aw9snko8SXhegA%40mail.gmail.com.


Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-25 Thread ratnadeep ray
Hi Ogunsanya,

Now I added the same as per your suggestion. Following is my urls.py 
contnent

from django.urls import path
from fusioncharts import views
app_name = 'fusioncharts'


urlpatterns = [
path('push-data/', views.push_data, name='push-data'),
path('home/', views.home, name='home'),
path('display_data/', views.display_data, name=
'display_data'),
path('index/', views.index, name=''),
*path**('process_data/', views.process_data, 
name='process_data'),*
]

And my template content (process_data.py)is as follows: 




Home


  
  Index page
  
  Select the version to compare with
  
 Select version to compare with
 {%for ver in version_list%}
 
{{ver}}
 {% endfor %}
  
  
  The current version{{version}}
  
  
  




But now I am getting the following error: 

Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/index/11.5.1.18900-96
http://127.0.0.1:8000/index/11.5.1.18900-97


Using the URLconf defined in Piechart_Excel.urls, Django tried these URL 
patterns, in this order:
admin/
push-data/ [name='push-data']
home/ [name='home']
display_data/ [name='display_data']
index/
process_data/ [name='process_data']

The current path, index/11.5.1.18900-96, didn't match any of these.


Can you suggest now what's going wrong ? 



On Thursday, 25 June 2020 12:08:12 UTC+5:30, Ogunsanya Opeyemi wrote:
>
> Also include in your URL before your urlpatterns 
>
> app_name=yourappname
>
>
> And in your template URL  write
> {% url 'yourappname:process_data' ver %}
>
>
>
> And if you still have issues send the update you made and let me check.
>
> On Thursday, June 25, 2020, ratnadeep ray  > wrote:
>
>> Hi Ogunsanya, 
>>
>> I have added that line of code but still getting the same error. 
>>
>> So what can be done next ? 
>>
>> On Thursday, 25 June 2020 00:25:17 UTC+5:30, Ogunsanya Opeyemi wrote:
>>>
>>>
>>> Yes
>>> On Wednesday, June 24, 2020, ratnadeep ray  wrote:
>>>
 So I need to add this also:



 urlpatterns = [
 ...
 ...
 path('process_data/', views.process_data, name='process_data'),

 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/5c62826f-a652-43c3-a89e-29cf1855a9f8o%40googlegroups.com
 .

>>>
>>>
>>> -- 
>>> OGUNSANYA OPEYEMI
>>>
>>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/bb999e9e-5fd9-45ec-9a59-86e3ed9b6454o%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> OGUNSANYA OPEYEMI
>
>

-- 
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/14aca6b8-8bc9-455a-b3c6-de0c8740a9a7o%40googlegroups.com.


Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-25 Thread Ogunsanya Opeyemi
Also include in your URL before your urlpatterns

app_name=yourappname


And in your template URL  write
{% url 'yourappname:process_data' ver %}



And if you still have issues send the update you made and let me check.

On Thursday, June 25, 2020, ratnadeep ray  wrote:

> Hi Ogunsanya,
>
> I have added that line of code but still getting the same error.
>
> So what can be done next ?
>
> On Thursday, 25 June 2020 00:25:17 UTC+5:30, Ogunsanya Opeyemi wrote:
>>
>>
>> Yes
>> On Wednesday, June 24, 2020, ratnadeep ray  wrote:
>>
>>> So I need to add this also:
>>>
>>>
>>>
>>> urlpatterns = [
>>> ...
>>> ...
>>> path('process_data/', views.process_data, name='process_data'),
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/5c62826f-a652-43c3-a89e-29cf1855a9f8o%40goo
>>> glegroups.com.
>>>
>>
>>
>> --
>> OGUNSANYA OPEYEMI
>>
>> --
> 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/bb999e9e-5fd9-45ec-9a59-86e3ed9b6454o%
> 40googlegroups.com
> 
> .
>


-- 
OGUNSANYA OPEYEMI

-- 
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/CABJxPrGsZfvjER6zE%2BjARn_9Z971Kxru5e4f-Mx8%2BY%3D4UWhxng%40mail.gmail.com.


Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-24 Thread ratnadeep ray
Hi Ogunsanya, 

I have added that line of code but still getting the same error. 

So what can be done next ? 

On Thursday, 25 June 2020 00:25:17 UTC+5:30, Ogunsanya Opeyemi wrote:
>
>
> Yes
> On Wednesday, June 24, 2020, ratnadeep ray  > wrote:
>
>> So I need to add this also:
>>
>>
>>
>> urlpatterns = [
>> ...
>> ...
>> path('process_data/', views.process_data, name='process_data'),
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/5c62826f-a652-43c3-a89e-29cf1855a9f8o%40googlegroups.com
>> .
>>
>
>
> -- 
> OGUNSANYA OPEYEMI
>
>

-- 
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/bb999e9e-5fd9-45ec-9a59-86e3ed9b6454o%40googlegroups.com.


Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-24 Thread Ogunsanya Opeyemi
Yes
On Wednesday, June 24, 2020, ratnadeep ray  wrote:

> So I need to add this also:
>
>
>
> urlpatterns = [
> ...
> ...
> path('process_data/', views.process_data, name='process_data'),
>
> --
> 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/5c62826f-a652-43c3-a89e-29cf1855a9f8o%
> 40googlegroups.com.
>


-- 
OGUNSANYA OPEYEMI

-- 
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/CABJxPrGyk-VAJkgqHPUe6BHuQALQjZQ1Lh0a086%2B4Z6WX7eARQ%40mail.gmail.com.


Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-24 Thread ratnadeep ray
So I need to add this also:



urlpatterns = [
...
...
path('process_data/', views.process_data, name='process_data'),

-- 
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/5c62826f-a652-43c3-a89e-29cf1855a9f8o%40googlegroups.com.


Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-24 Thread Ogunsanya Opeyemi
You do not have a URL for process_data that you want to access, that is why
it is saying no valid view name process_data

On Wednesday, June 24, 2020, ratnadeep ray  wrote:

> Hi all,
>
> Any comment on this?
>
> --
> 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/852e2f1b-fcfc-43a9-b098-9170579a8f56o%
> 40googlegroups.com.
>


-- 
OGUNSANYA OPEYEMI

-- 
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/CABJxPrH%2Bw7M10dNL0T1McLHYEBvikzJGH4Age%3DTfnthABR7xTQ%40mail.gmail.com.