I'm not quite clear on what you're asking, but if the issue is how to write a regex for slugs: The regular expression you need for slugs is *[\w\d\-]+*
Hope that helps. Daniel --------------------------- Daniel Lathrop On Wed, Jul 7, 2010 at 9:32 AM, Rodion Raskolnikiv <noah...@gmail.com>wrote: > Greetings! > I am trying to implement a very simple (yet elegant) solution for a > university departmental website in django. In designing my urls, I > desired to have them follow this pattern: > university.edu/department/page_title_made_into_slug > > However, I couldn't get it working or find any doc that pointed out > how to do it, so I temporarily settled for: > univeristy.edu/1/14 (where 1 is the department ID and 14 is the > page ID) > > > This is how I have my URLs set up right now: > (r'^$', project.app.views.index'), > (r'^(?P<unit_id>\d+)/$', 'project.app.views.unit_page'), > > I have not actually set the pages to display yet, I thought that I > would ask here before I did that ... > > > Could anyone direct me to a solution so that I could have my URLs the > way that I want them? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.