Hi Malcolm,

Everything's working. I'm still getting used to setting up routes in
Django, but overall I'm extremely impressed with this framework!

Thanks for your help,
Brandon

On Apr 18, 10:18 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2008-04-18 at 08:11 -0700, Brandon Taylor wrote:
>
> [...]
>
> > urlpatterns = patterns('staff',
>
> This "prefix" has nothing to do with the prefix of the URL. It's
> something that is used when you specify the view function as a string
> (it's the prefix put at the start of the import path in that case).
> Basically, get rid of it in your case.
>
> >     (r'^/$', list_detail.object_list, groups),
> >     (r'^(?P<slug>[-\w]+)/$', list_detail.object_detail, employee),
> > )
>
> > Is this syntax correct? I keep getting a 404 when I try to view the
> > detail for an Employee. I have a slug field on the Employee, and am
> > constructing the link using get_absolute_url and the URL sytnax is
> > correct, emitting: /staff/my-slug/.
>
> The /staff/ bit is incorrect. You will either need to change the pattern
> or use simply /my-slug/ with the pattern you have.
>
> Regards,
> Malcolm
>
> --
> Honk if you love peace and quiet.http://www.pointy-stick.com/blog/
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to