Re: user registration

2006-07-14 Thread Kenneth Gonsalves
On 14-Jul-06, at 11:50 PM, patrickk wrote: > 1. how do I save the password (seems that I have to change new_data > which doesn´t look clean to me ...) - note: I know how to generate > the password from a raw string though. create_user generates the password from the raw string then you

Re: debugging xmlhttprequest POST's is a PAIN! Need help.

2006-07-14 Thread Keith Dart
Scott Chapman wrote the following on 2006-07-14 at 10:34 PDT: === > 3) If neither of the above is possible, give me some suggestions how to debug > these "blind" POST's === If you are using mod_python under Apache, you can do this: from mod_python import apache apache.log_error(str(request)) #

Re: Custom Manipulator problem

2006-07-14 Thread Robert
Hello Jorge, Adding save() method solved the problem. Seems like I misunderstood the documentation. As for using Entry.AddManipulator: I can't use it as I want to use my own additional validation methods like: (`nr` starting from 023, etc.). Maybe this could be done the other way (validation

Re: Perspective on building a community blog in a short timeframe

2006-07-14 Thread arthur debert
Hi Joe. Also if you don't fell like reinventing the wheel, you might want to take a look at limodou's multi-user blog app written in django. It's been a while since I haven't played with it, but it's probably worth a look. More info here:

Re: Django vs. Rails vs. Symfony: Django is fastest

2006-07-14 Thread [EMAIL PROTECTED]
nice, very nice :) pylons and Turbogears benchmark would add a bit of flamish excitement to it... (and it would be quite interesting) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: recursive transaction support

2006-07-14 Thread Alan Green
On 7/15/06, Panard <[EMAIL PROTECTED]> wrote: >snip< > So, is it only the sqlite backend wich doesn't support recursive transactions, > or is django missing that point ? > If it's only a sqlite problem, is there a workaround? In this situation, I'd be looking at writing my own decorator which

Re: Django vs. Rails vs. Symfony: Django is fastest

2006-07-14 Thread Iain Duncan
Andy Dustman wrote: > On 7/14/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > >>On Jul 14, 2006, at 1:18 PM, Adrian Holovaty wrote: >> >>>Some folks benchmarked Symfony, Ruby on Rails and Django. Django was >>>the fastest. >> >>By over 30% -- hell yeah! >> >>Now, I've always known in my gut

Re: Django vs. Rails vs. Symfony: Django is fastest

2006-07-14 Thread Rafael Jorge
On 7/14/06, Andy Dustman <[EMAIL PROTECTED]> wrote: And with MySQL, to boot. Nothing is perfect..xD -- SDM UnderlinuxGarimpar.com--PEP-8"Mais vale um ponteiro na mao do que duas classes voando" --~--~-~--~~~---~--~~ You received this message because you are

Re: Django vs. Rails vs. Symfony: Django is fastest

2006-07-14 Thread Andy Dustman
On 7/14/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Jul 14, 2006, at 1:18 PM, Adrian Holovaty wrote: > > Some folks benchmarked Symfony, Ruby on Rails and Django. Django was > > the fastest. > > By over 30% -- hell yeah! > > Now, I've always known in my gut that Django's pretty damn

Re: Perspective on building a community blog in a short timeframe

2006-07-14 Thread Joe Murphy
Ah, thanks for the perspective Julio. We're looking to do more a local test-of-concept, which makes it easy to cut down on the bells / whistles. However, my boss doesn't get angry, he gets stabby. It may be best to play it safe. I'm going to play with Django more this weekend on some other

Re: debugging xmlhttprequest POST's is a PAIN! Need help.

2006-07-14 Thread [EMAIL PROTECTED]
This might be of use: http://code.djangoproject.com/wiki/CookBookDeveloperTools Also, maybe modifying what the debug tag might help, print it to the console instead of HTML: 25 class DebugNode(Node): 26 def render(self, context): 27 from pprint import pformat 28

Re: debugging xmlhttprequest POST's is a PAIN! Need help.

