Malcolm Tredinnick wrote:
> On Fri, 2006-08-11 at 05:59 -0700, Tomas Jacobsen wrote:
> > > Is there an easy way to just drop the 'category_slug' the detail_view,
> > > or is it another/better way to do this?
> >
> > I missed a 'in' there:" just drop the 'category_slug' in* the
> > detail_view "
> >
> > Anyways, it seems like you got the idea.
> >
> > Im trying to modify the view you wrote for me for the category view.
> >
> > def detail_view(request, project_slug, category_slug = None):
> >     queryset = Project.objects.filter(project_slug = project_slug ,
> > category__slug = category_slug)
> >     context = {'project_slug': project_slug , 'category_slug':
> > category_slug}
> >     return object_detail(request, queryset, extra_context =
> > context)
> >
> > (Mind I don't have a clue what Im doing here, just trying things out,
> > that seems logic to me)
>
> Please step back from your project and spend a bit of time going through
> a Python tutorial and the Django tutorials. I really cannot write all
> your code for you in this thread.
>
> You don't seem to be taking the necessary time to understand the errors
> you are seeing -- whether they be thrown by Python or Djanog. I'm sorry,
> but this thread is 22 emails long already and I don't think I am really
> helping you to help yourself. So I am bowing out. Others may be able to
> help you further.
>
> Best wishes,
> Malcolm

No problem. Thank you for all your help! I really appreciate what you
have done. Without your help, I probably would have given up on django
a long time ago. I will try to read more of the tutorials, It's just
that it isen't that easy to find a tutorial that covers what Im trying
to do.

Best regards,
Tomas


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to