Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-16 Thread maddiin
hi piotr! wiki: i really like how the wiki is working now. with rk:art i would be able to do my categories, just what i liked but more flexible. ;) maybe you could add a "hide from sitemap" check to wiki-pages to give more control and the ability to build hierarchical structure. whats not

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-16 Thread limodou
On 9/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > A lot of updates got into SVN today, mainly to the MyghtyBoard forum: > - added redirect flag to forums > - topics can be locked/unlocked > - topics may be sticky or global > - removed for now old themes, added one clean and easy to

Re: Re: Database query question

2006-09-16 Thread Russell Keith-Magee
On 9/16/06, Tom Smith <[EMAIL PROTECTED]> wrote: > > Recipe.objects.exclude(category__in=words) > > ...which is great, but now having set words to and empty list [] I > get the error... This is an issue that has been previously reported: http://code.djangoproject.com/ticket/2473 > So... would

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-16 Thread [EMAIL PROTECTED]
A lot of updates got into SVN today, mainly to the MyghtyBoard forum: - added redirect flag to forums - topics can be locked/unlocked - topics may be sticky or global - removed for now old themes, added one clean and easy to maintain

Re: Flatpages and DEBUG=False

2006-09-16 Thread Jakub Krajniak
Jani wrote: > I have a weird problem with flatpages. Everything works fine if I have > DEBUG=True in the settings.py. However, when I change DEBUG=False > flatpages gives error: (...) > File > "/opt/local/lib/python2.4/site-packages/django/template/loader_tags.py", > line 58, in get_parent >

Re: FullHistory Branch

2006-09-16 Thread Uros Trebec
[EMAIL PROTECTED] wrote: > Tried doing it on a fresh db and all and nothing. Hi, I'm sorry for not noticing your post as I'm rather busy with exams etc. Anyway, I think I know where's the problem. I noticed that I forgot to mention that you need to add 'django.contrib.history' to INSTALLED_APPS

Re: Flakey file uploads in Safari

2006-09-16 Thread Jean-Francois Roy
I've seen this happen a lot as well, and not just for Django applications, but PHP and RoR ones as well. Either Safari is bugged, or it's doing something a lot of applications aren't ready to handle. I'd be inclined to the latter, because some other applications, namely Trac in my

Re: Example of a "select" form?

2006-09-16 Thread Jakub Krajniak
[EMAIL PROTECTED] wrote: > I'm just getting started with using Django to build a web app. > > Can anyone point me to an example of how to pull back a few rows of > data from the database based on which checkboxes a user has selected? > > I've read through the "Manipulator" sections of the

Re: Mac vs. PC for Django work.

2006-09-16 Thread Eric Walstad
Hey Cheng, On Friday 15 September 2006 17:11, Cheng Zhang wrote: > On Sep 13, 2006, at 11:21 PM, Eric Walstad wrote: > > One of the developers on my team works on a Mac, while the other > > two of > > us are on Linux. Our apps are deployed on Linux PC machines. The Mac > > guy had a harder

Re: Adding custom row's

2006-09-16 Thread Anders Aagaard
Malcolm Tredinnick wrote: > On Sat, 2006-09-02 at 13:53 -0700, Anders Aagaard wrote: > > Hi > > > > I found I could use x.extra(select) statements to add custom row's to > > my objects, > > Just to get the terminology right: you mean custom attributes. A single > object represents one row in the

Re: Database query question

2006-09-16 Thread Tom Smith
On 16 Sep 2006, at 12:42, Malcolm Tredinnick wrote: > > On Sat, 2006-09-16 at 12:25 +0100, Tom Smith wrote: >> How would I build an "AND" query... >> >> for example... >> >> words = ['chicken', 'beef', 'lamb'] >> Recipe.objects.exclude(title__contains=words) >> >> I don't want to do 3

Example of a "select" form?

2006-09-16 Thread [EMAIL PROTECTED]
I'm just getting started with using Django to build a web app. Can anyone point me to an example of how to pull back a few rows of data from the database based on which checkboxes a user has selected? I've read through the "Manipulator" sections of the documentation and that is great--but I

Re: Redirecting in Django...

2006-09-16 Thread Tom Smith
On 16 Sep 2006, at 13:39, Malcolm Tredinnick wrote:Are you sure it's really getting to that last line and not returning somewhere earlier?Yes... Does request.META['HTTP_REFERER'] contain something sensible? This won't be the cause of the problem, but it's worth checking.Most of the time...

Re: Redirecting in Django...

2006-09-16 Thread Malcolm Tredinnick
On Sat, 2006-09-16 at 13:16 +0100, Tom Smith wrote: > I would really like to be able in my views.py file to do a... > > def do_something(request, x): > #do something that changes some session vars here... > #now go back to where you were > return

Redirecting in Django...

2006-09-16 Thread Tom Smith
I would really like to be able in my views.py file to do a... def do_something(request, x): #do something that changes some session vars here... #now go back to where you were return HttpResponseRedirect(request.META['HTTP_REFERER'] ) .. but I always get... ValueError

Re: Database query question

2006-09-16 Thread Malcolm Tredinnick
On Sat, 2006-09-16 at 12:25 +0100, Tom Smith wrote: > How would I build an "AND" query... > > for example... > > words = ['chicken', 'beef', 'lamb'] > Recipe.objects.exclude(title__contains=words) > > I don't want to do 3 queries... Please start a new thread for new topics, rather than

