Re: Django urls in JavaScript

2011-03-24 Thread Marco Louro
That's also already done, check https://github.com/django-extensions/django-extensions/blob/master/django_extensions/management/commands/show_urls.py, it can be easily converted to JSON (I have a branch that does it, but it's not up-to-date). I also have the urls module in JavaScript already, but

Django urls in JavaScript

2011-03-17 Thread Marco Louro
I don't really know how to approach this issue the best way, so I'm just going to be direct, I'd love to see Django provide support for django.core.urlresolvers.reverse (at least) on the client (in JavaScript). I'm pretty sure all who have needed to make AJAX queries have dealt with the issue of

Re: Proposal: {% include_partial %} template tag

2010-06-08 Thread Marco Louro
Just that having a tag that > clears the context sounds fishy to me... > > All the best, > >     - Gabriel > > On Jun 7, 10:52 am, Marco Louro <mlo...@gmail.com> wrote: > > > > > I'd prefer extending the {% include %} tag actually, but didn't of > > th

Re: Proposal: {% include_partial %} template tag

2010-06-07 Thread Marco Louro
will fail. On Jun 7, 5:35 pm, Łukasz Rekucki <lreku...@gmail.com> wrote: > On 7 June 2010 18:13, Jacob Kaplan-Moss <ja...@jacobian.org> wrote:> On Mon, > Jun 7, 2010 at 5:03 AM, Marco Louro <mlo...@gmail.com> wrote: > > >> I'd like to propose adding a ta

Proposal: {% include_partial %} template tag

2010-06-07 Thread Marco Louro
Hi all, I'd like to propose adding a tag that includes a template with clean context, but can accept parameters that will be added to that context. The use-cases are plenty, but I've been using it mostly with forms, as it helps to keep the template code DRY and very customizable. We could use

Re: Multi-DB Week 0 Update

2009-05-29 Thread Marco Louro
Hey Alex, Not sure if this is the right place, but I guess you're the right person to ask.. Will Multi-BD be flexible enough that it will allow to choose a DB at runtime, depending on something like the user or the domain and not tied to models at all? From what I've read that's not possible

Generic relations and Multi-table inheritance bug?

2009-01-02 Thread Marco Louro
Hi, The easiest way to explain this is with code I guess: http://dpaste.com/104502/ These are the models for a contact management application. Basicly I have a "Contact Model", which is used to hold details for both the "Person" and "Company" Models. On the "Contact Model" I have some generic