Hi Bruno,

> url(r'(?P<category_slug>[a-z-]+)/news/$', "news.views.by_category"),
>  url(r'(?P<category_slug>[a-z-]+)/galleries/$', 
> "galleries.views.by_category"),

Ah, ok, thanks, I had tried that and run into a problem. I'll go back
and check why that didn't work, as if that's possible that's great.


> Note that if your project is well designed, the dependancies between
> categories and contents should be inverted so categories knows about
> contents,...
> NB : one of the first things I usually do when starting a new django
> project is to create a project-specific app where I can put all the
> code that's specific to the project (templatetags, urls, custom views
> etc).

I've /sort/ of got that with a 'categories' module that contains the
categorisations and miscellaneous stuff that ties other things
together, but I'll keep that in mind.

Thanks for your help,

-Alastair

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to