2006-07-14 Thread Jeremy Dunck
On 7/14/06, Scott Chapman <[EMAIL PROTECTED]> wrote: > 3) If neither of the above is possible, give me some suggestions how to debug > these "blind" POST's Run with the built-in server and put this in your view code: import pdb pdb.set_trace()

Re: user registration

2006-07-14 Thread [EMAIL PROTECTED]
Haven't done any work on this, but I made some notes that might be of help. patrickk wrote: > I´m using the built-in authentication and now I´m trying to do a > registration page (for the website-user, not the admin-user). > I´m using an AddManipulator (manipulator = User.AddManipulator()), >

Re: Django vs. Rails vs. Symfony: Django is fastest

2006-07-14 Thread Ian Maurer
On 7/14/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Jul 14, 2006, at 1:18 PM, Adrian Holovaty wrote: > > Some folks benchmarked Symfony, Ruby on Rails and Django. Django was > > the fastest. > > By over 30% -- hell yeah! > That's awesome... congrats Django developers! -ian

Re: Perspective on building a community blog in a short timeframe

2006-07-14 Thread Julio Nobrega
This might sound a little harsh, but if you need to ask if you can do it in Django, then you shouldn't do it. Not because it is not entirely possible... but because you're not confortable with the framework and its quirks and your productivity on it, yet. Since this is your Real Job, that

Re: Django vs. Rails vs. Symfony: Django is fastest

2006-07-14 Thread Jacob Kaplan-Moss
On Jul 14, 2006, at 1:18 PM, Adrian Holovaty wrote: > Some folks benchmarked Symfony, Ruby on Rails and Django. Django was > the fastest. By over 30% -- hell yeah! Now, I've always known in my gut that Django's pretty damn fast, but seeing it verified by the RoR website... Priceless :)

Re: Syncdb generates non-unique foreign key constraints

2006-07-14 Thread DavidA
As soon as I hit "Post" I realized this should be in django-developers. I'll do that now... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Syncdb generates non-unique foreign key constraints

2006-07-14 Thread DavidA
I've been having a problem rebuilding my database from scratch via syncdb. I've tracked it down to duplicate constraint name. Here is the output from manage.py sql for my app: ALTER TABLE `data_rawinst` ADD CONSTRAINT `inst_id_referencing_data_inst_id` FOREIGN KEY (`inst_id`) REFERENCES

Re: debugging xmlhttprequest POST's is a PAIN! Need help.

2006-07-14 Thread Scott Chapman
Simon Willison wrote: > > On 14 Jul 2006, at 18:34, Scott Chapman wrote: > >> It's in an xmlhttprequest call so I never get to see the blow up, >> and it's a >> form POST so I can't simply call it with some command line parms in >> the >> browser to see it - so I'm flying blind a bit. > >

Django vs. Rails vs. Symfony: Django is fastest

2006-07-14 Thread Adrian Holovaty
Some folks benchmarked Symfony, Ruby on Rails and Django. Django was the fastest. Check it out here: http://wiki.rubyonrails.com/rails/pages/Framework+Performance And don't forget to Digg and del.icio.us! http://digg.com/programming/Django_vs._Rails_vs._Symfony_Django_is_fastest

Re: Perspective on building a community blog in a short timeframe

2006-07-14 Thread Joe Murphy
Yup, I caught that earlier today, it's a good start. I think the details that matter here are the timeline, ease-of-use by a non-technical audience, and hacking a pre-packaged solution vs. building from scratch. --~--~-~--~~~---~--~~ You received this message

Re: recursive transaction support

2006-07-14 Thread Jacob Kaplan-Moss
On Jul 14, 2006, at 10:47 AM, Panard wrote: > So, is it only the sqlite backend wich doesn't support recursive > transactions, > or is django missing that point ? > If it's only a sqlite problem, is there a workaround? No databases that I'm aware of support nested transactions, thus Django

Re: Perspective on building a community blog in a short timeframe

