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
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 problem
>> 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
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 betwe
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 'dolp
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 ca
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"
in
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 Rus
> 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 because
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
--~--~-~--~~-
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
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
>> django.core.exceptions.Improperly
> > 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
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 2
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
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 t
Hi,
It worked for linking my models, but the referencing app didn't
appeared on the admin until I used the non-generic way.
Regards.
Enrico
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
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
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
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 docu
>
> 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
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, the
Thanks Adrian.
I actually figured this out when I was coming into work today. Sometimes I
fire of a "help!" to the list a bit too fast. I'm just getting started
with django, my confidence will increase with time.
Adrian Holovaty wrote:
> On 7/13/06, Jason Murray <[EMAIL PROTECTED]> wrote:
>
>
I don't think my code is usefull for you... I build the tree from a
list like:
['uno\dos\tres','dos\tres\cuatro','pepe\papa\pepa']
However the API of elementree es very simple.
A good trick is build a map of son and parents. This way:
self.parent_map = dict((c, p) for p in tree.getiterator() f
Hi,
You need to implement the save() method in your custom manipulator.
Cheers
On 7/14/06, Robert <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> When using custom Manipulator (which in fact does nothing.. I've cut
> some additional custom validation here) I'm getting error as follows:
>
Hi again, I rushed with my previous email.
Why don't you use the generated manipulator from the model instead of
writing your own?
You only need to change this line:
manipulator = EntryManipulator()
with this line:
manipulator = Entry.AddManipulator()
that should work.
Then there's no nee
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 Slov
Hi y'all,
This week my boss sprang a new project on me: Build a community blog
app (multiple blogs and multiple users, also with photo- and video-type
content integrated and indexed). In three weeks.
The original idea was to hack the Multi-User Wordpress to make this
work. I've done my time with
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, the
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 LiveHTTPH
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 multi
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 do
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 beca
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
http://del.ici
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()),
but I do have some problems:
1. how do I save the password (seems that I have to change new_data
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.
>
> G
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
`data_ins
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 django-users@goo
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 :)
Jacob
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 wil
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
--~--~---
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()),
> bu
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()
--~--~-~--~~~---~--~---
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
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 proj
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 fa
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 subscri
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
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
co
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
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:
http://groups.google.com/group/django-users/browse_frm/th
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 met
Hi,
On 7/14/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> Run with the built-in server and put this in your view code:
>
> import pdb
> pdb.set_trace()
>
+1 for using pdb. It will save you a lot of time debugging your code.
And if you haven't used pdb, check out this tutorial:
http://www.ferg.o
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)) #
On 14-Jul-06, at 10:49 PM, Joe Murphy wrote:
> Thought I would ask you all what your thoughts were on this -- hacking
> an established application to get it to do what I want vs. building an
> app from scratch, on a restricted timeline.
the second - you have three full weeks, and django was bui
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 manually
56 matches
Mail list logo