django-selector

Django URLs helper based on WSGI selector
Download

django-selector Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Jason Moiron
  • Publisher web site:
  • http://dev.jmoiron.net/hg/

django-selector Tags


django-selector Description

Django URLs helper based on WSGI selector django-selector is a custom URL pattern parser plugin for Django that is based off of Luke Arno's Selector for WSGI. It is designed to simplify the writing and reading of url patterns by providing recipes for frequently used patterns. django-selector's parser ignores classic regex based url patterns, so if you require the flexibility of regexes you needn't jump through registration hoops for a one-off url pattern. Using these named patterns in your urls.py clarifies what they are matching as well as how they are matching it: patterns('foo.views', (r'^/(?P+)/(?Pd*.?d+)/$', 'index', {}, 'foo-index'))becomes: parser.patterns('foo.views', (r'/{name:slug}/{foos:number}/', 'index', {}, 'foo-index'))You can install django-selector with pip: pip install johnny-cacheYou can fork django-selector from its hg repository: hg clone http://dev.jmoiron.net/hg/django-selectorYou can also read the full current development documentation or the release documentation. Requirements: · Python · Django


django-selector Related Software