2006-07-14 Thread Guillermo Fernandez Castellanos
Don't know if this answers your question: http://www.b-list.org/weblog/2006/07/03/django-tips-scaling-application Good luck! G On 7/14/06, Joe Murphy <[EMAIL PROTECTED]> wrote: > > Hi y'all, > > This week my boss sprang a new project on me: Build a community blog > app (multiple blogs and

Re: debugging xmlhttprequest POST's is a PAIN! Need help.

2006-07-14 Thread Simon Willison
On 14 Jul 2006, at 18:34, Scott Chapman wrote: > It's in an xmlhttprequest call so I never get to see the blow up, > and it's a > form POST so I can't simply call it with some command line parms in > the > browser to see it - so I'm flying blind a bit. Get yourself Firefox and the

debugging xmlhttprequest POST's is a PAIN! Need help.

2006-07-14 Thread Scott Chapman
I am building a new site and my view has some code in it that blows up. It's in an xmlhttprequest call so I never get to see the blow up, and it's a form POST so I can't simply call it with some command line parms in the browser to see it - so I'm flying blind a bit. When I set DEBUG=True,

Re: Extending pluralize?

2006-07-14 Thread Ivan Sagalaev
Russell Keith-Magee wrote: > I'm a beliver that any tool should make the simple trivial and the > difficult possible. To that end, I don't think there is a universal > solution to pluralization. If a few small changes can get the existing > solution to cover a few more languages (including

CGI Setup

2006-07-14 Thread Martin Glück
Hi, I have been looking at Django for a few weeks now and I must say I'm really impressed. Since I love python I was looking around for a framework based on python and finally found Django. I#M planing an changing a site currently running on some home grown code to use Django. Unfortunately,

Re: Samples for displaying a tree of data

2006-07-14 Thread Chris Moffitt
> > I like to use elementtree here... The result tree can be cached and in > the end you have a more usefull representation... > Interesting. Do you have any reference code I could look at to try to wrap my brain around it? I haven't had a chance to look at Malcolm's samples yet but I do intend

Re: How to use lighttpd error-handler-404 handler to serve django?

2006-07-14 Thread Waylan Limberg
On 7/13/06, Wei Litao <[EMAIL PROTECTED]> wrote: > > I already have lots of static files in my lighttpd web server, so I'd > like it to only talk to the django server if it can't find what it's > looking for. So I'd like use error-handler-404 directive to do that > thing. > In django official

recursive transaction support

2006-07-14 Thread Panard
Hi, I would like to ask a question concerning recursive transactions. By recursive transaction I mean : @django.db.transaction.commit_on_success def a() : # do some stuff @django.db.transaction.commit_on_success def b() : # do some stuff a() # do some stuff

Re: Django and MySQLdb on Bluehost

2006-07-14 Thread Waylan Limberg
On 7/12/06, Steve <[EMAIL PROTECTED]> wrote: > > Nevermind, I figured it out. Gosh I get smarter just by writing to > this group :) > > All I had to do was add the local path of MySQLdb to my .fcgi file > under my web root directory. So: > sys.path += ['/homedir/pythondir'] > > This is a common

Re: Samples for displaying a tree of data

2006-07-14 Thread mamcxyz
I like to use elementtree here... The result tree can be cached and in the end you have a more usefull representation... Plus, traslate it to any html tree control become more easy... --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Extending pluralize?

2006-07-14 Thread Adrian Holovaty
On 7/14/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > Honestly I never saw a proper implementation of a pluralize function, > that was universal enough... can we get a shot at this, at all? Although I understand the problem (I speak Ukrainian, and it has some fancy pluralization as well), I don't

Re: Extending pluralize?

2006-07-14 Thread Carlos Yoder
Russel, I wrote my last comment before seeing yours. Just so that you know :-) On 7/14/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > > > The problem is that it's not 1, 2, 3, 4 and others :-). For Russian it's: > > > > > > 1 form, if it ends with 1 but excluding 11 > > > 2 form, if it ends with

Re: Extending pluralize?

2006-07-14 Thread Carlos Yoder
> > The problem is that it's not 1, 2, 3, 4 and others :-). For Russian it's: > > > > 1 form, if it ends with 1 but excluding 11 > > 2 form, if it ends with 2, 3, 4 but excluding 12, 13, 14 > > 3 form, for everything else and all previous exclusions. > > > > So this is not compatible with English

Re: MySQLdb problems

