Template Tags and TemplateSyntaxError: - expected 'endblock' or 'endblock content'

2011-03-18 Thread Mazery Smith
newbie here, I'm running into a template syntax error where (as far as I can tell) there shouldn't be one (yes, I've loaded my tags file before I tried invoking my tag). I'm looking for help on how to debug it. I'm running Django trunk. I'm using template inheritance with a custom tag for paginati

Re: Template Tags and TemplateSyntaxError: - expected 'endblock' or 'endblock content'

2011-03-18 Thread Mazery Smith
Thanks Shawn, That's a good tip. I'll check when I get back home and give an update On Mar 18, 8:17 am, Shawn Milochik wrote: > Are you certain that your base template is structured properly? Check > for missing closing tags. > It may be that your template is correct but just inheriting a syntax

Re: Template Tags and TemplateSyntaxError: - expected 'endblock' or 'endblock content'

2011-03-18 Thread Mazery Smith
load a custom tag or filter library, the tags/filters are only made available to the current template -- not any parent or child templates along the template-inheritance path. """ On Mar 18, 8:36 am, Daniel Roseman wrote: > On Friday, March 18, 2011 2:48:31 PM UTC, Mazery Smith

Re: Template Tags and TemplateSyntaxError: - expected 'endblock' or 'endblock content'

2011-03-18 Thread Mazery Smith
Those all are good ideas DR (especially the last resort pyc b/c I heard that screws things up once in awhile) and I will try them when I get home and update. Really, any ideas helps. Thanks a ton! On Mar 18, 9:50 am, Daniel Roseman wrote: > On Friday, March 18, 2011 4:35:12 PM UTC, Mazery Sm

Re: Template Tags and TemplateSyntaxError: - expected 'endblock' or 'endblock content'

2011-03-19 Thread Mazery Smith
this mistake bubbled up into a TemplateSyntaxError related to endblocks? Any ideas? On Mar 18, 9:55 am, Mazery Smith wrote: > Those all are good ideas DR (especially the last resort pyc b/c I > heard that screws things up once in awhile) and I will try them when I > get home and update. &g

Slow Pagination with Inclusion Tags FAIL

2011-03-19 Thread Mazery Smith
Hello, I've got a couple questions here. The first one is kinda long. Sorry ;) 1. I'm using two custom inclusion tags for different styles of pagination in a project (takes_context=False). Each tag is registered to a different pagination template HTML. Therefore each tag hands-off a context to i

High-level template and template tag organization

2011-03-23 Thread Mazery Smith
Hello, I have a results.html page and mylibrary.html page on my site that both display search information in a results box (broken into two columns (a left and a right column)). The left-handed column stays the same (in terms of data being displayed) between both the results page and the mylibrary

ManyToMany Intermediate Table on a Separate Database?

2011-03-26 Thread Mazery Smith
Hey, I tried setting up an intermediate manytomany table relationship where my intermediate table is in one database, my user table (target table) is in a registration database and my data table (source table) is in another database. Things aren't working correctly and I'm just checking to make su

Re: ManyToMany Intermediate Table on a Separate Database?

2011-03-26 Thread Mazery Smith
Thanks Daniel Roseman...you're always saving me ;) On Mar 26, 12:47 pm, Daniel Roseman wrote: > On Saturday, March 26, 2011 7:33:23 PM UTC, Mazery Smith wrote: > > > Hey, > > I tried setting up an intermediate manytomany table relationship where > > my intermediate

Examples of Subclassing models.Field to Account for Postgresql Array Type?

2011-03-26 Thread Mazery Smith
Hello, I really would like to use the Postgresql Array type in some of my Django models but I see there is no direct mapping in Django unless I create my own by subclassing Field. I've read the documentation, I've tried to do it...I've failed miserably ;) Has anyone done this explicitly for Postg

Where to put custom classes

2011-04-06 Thread Mazery Smith
Hello, I have a project with a few application folders in it. One of those applications houses all the views for the website. I've built some utility classes placed in an entirely different application folder (utility_app helper module) that assist in processing requests in each view. Is this the b

Creating REST APIs in Django...advice

2011-04-12 Thread Mazery Smith
Hello, So can anyone here recommend some REST packages/tools you use with Django and have a good experience with? I'm interested to know b/c it seems like most of the popular RESTful Django projects really stopped being very active around mid-2008. I'm wondering if that's because most people just