On 2016-09-16 09:30, Curtis Maloney wrote:
On 15/09/16 16:37, Curtis Maloney wrote:
Somewhere I have code to provide a "parse" based URL router.

Will dig it up now 1.10 has has shipped

Ah, found it...

So, here is a gist of a sample of using parse
(https://pypi.org/project/parse/) instead of regex.

https://gist.github.com/funkybob/3d90c57a837bc164d8b402a1c5b95a8b

Since you can register extra type names, and those types can cast also,
it covers a lot of things some people expect [but don't get] from regex.

This look great, thanks for sharing!

Would love to see casting like this included in Sjoerds library.

/Emil

--
You received this message because you are subscribed to the Google Groups "Django 
developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/29c4afc5-5969-a7ad-ed39-73e08b991d88%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to