Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
oh no, trying that ruined everything, now none of them work.  I tried 
again, and now "votes' works but "results" doesn't..  Again, is there 
anyone who knows this code?

On Friday, October 23, 2020 at 2:38:15 PM UTC-7 rbar...@xcaretresearch.com 
wrote:

> Someone suggest that I add "detail" to the urls.py code at path(' question.id>/", view detail, name="detail"
> But that ruins everything.
>
> On Friday, October 23, 2020 at 2:32:19 PM UTC-7 rbar...@xcaretresearch.com 
> wrote:
>
>> My guess is that the index url is supposed to return "detail," but, then, 
>> why even have that "detail" function in the code?  I think I have been 
>> spending too long on this and need to move.  I would appreciate it if 
>> anybody would explain this to me.  Adding "detail" to the functions just to 
>> provide a return message for the. index page seems odd. But if I take it 
>> out, I get an error message in the code and it won't run.  Hmmm.  I wish I 
>> understood this.
>>
>> On Friday, October 23, 2020 at 2:24:55 PM UTC-7 
>> rbar...@xcaretresearch.com wrote:
>>
>>>
>>> Oh my.  I figured it out partially.  I was not entering the url 
>>> correctly in address bar.  So, now, "results" and "votes" works but 
>>> "detail" doesn't.  However, "detail" returns when I just enter the basic 
>>> index url for a given question_id, it just doesn't work for "detail".  Is 
>>> it supposed to be that way.
>>> On Friday, October 23, 2020 at 2:18:11 PM UTC-7 
>>> rbar...@xcaretresearch.com wrote:
>>>
 Now I am in the situation where "votes" works but "detail" and 
 "results" does not work.  So weird.. Well, I just checked "votes" to make 
 sure it works and it doesn't.  "index works and takes me to "detail" 
 which, 
 according to the tutorial, is what it supposed to do.  Does anybody know 
 this code?

 On Wednesday, October 21, 2020 at 1:04:26 PM UTC-7 Kasper Laudrup wrote:

> Actually, I tried "votes" one more time and it did work. 
>
> On 10/21/20 12:02 PM, Kasper Laudrup wrote: 
> > Hi rbar, 
> > 
> > On 21/10/2020 20.34, rbar...@xcaretresearch.com wrote: 
> >> The error message shows that there is a match.  What am I doing 
> wrong? 
> > 
> > No, the error message shows you that there *isn't* a match: 
> > 
> >> 
> >> The current path, polls/3/detail, didn't match any of these. 
> >> 
> > 
> > Maybe change: 
> > 
> > path('/', views.detail, name='detail'), 
> > 
> > to: 
> > 
> > path('/detail', views.detail, name='detail'), 
> > 
> > The error message is quite clear and helpful, you probably just 
> didn't 
> > read it correctly. No worries, that can happen to all of us often 
> > enough :-) 
> > 
> > Hope that helps. 
> > 
> > Kind regards, 
> > 
> > Kasper Laudrup 
> > 
>
> -- 
> Cheers, 
>
> /Ralph 3.0/ 
>


