I can't get urls with explicit keyword arguments to reverse correctly.

2010-02-08 Thread Luke Sneeringer
Good morning, Django e-mail list! Happy Monday! I have a problem. :) I checked the Django documentation and Stack Overflow with no success, so you guys are my next line of defense. This is an issue I've encountered several times; this is just the first time working around it has bothered me enou

Re: Access apache environment variable in template

2010-02-04 Thread Luke Sneeringer
If you are using render_to_response, you will need to explicitly send request in the dictionary of items going to the template. Also, variable access in Django templates is done with the {{ and }} enclosure, and uses all dots (.) for separators. I have never tried to directly access something o

It looks like Django is working from a stale DB. What am I doing wrong?

2010-02-04 Thread Luke Sneeringer
Good morning, everyone! Apologies in advance if this is the wrong place to ask this question. First of all, the setup. I'm using MySQL and InnoDB tables. I've encountered an unusual problem, which has reared its ugly head on several fronts. The basic jist is that Django seems to not recognize dat

Building a form to write one of two models

2009-10-16 Thread Luke Sneeringer
). - if the form is bound, do not include the "type" field (as I don't want the user to be able to change it) I'm pretty sure my solution is off base. Can someone enlighten me regarding a better way? Much obliged! Thanks, Luke Sneeringer --~--~-~--~~~