Simon - These are GREAT!!! Ideas. The regular expression based URL dispatching replacement has been something I personally have been thinking about for some time. I would be interested in helping with this If you put together a proposal. One URL implementation worth considering is "Routes" ( http://routes.groovie.org ). I have used Routes for web applications and I think it is easy to grok. Have you taken a look at Routes?
BobJ On Nov 30, 7:50 pm, Simon Willison <[EMAIL PROTECTED]> wrote: > On Nov 30, 6:33 am, "Adrian Holovaty" <[EMAIL PROTECTED]> wrote: > > > What am I forgetting? > > It's probably too big a feature to start talking about now, but I'd be > really interested in seeing Django applications (in particular the > URLconf part) unified with the concept of a Django view, so a Django > application is a callable that takes a request object and returns a > response - and in fact an entire Django deployment can be boiled down > to that. This has a number of advantages: > > 1. At the moment, middleware applies globally to the whole site. This > is bad: often you'll want a piece of middleware to apply just to one > or two of the applications that a site is composed of. If views and > applications (and projects) had a unified API then middleware could be > redefined to apply at any level of the stack. View middleware wouldn't > make so much sense here, but Request and Response middleware would. > 2. We always said that the regular expression based URL dispatching > should be replaceable by other methods if required. Having url > dispatch as just another view function would give us that for free. > I'd love to have a simpler alternative to the regexp method that is > more friendly for developers who haven't fully grokked regular > expression syntax yet. > > If there's enough interest in the DEP idea I'd be happy to write up > this proposal more formally. > > Cheers, > > Simon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---