Re: No Reverse Match Exception

2017-12-17 Thread yingi keme
You nailed it james. It worked for me. The capitalization matters. Thanks James..!!! Yingi Kem > On 17 Dec 2017, at 12:14 PM, James Schneider wrote: > > > > > Update > > It gives the No Reverse Error. I dont seem to understand why > > Instead of User.id, try user.id, capitalization matter

Re: No Reverse Match Exception

2017-12-17 Thread James Schneider
Update It gives the No Reverse Error. I dont seem to understand why Instead of User.id, try user.id, capitalization matters. Trying not to confuse things, but in this instance you may instead want to use object.id, since you may be referring to a different User object than the one that is logg

Re: No Reverse Match Exception

2017-12-17 Thread James Schneider
On Dec 17, 2017 12:30 AM, "yingi keme" wrote: The problem is that, it works perfectly when i put the number on the template like this Update But when i do Update It gives the No Reverse Error. I dont seem to understand why Instead of User.id, try user.id, capitalization matters. {% url 'Up

Re: No Reverse Match Exception

2017-12-17 Thread yingi keme
So is there no way out? I am really confused how to go on with this Yingi Kem > On 17 Dec 2017, at 9:44 AM, Andréas Kühne wrote: > > > > 2017-12-17 9:35 GMT+01:00 pradam programmer : >> From this: >> Update >> Change to this: >> Update > > That will not work and isn't recommended. Everything

Re: No Reverse Match Exception

2017-12-17 Thread Andréas Kühne
2017-12-17 9:35 GMT+01:00 pradam programmer : > From this: > Update > Change to this: > Update > > That will not work and isn't recommended. Everything within {% %} is python code already, so you don't need to interpolate again. I don't even think that will work. Unfortunately I don't have any su

Re: No Reverse Match Exception

2017-12-17 Thread pradam programmer
>From this: Update Change to this: Update On 17-Dec-2017 2:00 PM, "yingi keme" wrote: > The problem is that, it works perfectly when i put the number on the > template like this > > Update > > But when i do > > Update > > It gives the No Reverse Error. I dont seem to understand why > > Yingi Kem

Re: No Reverse Match Exception

2017-12-17 Thread yingi keme
The problem is that, it works perfectly when i put the number on the template like this Update But when i do Update It gives the No Reverse Error. I dont seem to understand why Yingi Kem > On 16 Dec 2017, at 11:18 AM, Любопытный Енот wrote: > > try fix your pattern to > r'^/Core/UpdateMe/

Re: No Reverse Match Exception

2017-12-16 Thread Любопытный Енот
try fix your pattern to r'^/Core/UpdateMe/(?P\\d+)/$' суббота, 16 декабря 2017 г., 12:22:49 UTC+3 пользователь yingi keme написал: > > I am using the django generic UpdateView > > class UserUpdate(UpdateView): > model = User > fields = ['first_name', 'last_name', 'email', 'username'] >

No Reverse Match Exception

2017-12-16 Thread yingi keme
I am using the django generic UpdateView class UserUpdate(UpdateView): model = User fields = ['first_name', 'last_name', 'email', 'username'] template_name = 'Core\MyUpdate.htm' And my url pattern is this: url(r'^UpdateMe/(?P\d+)/$', UserUpdate.as_view(), name='Update') However, thi