2006-07-14 Thread DvD
Thank you very much Geert, it worked well. Cheers, David On Thu, 13 Jul 2006 19:27:56 +0200, Geert Vanderkelen <[EMAIL PROTECTED]> wrote: > > Hi David, > > birrafondaio wrote: > .. >> raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e >>

Re: Extending pluralize?

2006-07-14 Thread Russell Keith-Magee
On 7/14/06, Carlos Yoder <[EMAIL PROTECTED]> What do you think, Russell?I'm a beliver that any tool should make the simple trivial and the difficult possible. To that end, I don't think there is a universal solution to pluralization. If a few small changes can get the existing solution to cover a

Re: Django hosting

2006-07-14 Thread julián
Send me a private (to avoid being off-topic) e-mail with the type of project (mainly how many users will test it, if you required disk for file uploads and this kind of things) If the client buy I cant host the final version for a bargain price ;) -- Julián Romero

Re: Extending pluralize?

2006-07-14 Thread Carlos Yoder
> The problem is that it's not 1, 2, 3, 4 and others :-). For Russian it's: > > 1 form, if it ends with 1 but excluding 11 > 2 form, if it ends with 2, 3, 4 but excluding 12, 13, 14 > 3 form, for everything else and all previous exclusions. > > So this is not compatible with English at all

Re: Extending pluralize?

2006-07-14 Thread Ivan Sagalaev
Russell Keith-Magee wrote: > This should be fairly easy to extend to a 1,2,3,4,... case; in your > dolphin case, something like delfin{{ num_delfinov|pluralize:",a,i,ov"}} > > (excuse my Slovenian if I've messed up your example :-) The problem is that it's not 1, 2, 3, 4 and others :-). For

Custom Manipulator problem

2006-07-14 Thread Robert
Hello, When using custom Manipulator (which in fact does nothing.. I've cut some additional custom validation here) I'm getting error as follows: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/handlers/base.py"

Re: Can I use HAVING clause on a query?

2006-07-14 Thread Russell Keith-Magee
On 7/14/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: Hello there,In plain SQL I'd do something with a HAVING clause, effectivelyfiltering the COUNT(*) on the cars.Has anybody done sth like this before? Any clues?Django doesn't currently have any specific support for aggregate clauses; However, it

Re: Extending pluralize?

2006-07-14 Thread Russell Keith-Magee
On 7/14/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: I'm currently developing my first app on Django, and it happens to bein Slovenia, land in which the beautiful Slovenian language is spoken.In this language, the rules of pluralization go very crazy, as the following example (for the word for

Can I use HAVING clause on a query?

2006-07-14 Thread Carlos Yoder
Hello there, Now I'm trying to do a simple thing, and I can't get around to it. I have a list of car objects that can be filtered by Model and FuelType (usign standard controls). Since the list of models is huge, I want to make it smart in two ways: 1. Display the number of existing cars

Re: Extending pluralize?

2006-07-14 Thread Carlos Yoder
>> How would a newbie to both Python and Django such as me be able to >> extend pluralize? Has anyone already faced this? > > Being Russian, a lot! Russian has 3 basic forms of pluralizing nouns > with many variants of these forms for different declinations. So to > solve this problem universally

Re: Extending pluralize?

2006-07-14 Thread Ivan Sagalaev
Carlos Yoder wrote: > How would a newbie to both Python and Django such as me be able to > extend pluralize? Has anyone already faced this? Being Russian, a lot! Russian has 3 basic forms of pluralizing nouns with many variants of these forms for different declinations. So to solve this

Extending pluralize?

2006-07-14 Thread Carlos Yoder
Hello there, I'm currently developing my first app on Django, and it happens to be in Slovenia, land in which the beautiful Slovenian language is spoken. In this language, the rules of pluralization go very crazy, as the following example (for the word for 'dolphin') shows: 0 delfinov 1 delfin

Re: Please fix my ugly code

2006-07-14 Thread Carlos Yoder
Jorge, muchas gracias! I have not got as close as a mile from manipulators yet, even though they look pretty cool. I'll certainly save your code around for later. Who would have thought my code was not that off-track as I thought! =) Anyway, a big thank you for the time you took to write this,