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
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
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
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
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
>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
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/
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']
>
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
9 matches
Mail list logo