If you're interested in something _much_ nicer than phpMyAdmin and
you're on OS X, check out Querious or Sequel Pro. I've found Django
development about 25% more enjoyable since switching from browser-
based software to desktop software for database management (both local
and remote).
David
On A
It's also possible to inspect `request.META['HTTP_ACCEPT_LANGUAGE']`,
although while building an English/Chinese site recently I found this
somewhat unreliable. In the end I decided to use it as a default so
that at least some of the Chinese visitors will see the content in
Chinese right away; thos
Make sure that 'django.middleware.csrf.CsrfViewMiddleware' is listed
in your MIDDLEWARE_CLASSES. There's useful info about the things that
need to be in place in order for Django's CSRF protection to work at
http://docs.djangoproject.com/en/dev/ref/contrib/csrf/.
David
On Aug 26, 12:36 am, Jonas
ng designed awesomely though! :)
>
> On Thu, Feb 4, 2010 at 3:13 PM, davidchambers
>
> wrote:
> > Thanks for the suggestion. Unless I'm mistaken, though, using a
> > dictionary does not solve the problem which is that .filter() seems to
> > require field names to be h
27; : 1, 'y': 2, 'z' : 3 }
> foo( **d ) # same as foo( x=1, y=2, z=3 )
>
> it's a python thing, not django necessarily
>
> On Thu, Feb 4, 2010 at 1:20 PM, davidchambers
>
> wrote:
> > I'm familiar with hard-coding filters in the standa
I'm familiar with hard-coding filters in the standard fashion, e.g.
posts = Post.objects.filter(title__contains='django').
I'm interested in finding out whether it's possible to replace
title__contains in the above example with a variable. Why do I want to
do this? Well, here's some pseudocode:
p
6 matches
Mail list logo