Re: Dynamic URLs or creating querysets from your URL paths.

2011-10-31 Thread Kurtis Mullins
Sure you could do that. It's called using XML Transformations (XSLT), Javascript Templatating Engines, or a number of other approaches. Django does this with its Template Engine. The reason this isn't completely ran on the Client-Side is because it would be slower, difficult to cache, and

Re: Dynamic URLs or creating querysets from your URL paths.

2011-10-31 Thread Timmy O'Mahony
The more I think about this the more I realize that what I'm talking about IS exactly a REST api. If I write a phone app, I will code all the presentation layer locally on the phone (client-side) and use json/xml to dynamically fetch data from the server. Why isn't this the same for

Dynamic URLs or creating querysets from your URL paths.

2011-10-31 Thread Timmy O'Mahony
I'm creating a CMS using django-cms and some custom plugins. Everytime I do this I get sick or writing the same views time and time again. Quick example, I have a *Project* model that can have one or more * Categories*, *Tags* and *Clients:* * * class Project(...) categories =