Re: return jquery json variable to template variable

2009-05-12 Thread Dan Mallinger
So it's late and I may be missing the point, but it looks like you're mixing up the time of execution for some items... It seems like you're trying to set a template variable equal to the result of a json call and then subsequently use it for something. I can only think of two scenarios here: 1.

Re: simpletag to accumulate media without duplicates

2009-05-09 Thread Dan Mallinger
Hi Margie, I'm not sure off the top of my head, but if memory serves me right, template tags may not allow variable number of parameters. I'd take a look at the code from the {% url %} template tag, it's syntax allows for multiple variables, but they're passed in a very particular way. It's actu

Re: print_r() in Django & SQL debug output

2009-05-02 Thread Dan Mallinger
Hi Okto, I feel confident saying that Malcolm knows the ins and outs of Django far better than I do :) But, for what it's worth, I really like the logging package here: http://code.google.com/p/django-logging/wiki/Overview It's super easy and reasonably powerful. And if you install Sphinx, it'll

Re: Dynamic app_label

2009-03-23 Thread Dan Mallinger
0, 2009 at 8:21 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Fri, 2009-03-20 at 11:38 -0400, Dan Mallinger wrote: > > Thanks Malcolm. I'll try and look into this when I have a little > > time. It would be nice to be able to contribute > > By

Re: Dynamic app_label

2009-03-20 Thread Dan Mallinger
Thanks Malcolm. I'll try and look into this when I have a little time. It would be nice to be able to contribute Cheers, Dan On Thu, Mar 19, 2009 at 6:38 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Thu, 2009-03-19 at 12:53 -0700, Dan wrote: > > Hi all, > > > > Is there a w

Re: newbie problem -- import django fails

2009-03-02 Thread Dan Mallinger
It sounds like it's still the problem of django-admin.py not being in your path. In order to script a file like this from any directory, the os needs to know about the script - which is done by adding it to your path. On Unix, we generally make links to these files in /usr/local, on Windows, you c