Re: Different behaviour for url parameter in dev run versus test run

2007-11-18 Thread Manoj Govindan
> > I am still not clear about your question. But my guess is that this is > an accepted behaviour. Spaces are read as %20 on URLs. > If you can cut paste the exact sample code on dpaste, some one can > help you > I am aware that spaces are represented as %20 on URLs. My observations were 1)

Re: makemessages.py gives problem with unnamed arguments

2007-11-18 Thread Kenneth Gonsalves
On 19-Nov-07, at 11:52 AM, Malcolm Tredinnick wrote: >> I am running python2.5 and django version 6700. I am getting the >> error from makemessages.py that 'unnamed arguments cannot be properly >> localised'. The string complained off is: >> >> return u"%s %s" %(self.username,self.email) > > I

Re: makemessages.py gives problem with unnamed arguments

2007-11-18 Thread Malcolm Tredinnick
On Mon, 2007-11-19 at 11:30 +0530, Kenneth Gonsalves wrote: > hi, > > I am running python2.5 and django version 6700. I am getting the > error from makemessages.py that 'unnamed arguments cannot be properly > localised'. The string complained off is: > > return u"%s %s"

makemessages.py gives problem with unnamed arguments

2007-11-18 Thread Kenneth Gonsalves
hi, I am running python2.5 and django version 6700. I am getting the error from makemessages.py that 'unnamed arguments cannot be properly localised'. The string complained off is: return u"%s %s" %(self.username,self.email) I noticed a ticket on this which has been closed. What is the

Leader in IT World

2007-11-18 Thread aasghar
on a web I read this article about Verticity.com inc Verticity.com Verticity. Phantom Entertainment announced today that it has signed a contract with VertiCity. Under terms of the agreement, VertiCity will modify the company's Phantom Game Service software for Windows XP. Phantom Entertainment

Re: signal recursive import error

2007-11-18 Thread Malcolm Tredinnick
On Sun, 2007-11-18 at 23:43 +0200, xor exor wrote: > Hi i got models.py where i keep my model classes. And have also a > signals.py where i want to keep my signals for that models. > So the problem is some of the signals need some of model classes. So > when i import the signal_meth it also

Re: postgresql problem with django api (iregex)

2007-11-18 Thread Malcolm Tredinnick
On Sun, 2007-11-18 at 12:46 -0800, cesco wrote: > Hi, > > I have the following query which works perfectly with sqlite3: > > from django.db import models > qs.filter(models.Q(myField__iregex="\\b%s\\b" % myString) > > In the production server, where I'm running postgresql the exact same >

Re: newforms: required field mark

2007-11-18 Thread [EMAIL PROTECTED]
i wrote a couple of filters and do thismaybe not as efficient..but works for me... {% filter label_asterisk_red %} {{ posting_form|mark_required }} {% endfilter %} import re from django import template from django.template.defaultfilters import stringfilter register =

Re: custom list in admin

2007-11-18 Thread heru
aha, row level permission thanks anyway On Nov 19, 5:57 am, heru <[EMAIL PROTECTED]> wrote: > i start to build a classified ads with django, and want to add some > custom in the admin interface, > my 2 related model, user and ad, > for each user has many ads > and how i supposed to do to show

signal recursive import error

2007-11-18 Thread xor exor
Hi i got models.py where i keep my model classes. And have also a signals.py where i want to keep my signals for that models. So the problem is some of the signals need some of model classes. So when i import the signal_meth it also import some of the model classes and models also import the

custom list in admin

2007-11-18 Thread heru
i start to build a classified ads with django, and want to add some custom in the admin interface, my 2 related model, user and ad, for each user has many ads and how i supposed to do to show the user's ads on their ads list base on user login session thanks

save() doesn't save a removed parent-child relationship to self?

2007-11-18 Thread jkossen
Hi, I have a File model with a ManyToManyField to 'self'. Which works great, except that it's possible to add self to the parents (File 3 could add File 3 as a parent, causing an infinite relationship loop). So i came up with a save() method which should remove self from the parents before

Re: WebAlchemy accelerates Django in 100 times

2007-11-18 Thread Alexey Moskvin
Thanks for your article! I am using Dreamhost too :), thinks, it will be useful. On Nov 18, 10:34 pm, Dima Dogadaylo <[EMAIL PROTECTED]> wrote: > With WebAlchemy only pages involved in form processing are served > directly by Django, the rest of the pages most of the time are served > directly

Re: Named URL patterns with included urlconfs

2007-11-18 Thread Justin Fagnani
Solved. The url names were apparently being cached, so it appeared that naming a included url didn't work. Lesson: always restart django when changing url names -Justin On 11/18/07, Justin Fagnani <[EMAIL PROTECTED]> wrote: > > I've noticed that if you're trying to use named url patterns with

database replication support

2007-11-18 Thread heru
hi, i've read around about django and multiple database connection, and found that it seems no clear solution for django+master/slave database, i mean that is it any middleware or 3rd party library for django to solve sort of requirement as in java db driver is automatically understand queries

Named URL patterns with included urlconfs

2007-11-18 Thread Justin Fagnani
I've noticed that if you're trying to use named url patterns with an included urlconf that you need to label the pattern that includes the urlconf as well as the pattern being included with the same name. This seems to prevent having more than one named url in an included urlconf. Here's an

postgresql problem with django api (iregex)