-- 
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/80482765-13a1-4cec-b01a-f77b661d621en%40googlegroups.com.


Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
Someone suggest that I add "detail" to the urls.py code at 
path('/", view detail, name="detail"
But that ruins everything.

On Friday, October 23, 2020 at 2:32:19 PM UTC-7 rbar...@xcaretresearch.com 
wrote:

> My guess is that the index url is supposed to return "detail," but, then, 
> why even have that "detail" function in the code?  I think I have been 
> spending too long on this and need to move.  I would appreciate it if 
> anybody would explain this to me.  Adding "detail" to the functions just to 
> provide a return message for the. index page seems odd. But if I take it 
> out, I get an error message in the code and it won't run.  Hmmm.  I wish I 
> understood this.
>
> On Friday, October 23, 2020 at 2:24:55 PM UTC-7 rbar...@xcaretresearch.com 
> wrote:
>
>>
>> Oh my.  I figured it out partially.  I was not entering the url correctly 
>> in address bar.  So, now, "results" and "votes" works but "detail" doesn't. 
>>  However, "detail" returns when I just enter the basic index url for a 
>> given question_id, it just doesn't work for "detail".  Is it supposed to be 
>> that way.
>> On Friday, October 23, 2020 at 2:18:11 PM UTC-7 
>> rbar...@xcaretresearch.com wrote:
>>
>>> Now I am in the situation where "votes" works but "detail" and "results" 
>>> does not work.  So weird.. Well, I just checked "votes" to make sure it 
>>> works and it doesn't.  "index works and takes me to "detail" which, 
>>> according to the tutorial, is what it supposed to do.  Does anybody know 
>>> this code?
>>>
>>> On Wednesday, October 21, 2020 at 1:04:26 PM UTC-7 Kasper Laudrup wrote:
>>>
 Actually, I tried "votes" one more time and it did work. 

 On 10/21/20 12:02 PM, Kasper Laudrup wrote: 
 > Hi rbar, 
 > 
 > On 21/10/2020 20.34, rbar...@xcaretresearch.com wrote: 
 >> The error message shows that there is a match.  What am I doing 
 wrong? 
 > 
 > No, the error message shows you that there *isn't* a match: 
 > 
 >> 
 >> The current path, polls/3/detail, didn't match any of these. 
 >> 
 > 
 > Maybe change: 
 > 
 > path('/', views.detail, name='detail'), 
 > 
 > to: 
 > 
 > path('/detail', views.detail, name='detail'), 
 > 
 > The error message is quite clear and helpful, you probably just 
 didn't 
 > read it correctly. No worries, that can happen to all of us often 
 > enough :-) 
 > 
 > Hope that helps. 
 > 
 > Kind regards, 
 > 
 > Kasper Laudrup 
 > 

 -- 
 Cheers, 

 /Ralph 3.0/ 

>>>

-- 
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/7b3d9cf4-4452-4f23-a644-f3c2327d811fn%40googlegroups.com.


Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
My guess is that the index url is supposed to return "detail," but, then, 
why even have that "detail" function in the code?  I think I have been 
spending too long on this and need to move.  I would appreciate it if 
anybody would explain this to me.  Adding "detail" to the functions just to 
provide a return message for the. index page seems odd. But if I take it 
out, I get an error message in the code and it won't run.  Hmmm.  I wish I 
understood this.

On Friday, October 23, 2020 at 2:24:55 PM UTC-7 rbar...@xcaretresearch.com 
wrote:

>
> Oh my.  I figured it out partially.  I was not entering the url correctly 
> in address bar.  So, now, "results" and "votes" works but "detail" doesn't. 
>  However, "detail" returns when I just enter the basic index url for a 
> given question_id, it just doesn't work for "detail".  Is it supposed to be 
> that way.
> On Friday, October 23, 2020 at 2:18:11 PM UTC-7 rbar...@xcaretresearch.com 
> wrote:
>
>> Now I am in the situation where "votes" works but "detail" and "results" 
>> does not work.  So weird.. Well, I just checked "votes" to make sure it 
>> works and it doesn't.  "index works and takes me to "detail" which, 
>> according to the tutorial, is what it supposed to do.  Does anybody know 
>> this code?
>>
>> On Wednesday, October 21, 2020 at 1:04:26 PM UTC-7 Kasper Laudrup wrote:
>>
>>> Actually, I tried "votes" one more time and it did work. 
>>>
>>> On 10/21/20 12:02 PM, Kasper Laudrup wrote: 
>>> > Hi rbar, 
>>> > 
>>> > On 21/10/2020 20.34, rbar...@xcaretresearch.com wrote: 
>>> >> The error message shows that there is a match.  What am I doing 
>>> wrong? 
>>> > 
>>> > No, the error message shows you that there *isn't* a match: 
>>> > 
>>> >> 
>>> >> The current path, polls/3/detail, didn't match any of these. 
>>> >> 
>>> > 
>>> > Maybe change: 
>>> > 
>>> > path('/', views.detail, name='detail'), 
>>> > 
>>> > to: 
>>> > 
>>> > path('/detail', views.detail, name='detail'), 
>>> > 
>>> > The error message is quite clear and helpful, you probably just didn't 
>>> > read it correctly. No worries, that can happen to all of us often 
>>> > enough :-) 
>>> > 
>>> > Hope that helps. 
>>> > 
>>> > Kind regards, 
>>> > 
>>> > Kasper Laudrup 
>>> > 
>>>
>>> -- 
>>> Cheers, 
>>>
>>> /Ralph 3.0/ 
>>>
>>

