Re: URL evaluates to 'slug' literally instead of the variable slug

2022-12-20 Thread Michael Starr
No reply yet, so bump. On Friday, December 16, 2022 at 5:51:14 PM UTC-8 Michael Starr wrote: > I hope someone is still subscribed to this post. I had another question... > > I looked up your link, about context dictionary, presumably to modify the > value returned by the function, like you said,

Re: URL evaluates to 'slug' literally instead of the variable slug

2022-12-16 Thread Michael Starr
I hope someone is still subscribed to this post. I had another question... I looked up your link, about context dictionary, presumably to modify the value returned by the function, like you said, to add the pets to it. I don't know what to loop or iterate over to get all the pets, first off. I

Re: URL evaluates to 'slug' literally instead of the variable slug

2022-12-15 Thread Michael Starr
Sorry for that crass, asinine comment. I had a flare up of my condition. Thank you all for the help. Mike On Sunday, December 11, 2022 at 4:32:04 PM UTC-8 Michael Starr wrote: > It's poorly written and mine isn't. Am I better than them. > > On Monday, December 5, 2022 at 6:36:30 AM UTC-8 elvisa..

Re: URL evaluates to 'slug' literally instead of the variable slug

2022-12-11 Thread Michael Starr
It's poorly written and mine isn't. Am I better than them. On Monday, December 5, 2022 at 6:36:30 AM UTC-8 elvisa...@gmail.com wrote: > Good !😁 > > Le dim. 4 déc. 2022 à 22:04, Michael Starr a > écrit : > >> Thank you, Peter. I forgot to acknowledge your contribution. >> >> On Wednesday, Novemb

Re: URL evaluates to 'slug' literally instead of the variable slug

2022-11-30 Thread Michael Starr
Thank you. Though, that hard codes everything, which is bad. How do I generalize it? Also, this worked. I had to specify template_name = pet_profile.html in the pet detail view. On 11/30/22 7:15 AM, Ryan Nowakowski wrote: On Tue, Nov 29, 2022 at 06:35:25PM -0800, Michael Starr wrote: *home

Re: URL evaluates to 'slug' literally instead of the variable slug

2022-11-30 Thread peteru mimo
Make your urls patterns at pet app path('pet/', pet_views.PetDetailView.as_view(), name='pet_details'),] On Wednesday, November 30, 2022 at 2:52:36 PM UTC+1 mi...@spinningcow.xyz wrote: > Code is first, query is last (below). Thanks in advance. > > > *home directory urls.py* > from django.co

URL evaluates to 'slug' literally instead of the variable slug

2022-11-30 Thread Michael Starr
Code is first, query is last (below). Thanks in advance. *home directory urls.py* from django.contrib import admin from django.urls import path,include from . import views urlpatterns = [ path("admin/", admin.site.urls, name='admin'), path("", views.Home.as_view(), name="home"), path