Re: ifequal

2005-12-15 Thread Adrian Holovaty
On 12/14/05, Milton Waddams <[EMAIL PROTECTED]> wrote: > Can someone tell me why this doesn't work? > > {% ifequal forloop.counter0 1 %} Hi Milton, I just fixed this in the Django development version (trunk), so, if you're using that, just "svn update". The problem was that the "1" in that examp

Re: ifequal

2005-12-15 Thread Milton Waddams
good thinking, thanks :) > It's usually better practice to put rules like this into your Python code > rather than your template. Make your template say something like: > > {% if blog_post.allow_ad %}{% endif %} > > and do something like this in your Python code: > > for i, blog_post in

Re: php, mod_python postgresql conflict?

2005-12-15 Thread Johan
you should configure php with the --with-mysql=/path/to/mysql switch Check readme for exact path. For me Mysql is located in /usr/bin/mysql and I used --with-mysql=/usr. This causes php to use the same mysql as mod_python

Re: autonumbering within a date

2005-12-15 Thread Jacob Kaplan-Moss
On Dec 15, 2005, at 12:36 PM, coowwa coowwa wrote: I want to have a daily list of links that will be displayed by date. e.g. December 15, 2005 link 1 link 2 link 3 December 14, 2005 link 1 link 2 link 3 [snip] Does anyone have any suggestions about how to do this cleverly in Django? Any

autonumbering within a date

2005-12-15 Thread coowwa coowwa
I'm new to Django and to web development in general so forgive my basic questions. I want to have a daily list of links that will be displayed by date. e.g. December 15, 2005 link 1 link 2 link 3 December 14, 2005 link 1 link 2 link 3 These links will be entered into my database by another prog

Re: php, mod_python postgresql conflict?

2005-12-15 Thread James Bennett
On 12/15/05, Bryan Murdock <[EMAIL PROTECTED]> wrote: > So if you have mod_php and mod_python installed, and mod_php was > compiled with MySQL support, apache crashes when mod_python tries to > use MySQL. Does anyone know if this same thing happens with > postgresql? I'm not sure exactly, but I'

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-15 Thread ToddG
If anyone is interested in more on this very topic: http://blog.ianbicking.org/more-on-python-metaprogramming.html Same discussion as here.

php, mod_python postgresql conflict?

2005-12-15 Thread Bryan Murdock
So if you have mod_php and mod_python installed, and mod_php was compiled with MySQL support, apache crashes when mod_python tries to use MySQL. Does anyone know if this same thing happens with postgresql? Thanks, Bryan

admin & ffox 1.0.7

2005-12-15 Thread wiz
Strangely, "add" page in admin system lookls like about:blank. But "view source" shows that everything is ok. -- wiz

Re: ifequal

2005-12-15 Thread Richie Hindle
[Milton] > In my case I want to place an adsense ad between a couple of blog > posts though want to make sure that I don't go over the 3 ads per page > limit. It's usually better practice to put rules like this into your Python code rather than your template. Make your template say something li

Re: ifequal

2005-12-15 Thread Milton Waddams
thanks Is there a way for me to achieve what I'm looking for? In my case I want to place an adsense ad between a couple of blog posts though want to make sure that I don't go over the 3 ads per page limit. On 12/15/05, kmh <[EMAIL PROTECTED]> wrote: > > Milton Waddams wrote: > > Can someone t

Re: Caching partial templates

2005-12-15 Thread Ian Holsman
wouldn't you also need a cache-key as a parameter? regards Ian On 12/15/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 12/13/05, oron <[EMAIL PROTECTED]> wrote: > > coming from ROR where it's easy to cache partials (parts of templates) > > I couldn't find a way to cache just parts of my t