Re: FullHistory Branch

2006-09-16 Thread Malcolm Tredinnick
On Fri, 2006-09-15 at 08:29 -0700, [EMAIL PROTECTED] wrote: > Has anyone managed to get it working as of the latest release? > > http://code.djangoproject.com/wiki/FullHistory > > Tried doing it on a fresh db and all and nothing. I've pinged Uros Trebec, the guy who wrote the code, since I

Database query question

2006-09-16 Thread Tom Smith
How would I build an "AND" query... for example... words = ['chicken', 'beef', 'lamb'] Recipe.objects.exclude(title__contains=words) I don't want to do 3 queries... thanks tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: How do you raise and exception in Django?

2006-09-16 Thread Malcolm Tredinnick
On Sat, 2006-09-16 at 19:10 +0900, Sean Schertell wrote: > Maybe I'm going about this the wrong way. All I want to do is exit > the script and barf a big ugly error to the screen or the log in the > event that something uncool happens. > > So for example, let's say in my view I have a

Re: Trackback spam in Blogs

2006-09-16 Thread Malcolm Tredinnick
On Sat, 2006-09-16 at 19:25 +1000, Ian Holsman wrote: > > On 16/09/2006, at 6:04 PM, Malcolm Tredinnick wrote: > > > > > On Sat, 2006-09-09 at 00:45 -0700, [EMAIL PROTECTED] wrote: > >> Hi. > > > > (3) Checking that the trackback caller actually links to your blog > > somewhere in the first N

Flakey file uploads in Safari

2006-09-16 Thread Sean Schertell
When submitting a simple form with just a name and a file, Safari hangs while submitting the form. If I click the submit button again, it usually works on the second or third click (totally inconsistent). In Camino, it submits every time flawlessly. What the FiretrUCK? Sean Code

Re: template and special character problem

2006-09-16 Thread Phil
Now that I think of it, I use the same editor for all of my templates, so I doubt that this is the root cause. Jorge Gajon wrote: > Hi, > > On 9/12/06, Phil <[EMAIL PROTECTED]> wrote: > > When I render index.html, the special character from base.html are > > rendered normaly but the ones from

Re: Trackback spam in Blogs

2006-09-16 Thread Ian Holsman
On 16/09/2006, at 6:04 PM, Malcolm Tredinnick wrote: > > On Sat, 2006-09-09 at 00:45 -0700, [EMAIL PROTECTED] wrote: >> Hi. > > (3) Checking that the trackback caller actually links to your blog > somewhere in the first N bytes of the post they claim to be linking > from > (unclear what a

Re: template and special character problem

2006-09-16 Thread Phil
Hi Jorge, thanks for the tip. I'll check that. In the meantime, I've solved this with a bit of a uncool hack. In the base.html template I added in the section a {% block extrahead %}{% endblock %}. And in the index.html template I added {% block extrahead %} {% endblock %} This seems to

Re: Django 95 and Squid

2006-09-16 Thread Malcolm Tredinnick
On Tue, 2006-09-12 at 12:34 +, mikeb wrote: > Has anyone gotten Squid and Django to play nice? Are you just using squid as an intermediate proxy between you and a webserver hosting a Django app somewhere, or doing something more complex? I'm happily accessing Django sites through a squid

Re: Running .91 and .95 at the same time (with Windows)

2006-09-16 Thread Malcolm Tredinnick
On Mon, 2006-09-11 at 14:03 +, [EMAIL PROTECTED] wrote: > I have been working with version .95, and now I also need to be able to > use .91 on my Windows dev box to support an older app. > > Not sure how to accomplish this with Apache/modpy or even with the > built-in dev server. Any

Re: Database events?

2006-09-16 Thread Malcolm Tredinnick
On Mon, 2006-09-11 at 10:33 +, cyberco wrote: > I've been looking around and the dispatcher/signals combo seems like a > possible solution. I could raise the signals using cronjobs or so. The signals are only within the same process, though. They don't wake up other processes (they are not

Re: Adding custom row's

2006-09-16 Thread Malcolm Tredinnick
On Sat, 2006-09-02 at 13:53 -0700, Anders Aagaard wrote: > Hi > > I found I could use x.extra(select) statements to add custom row's to > my objects, Just to get the terminology right: you mean custom attributes. A single object represents one row in the database table, so you are not adding

Re: Custom Application Dispatcher

2006-09-16 Thread Malcolm Tredinnick
On Sat, 2006-09-02 at 11:03 -0700, dt wrote: > I've been using Django for my new projects and I really like it. Now I > am up to for advanced stuff. Here is what I need. I'd like to adopt > Django into an existing portal framework that has all authentication > and other things which reside in a

Flatpages and DEBUG=False

2006-09-16 Thread Jani
I have a weird problem with flatpages. Everything works fine if I have DEBUG=True in the settings.py. However, when I change DEBUG=False flatpages gives error: --- Traceback (most recent call last): File "/opt/local/lib/python2.4/site-packages/django/core/servers/basehttp.py", line 272, in

Re: models wierdness

2006-09-16 Thread Malcolm Tredinnick
Hi Rob, On Tue, 2006-08-29 at 17:22 -0700, Rob Hudson wrote: > I've got an app called page I've been working on. Pages can contain > text, graphics, or media and each have their own table which refer back > to page (ForeignKey). When I set up this model, only page_media has > the inlined SQL