On Tue, Mar 17, 2009 at 9:03 PM, PaulE <p.e.mccullo...@gmail.com> wrote:
> > Malcolm, > > Thanks for the quick reply. > Problem solved - after reading your reply. > I changed > (r'^cms/(.*)', include('cms.urls')), > to > (r'^cms/', include('cms.urls')), > and it works fine. > > I still don't quite understand because this *admin* url works fine > http://localhost:8000/admin/ > when I have this pattern > (r'^admin/(.*)', admin.site.root), > Isn't the regex saying take all characters except a newline? > I doubt there is anything special about admin urls. > > Oh wait - I think I see - the whole regex strips away what matches? > So if my URL is > http://localhost:8000/cms/first-story/ > This regex r'^cms/(.*)' strips away "cms/first-story/" > and there is nothing left - thereftroe we see > arguments '()' and keyword arguments '{}' not found. > > Do I have that at least a bit right? > Many thanks. > PaulE > > > > Unfortunately before the 1.1 development version(that is to say in 1.0) the admin urls were indeed special, in the sense that they didn't include another URLconf as you're doing with the CMS urls, what they did was they sent all the URLs to a single view and that view dispatched to other views. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---