-- 
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/62af1cd2-688c-423e-9ac8-c5fbc8710b23n%40googlegroups.com.


Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com

Oh my.  I figured it out partially.  I was not entering the url correctly 
in address bar.  So, now, "results" and "votes" works but "detail" doesn't. 
 However, "detail" returns when I just enter the basic index url for a 
given question_id, it just doesn't work for "detail".  Is it supposed to be 
that way.
On Friday, October 23, 2020 at 2:18:11 PM UTC-7 rbar...@xcaretresearch.com 
wrote:

> Now I am in the situation where "votes" works but "detail" and "results" 
> does not work.  So weird.. Well, I just checked "votes" to make sure it 
> works and it doesn't.  "index works and takes me to "detail" which, 
> according to the tutorial, is what it supposed to do.  Does anybody know 
> this code?
>
> On Wednesday, October 21, 2020 at 1:04:26 PM UTC-7 Kasper Laudrup wrote:
>
>> Actually, I tried "votes" one more time and it did work. 
>>
>> On 10/21/20 12:02 PM, Kasper Laudrup wrote: 
>> > Hi rbar, 
>> > 
>> > On 21/10/2020 20.34, rbar...@xcaretresearch.com wrote: 
>> >> The error message shows that there is a match.  What am I doing wrong? 
>> > 
>> > No, the error message shows you that there *isn't* a match: 
>> > 
>> >> 
>> >> The current path, polls/3/detail, didn't match any of these. 
>> >> 
>> > 
>> > Maybe change: 
>> > 
>> > path('/', views.detail, name='detail'), 
>> > 
>> > to: 
>> > 
>> > path('/detail', views.detail, name='detail'), 
>> > 
>> > The error message is quite clear and helpful, you probably just didn't 
>> > read it correctly. No worries, that can happen to all of us often 
>> > enough :-) 
>> > 
>> > Hope that helps. 
>> > 
>> > Kind regards, 
>> > 
>> > Kasper Laudrup 
>> > 
>>
>> -- 
>> Cheers, 
>>
>> /Ralph 3.0/ 
>>
>

-- 
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/ece222e7-2d0d-4cda-9e5e-032bb738f409n%40googlegroups.com.


Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
Now I am in the situation where "votes" works but "detail" and "results" 
does not work.  So weird.. Well, I just checked "votes" to make sure it 
works and it doesn't.  "index works and takes me to "detail" which, 
according to the tutorial, is what it supposed to do.  Does anybody know 
this code?

On Wednesday, October 21, 2020 at 1:04:26 PM UTC-7 Kasper Laudrup wrote:

> Actually, I tried "votes" one more time and it did work.
>
> On 10/21/20 12:02 PM, Kasper Laudrup wrote:
> > Hi rbar,
> >
> > On 21/10/2020 20.34, rbar...@xcaretresearch.com wrote:
> >> The error message shows that there is a match.  What am I doing wrong?
> >
> > No, the error message shows you that there *isn't* a match:
> >
> >>
> >> The current path, polls/3/detail, didn't match any of these.
> >>
> >
> > Maybe change:
> >
> > path('/', views.detail, name='detail'),
> >
> > to:
> >
> > path('/detail', views.detail, name='detail'),
> >
> > The error message is quite clear and helpful, you probably just didn't 
> > read it correctly. No worries, that can happen to all of us often 
> > enough :-)
> >
> > Hope that helps.
> >
> > Kind regards,
> >
> > Kasper Laudrup
> >
>
> -- 
> Cheers,
>
> /Ralph 3.0/
>

-- 
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/953ae50f-fc98-48e4-a123-c0cb77b918a4n%40googlegroups.com.


Custom attributes on Django models through mixins

2020-10-23 Thread Umang Sharan
Hi,

Stackoverflow link for all the details: https://stackoverflow.com/
questions/64485888/add-custom-attributes-to-django-models-through-mixins

Tl;dr - dynamically setting method attributes on models through mixin 
classes doesn't work as expected. Appreciate any help.

-- 
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/65da9010-6bfe-4d12-8613-ad9fd5026031n%40googlegroups.com.