Re: Django how get Post details using slug

2020-07-04 Thread arman hossain
please try On Sat, Jul 4, 2020 at 9:38 AM Tanni Seriki wrote: > Thanks sir, I will make changes. > I really appreciate your time and effort in helping me out with this > Thanks > > On Fri, Jul 3, 2020, 11:14 PM coolguy > wrote: > >> One more thing. if your view code is indented exactly the way

Re: Django how get Post details using slug

2020-07-03 Thread Tanni Seriki
Thanks sir, I will make changes. I really appreciate your time and effort in helping me out with this Thanks On Fri, Jul 3, 2020, 11:14 PM coolguy wrote: > One more thing. if your view code is indented exactly the way it is in the > provided then you need to fix the indentation of > > def post_d

Re: Django how get Post details using slug

2020-07-03 Thread coolguy
One more thing. if your view code is indented exactly the way it is in the provided then you need to fix the indentation of def post_details_view(request, post): This should be under class SearchResultsViews() like this... class SearchResultsViews(ListView): model = Post template_name

Re: Django how get Post details using slug

2020-07-03 Thread coolguy
if the new urls is the main url then its not correctly setup. you have to mention the app name Let assume you are app name 'student' in your project. So the main urls.py will have it as follow: path('students/', include(students.urls), This way you are telling Django to handover all the requ

Re: Django how get Post details using slug

2020-07-03 Thread Tanni Seriki
Please let me know if you have seen the file. Am sorry am sending it to you as file, my phone is malfunctioning On Fri, Jul 3, 2020, 9:49 PM Tanni Seriki wrote: > Sir here it's all the project, currently my phone camera has fault please > help me out. > > On Fri, Jul 3, 2020, 9:23 PM coolguy >

Re: Django how get Post details using slug

2020-07-03 Thread Tanni Seriki
Sir here it's all the project, currently my phone camera has fault please help me out. On Fri, Jul 3, 2020, 9:23 PM coolguy wrote: > I am away at this time but can you send the project urls.py screen shot as > well. > > On Friday, July 3, 2020 at 4:09:01 PM UTC-4, Tanni Seriki wrote: >> >> Here

Re: Django how get Post details using slug

2020-07-03 Thread coolguy
I am away at this time but can you send the project urls.py screen shot as well. On Friday, July 3, 2020 at 4:09:01 PM UTC-4, Tanni Seriki wrote: > > Here is my WhatsApp number > +2348095594236 > Please I really need to solve this out > > On Fri, Jul 3, 2020, 9:07 PM Tanni Seriki > wrote: > >> C

Re: Django how get Post details using slug

2020-07-03 Thread Tanni Seriki
Coolguy Please can we chat on WhatsApp... The post details is really giving me headache, please help out On Fri, Jul 3, 2020, 9:04 PM coolguy wrote: > Seems pretty simple unless you have specific question about something. > > You have a model which has some fields including Slug field which shou

Re: Django how get Post details using slug

2020-07-03 Thread Tanni Seriki
Here is my WhatsApp number +2348095594236 Please I really need to solve this out On Fri, Jul 3, 2020, 9:07 PM Tanni Seriki wrote: > Coolguy > Please can we chat on WhatsApp... > The post details is really giving me headache, please help out > > On Fri, Jul 3, 2020, 9:04 PM coolguy > wrote: > >>

Re: Django how get Post details using slug

2020-07-03 Thread coolguy
Seems pretty simple unless you have specific question about something. You have a model which has some fields including Slug field which should be unique i.e. unique=True but your screen shot is not clear.. In views you are overriding the get_queryset() method of base class and assigning it to