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
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
[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
Strangely, "add" page in admin system lookls like about:blank. But "view
source" shows that everything is ok.
--
wiz
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
If anyone is interested in more on this very topic:
http://blog.ianbicking.org/more-on-python-metaprogramming.html
Same discussion as here.
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'
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
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
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
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
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
12 matches
Mail list logo