On Mon, 2008-08-18 at 20:04 +0200, Fernando Rodríguez wrote: > El lun, 18-08-2008 a las 12:49 -0500, Norman Harman escribió: > > > > > I'm fairly certain the space indicates an urls came from an "include". > > The spaces are not really part of regex. > > OK > > > > > > In latter case career would be word > > > > > > Your urls should be like this: > > (r'^(?P<career>[-\w]+)/$', career_list), > > (r'^jss/(?P<jss>[-\w]+)/$', jss_list), > > I don't understand this part. Since the patterns in the app urls.py will > become a suffix of the pattern in the project's urls.py
It looks like you might be making an assumption that the patterns are concatenated. This isn't correct. The patterns in resume_templates.urls will be applied to the suffixes of the URLs matching resumes (after the first matched portion is removed). It's not the case that the reg-exp patterns are joined together and then applied as a single thing. Django first matches /resumes/, sees that it matches and then passes control to the next piece of the resolver (resume_templates.urls). Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---