2007-11-18 Thread cesco
Hi, I have the following query which works perfectly with sqlite3: from django.db import models qs.filter(models.Q(myField__iregex="\\b%s\\b" % myString) In the production server, where I'm running postgresql the exact same query is not working. Do you have any idea why this happens? Maybe a

WebAlchemy accelerates Django in 100 times

2007-11-18 Thread Dima Dogadaylo
With WebAlchemy only pages involved in form processing are served directly by Django, the rest of the pages most of the time are served directly by Apache as static content with static content speed. In other words for Django-powered site it's possible to achieve speed about 2000 request/sec,

Re: Help with design choice...

2007-11-18 Thread radioflyer
Bernd, Thanks for your help. Great link. Dan J. On Nov 18, 12:44 pm, Brot <[EMAIL PROTECTED]> wrote: > Hello, > > here is a good article, which explain how to extend the django user- > model.http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-m... > > Bernd > > On Nov 18, 5:47

django-authopenid version 0.9 released

2007-11-18 Thread Benoit Chesneau
Hi all, Major bump to django-authopenid. The main change is that you don't need any more to rely on django-openid. Main reason for this is that I can't distribute an application with a patch on another. Application should be pluggable more easily. Other changes are improvement in code. As

Re: Help with design choice...

2007-11-18 Thread Brot
Hello, here is a good article, which explain how to extend the django user- model. http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/ Bernd On Nov 18, 5:47 pm, radioflyer <[EMAIL PROTECTED]> wrote: > Hello, > > New Django user. > > I'm building an application to help

Help with design choice...

2007-11-18 Thread radioflyer
Hello, New Django user. I'm building an application to help manage departure scenarios for elementary school students. One feature allows parents to login and and make changes to their children's departure routine. ie. Instead of "Get on your normal bus," they could change it to "Go to music

Re: Can't set request.method = 'POST'

2007-11-18 Thread Doug B
It looks like you have a search view that uses form POST data, and you want a shortcut to be able to show a predetermined search. So if you were a clothing store, you might want to use a link click to show all the Jackets, another all the Pants, etc. I think the best way to handle that is to

Re: Can't set request.method = 'POST'

2007-11-18 Thread stec77
Hi, Don't know whether this will help but you can post data without directly using a form by using this online GET to POST converter: www.gettopost.com. HTH, Steve On 28 Oct, 03:11, Greg <[EMAIL PROTECTED]> wrote: > Karen, > I have some links on my site. I don't want to wrap these links around

Re: installation necessary?

2007-11-18 Thread [EMAIL PROTECTED]
thanks for your answer! and how could i execute things like "django-admin.py startproject mysite" without root access on a shared webhoster? is it possible to start these things from scripts? ~horace On Oct 6, 10:08 am, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > It doesn't really matter where

Re: Different behaviour for url parameter in dev run versus test run

2007-11-18 Thread Ramdas S
Not really! I am still not clear about your question. But my guess is that this is an accepted behaviour. Spaces are read as %20 on URLs. If you can cut paste the exact sample code on dpaste, some one can help you RS On Nov 18, 1:59 pm, Manoj Govindan <[EMAIL PROTECTED]> wrote: > On Nov 18,

Re: Apache mod_python config problem

2007-11-18 Thread Nimrod A. Abing
On Nov 18, 2007 11:29 AM, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > On Nov 18, 2:24 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > Thanks for the help. I didn't think about checking permissions. I > > have the site working now and I think it was a combination of > > permissions

Django Generated Commentary on Python 411 - Web 3.0 and Nanoprogramming

2007-11-18 Thread SamFeltus
Here's an interesting Podcast musing on the possible future of Python and computing, illustrated and commentated by SonomaSunshine... Enjoy... http://samfeltus.com/kudzu/Nanoprogramming_podcast.html --~--~-~--~~~---~--~~ You received this message because you are

Re: advice on template shortcomings

2007-11-18 Thread justquick
> {% for item in mydict.items %} >the key: {{ item.0 }} >the value: {{ item.1 }} >{% for subitem in item.1 %} >{{ subitem }} >{% endfor %} > {% endfor %} UGH! How come django can make things so simple and complicated at the same time? I personally dont use the django

Re: Understanding autoescape-aware filters

2007-11-18 Thread Malcolm Tredinnick
On Sun, 2007-11-18 at 12:04 +0300, Ivan Sagalaev wrote: > Malcolm, first of all, I should apologies. I actually intended my letter > being 'funny' but after your answer I understand that it was just harsh > :-(. I'm sorry. Fair enough. I misunderstood your intent. No hard feelings. :-) [...]

Django users

2007-11-18 Thread luras
http://www.geocities.com/adverww/ http://indianfriendfinder.com/go/g911223-pmem http://bigchurch.com/go/g911223-pmem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: How to handle differing timezones?

2007-11-18 Thread Samuel Adam
Heres my take: - Handle every time related data in UTC - Record the user TZ in the UserProfile - Display the user time with a |tz:user template filter I don't have snippets right here but i think Jonathan Buchanan has a clean and similar solution on his forum app:

Re: Understanding autoescape-aware filters

2007-11-18 Thread Ivan Sagalaev
Malcolm, first of all, I should apologies. I actually intended my letter being 'funny' but after your answer I understand that it was just harsh :-(. I'm sorry. And let me again express that I never stopped to wonder how you manage to do so many great things in Django. Thank you very much!

Re: Different behaviour for url parameter in dev run versus test run

2007-11-18 Thread Manoj Govindan
On Nov 18, 12:00 pm, "Ramdas S" <[EMAIL PROTECTED]> wrote: > are u using windows? > I am working on Ubuntu Feisty. Are you suggesting that the behaviour is different on Windows? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the