Re: custom template tags with a raw query

2010-06-16 Thread Cole743
The first link I had seen and used. My custom query works, I had just been having issues with the tags. I had been through the docs and seen a different one on tags, but apparently passed over the one you posted in the link. It filled in some of the gaps I was missing, thanks. Very helpful. -- Yo

Re: custom template tags with a raw query

2010-06-15 Thread Vasil Vangelovski
To use custom SQL see this for reference: http://docs.djangoproject.com/en/dev/topics/db/sql/ To create a templatetag see this for reference: http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ On Mon, Jun 14, 2010 at 10:08 PM, Cole743 wrote: > Hello again, > > My last question

custom template tags with a raw query

2010-06-14 Thread Cole743
Hello again, My last question may have been unclear, so I'm going to be more specific. I want to use the results of this: cursor.execute("SELECT * from sp_getreport(""varchar"" %s)", [usr]) (or something similar) In a custom template tag to display in a template. The results of the query are: a