Re: RFC: Composite fields API

2011-05-13 Thread onelson
I'm not that familiar with GFK's and how they work in django, but I just wanted to check... Will we have (non-generic) FK support for this, or is that another can-o-worms that won't get touched for some time? Regards, Owen -- You received this message because you are subscribed to the Google

Re: Django urls in JavaScript

2011-03-24 Thread onelson
I might also add the script could literally be something that is created via a management command and served via staticfiles. -- 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@googlegrou

Re: Django urls in JavaScript

2011-03-24 Thread onelson
"dynamic" is a bit strong, but yes. A generated js script that, based on the regex in your urlpatterns, provides functions that plug vars into url templates... so yeah! A lot of the resolving logic wouldn't (read "shouldn't") be needed so long as unique names are used for the views. -- You rec

Re: Django urls in JavaScript

2011-03-24 Thread onelson
Somewhat incomplete thought there -- once the urlpatterns have been analyzed, the resulting chunk of generated js can be cached (where ever) and served up statically, or inline in your templates. -- You received this message because you are subscribed to the Google Groups "Django developers" g

Re: Django urls in JavaScript

2011-03-24 Thread onelson
Url patterns don't tend to change at runtime, right? I don't think resolving urls one by one via ajax calls is going to work. Reimplementing the resolve/reverse mechanisms in javascript - or better yet, using the "native" resolve/reverse code to generate javascript functions that take args based