<https://lh3.googleusercontent.com/-ZnGByfaViuc/WcBhnZL3gTI/AAAAAAAAAFw/iFCbcbGo5uoR-4wwfNeag-MvJ_Y0Q8CmACLcBGAs/s1600/Screenshot%2B%25285%2529circled.png>
Edit.... this is the middle screen shot with the part circled that I have a 
question about.

On Monday, September 18, 2017 at 4:49:41 PM UTC-7, Manches spainspots wrote:
>
>      Sorry to be a bother, this probably has a quick easy answer that I am 
> just not seeing. 
> The template code that calls the url:
>
> <p><a href={% url 'my_tree_view' focus_pk= 0 tree_user_pk=request.user.pk 
> %}> My Tree</a></p>
>
> The idea here is to construct a tree view that can focus on any Person 
> object in my model, and database, based on pk of the Person you want to 
> center on.
> This is the base case, which calls the tree view for the user themselves, 
> and is handled in the views.py under the def block for my_tree_view.
>
> My problem is in the url call from the template.
>
> In my system, right now there is only one user, me... at request.user.pk
> =1.
>
> This sends the url to http://localhost:8000/kin/my_tree/view/0/1/
>
> url.py has the following:
>
> appname="kin"
>
> urlpatterns = [
> ...
>     
> url(r'^kin/my_tree/view/(?P<focus_pk>[0-9]+)/(?P<tree_user_pk>[0-9]+)/$', 
> my_tree_view, name='my_tree_view'),
> ...
>     ]
>
> Again, this worked for several days, then yesterday, stopped working.
>
> Attached are screen shots of the error page. I can see where the focus_pk 
> loses the value '0' and suddenly becomes focus_pk = ''
> It looks like the **kwargs are not being passed correctly here. 
>
>
> <https://lh3.googleusercontent.com/-4zlRxgMeIiE/WcBBmrJNGaI/AAAAAAAAAFY/cIDeMuVRdrAXLT3Kcpm-rEBJpQ-hGLZxACLcBGAs/s1600/Screenshot%2B%25284%2529.png>
>
>
> <https://lh3.googleusercontent.com/-If9LoM8Mr50/WcBBtWlYgiI/AAAAAAAAAFc/Nv2ywz84cgwGw3qvUBPiFPWKKRB9BExFQCLcBGAs/s1600/Screenshot%2B%25285%2529.png>
>
>
> <https://lh3.googleusercontent.com/-btx0hfhFQYs/WcBBwAsCr2I/AAAAAAAAAFg/1cJnLe8HoS09QyyeKUJzqCFd2bZsjfw7gCLcBGAs/s1600/Screenshot%2B%25286%2529.png>
>
> Be the first to help a newb understand!!! Thanks in advance!
>
>
>
>    1. 
>    
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0c8dd768-fdd0-42f4-9892-5b8604eecf88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to