Re: how are you handling i18n and m10l content?

2006-11-09 Thread Carlos Yoder
a.translations.create(field='bar', translated_text='nada', > language=Language('Spanish')) > > You can get the text for a specific translation like this: > a.translations.filter(field='bar', language=Language('Spanish')) :-O Would it

Re: how are you handling i18n and m10l content?

2006-11-09 Thread Carlos Yoder
my fingers for some guy(s) with with enough time and skills will bite the bullet and start coding. And now I read what I wrote. Enough time *and* skills? That could be tricky ;-) Cheers, -- Carlos Yoder http://blog.argentinaslovenia.com/ --~--~-~--~~~---~--~~ You r

Re: How would you do this on Django?

2006-11-06 Thread Carlos Yoder
Thank you Frankie. I guess I'm OK with the i18n part of the idea. Not so sure about the 'best practises' to implement, though (that was the general idea of this post). But many thanks for the links anyway. Regards, -- Carlos Yoder http://blog.argentinaslovenia.com/ >> H

How would you do this on Django?

2006-11-06 Thread Carlos Yoder
and I'm at a loss. I must admit I first too a look at Polyglot, a plugin for Wordpress, but I really want to stay away from PHP and do things right. Could anyone help me a bit on how to approach this? Thanks a million, and best regards, -- Carlos Yoder http://blog.argentinaslovenia.com/ --~

Re: ado_mssql introspection patch

2006-10-27 Thread Carlos Yoder
e, and also temporarily renaming that ADMIN table, etc. Thanks a lot! I'll keep you posted, Carlos On 10/27/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > OK, if we can narrow the possibilities down to a patch mistake, I can > tell you what I did: > > cywgin > go t

Re: ado_mssql introspection patch

2006-10-26 Thread Carlos Yoder
t; been applied correctly. Otherwise, you'd see a different error. Look > at your \django\db\backends\ado_mssql\intropspection.py > file. Does the logic in this file match the patch? If you are not > sure, attach it to the email and I'll take a look at it. > > Sean >

Re: ado_mssql introspection patch

2006-10-26 Thread Carlos Yoder
ou post the entire traceback? I don't see this behavior with SQL > > Server 2000 or MSDE. I may have to get a copy of SQL Server 2005. > > I can, the full traceback is rather long: > > E:\test>python manage.py syncdb [snip snip sn

Re: ado_mssql introspection patch

2006-10-26 Thread Carlos Yoder
range models' order > # * Make sure each model has one field with primary_key=True > # Feel free to rename the models, but don't rename db_table values or field > name > s. > # > # Also note: You'll have to insert the output of 'django-admin.py > sq

Re: ado_mssql introspection patch

2006-10-25 Thread Carlos Yoder
_testing' DATABASE_USER = '*' DATABASE_PASSWORD = '***' DATABASE_HOST = '192.169.5.8' DATABASE_PORT = '1433' Hope this sheds some light! Best regards and thank you. On 10/26/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > As soon as I get to

Re: ado_mssql introspection patch

2006-10-25 Thread Carlos Yoder
tem and server are > you using? > > You should be able to use either manage.py in the project directory or > django-admin.py in the directory below the project directory. > Remember to run django-admin.py with the --settings option so it knows > where to look for your sett

Re: ado_mssql introspection patch

2006-10-25 Thread Carlos Yoder
at this ticket: http://code.djangoproject.com/ticket/2358. > > > > I combined that previous patch (2563) with 2358 because my patch was > > dependent on it. Make sure that you've applied the latest patch > > (mssql_update5.diff) to your Django installation. If you still

Re: ado_mssql introspection patch

2006-10-25 Thread Carlos Yoder
; > Thanks, > > > > Sean > > > > * Note: the patch relies on the changes in > > http://code.djangoproject.com/ticket/2358 > > > > > > > > > > > > > -- Carlos Yoder http://blog.argentinaslovenia.com/ --~--~-~--~~~--

Re: Returning an average from a Related Field.

2006-10-24 Thread Carlos Yoder
; solution compelling. Thanks for detailing. Plus Im sure that there will > lots of places where this type of Signals method would be handy. > > MerMer > > > > > -- Carlos Yoder http://blog.argentinaslovenia.com/ --~--~-~--~~~---~--~--

Re: Migrating from ASP.NET to Django?

2006-10-23 Thread Carlos Yoder
started coding webpages by hand back in '96, with CGI (bash), Perl, PHP, and then ASP (because of market share), and finally I've been forced to work in ASP.NET for the last 3 years or so. Don't get me wrong, I prefer C# over VBScript any day, but I was longing for the sa

Migrating from ASP.NET to Django?

2006-10-20 Thread Carlos Yoder
bsolute essence (we do price comparisons for a big catalogue of products). Has anybody tried to tackle this yet? At all? It's the whole deal: MSSQL database (I know, I know), IIS6+, C#, a lot of very specific code, etc. Is there hope, doctor? -- Carlos Yoder http://blog.a

Re: Manipulators problem -- anyone? please help!

2006-10-06 Thread Carlos Yoder
;user'] = request.user > errors = manipulator.get_validation_errors(new_data) > > or this: > > new_data = request.POST.copy() > new_data['user_id'] = request.user.id > errors = manipulator.get_validation_errors(new_data) > > patrick. > >

Re: Manipulators problem -- anyone? please help!

2006-10-06 Thread Carlos Yoder
like: ... because it won't work, and you'll get all sorts of crazy errors. Trust me, I've been there! Thanks all, and once again, the Django community rocks! -- Carlos Yoder http://blog.argentinaslovenia.com/ > Here you go Gábor, it's three views. my_data(request) find out

Re: Manipulators problem -- anyone? please help!

2006-10-06 Thread Carlos Yoder
= {} # This makes sure the form accurately represents the fields of the object. new_data = manipulator.flatten_data() form = forms.FormWrapper(manipulator, new_data, errors) rc = RequestContext(request, { 'form': form,

Re: Manipulators problem -- anyone? please help!

2006-10-05 Thread Carlos Yoder
thing, but honestly I'm now sending the 'user' value from request.user's context. As to changing to a ChangeManipulator, that'd solve part of the problem only, no? In any case, it's another thing to try out. Thanks a million, again! -- Carlos Yoder http://blog.arge

Re: long-running process. how to do it?

2006-10-05 Thread Carlos Yoder
rocesses, that actually doesn't do much -- and have a real cron running every minute. It'd give your user a sense of control, but honestly, it'd be just smoke and mirrors. I know, I know... =) -- Carlos Yoder http://blog.argentinaslovenia.com/ --~--~-~--~~---

Manipulators problem -- anyone? please help!

2006-10-05 Thread Carlos Yoder
nd. I know, I sound like Luke Skywalker on A New Hope, sorry about that! Regards, -- Carlos Yoder http://blog.argentinaslovenia.com/ -- Forwarded message ------ From: Carlos Yoder <[EMAIL PROTECTED]> Date: Oct 5, 2006 10:19 AM Subject: Manipulators problem To: django-user

Re: long-running process. how to do it?

2006-10-05 Thread Carlos Yoder
rote: > > in my django app, at some point i have to send out a LOT of emails > > (several thousand). > > > > ... > > > > so, are there any other, more elegant/simpler solutions? > > put data into DB table, and then have some script on cron which se

Manipulators problem

2006-10-05 Thread Carlos Yoder
=False, default=True) receive_modif_cars_newsletter = models.BooleanField("Subscribed to daily 'new cars' newsletter?", null=False, blank=False, default=True) def __str__(self): try: return ("%s"

Re: Request data dissapearing after do_html2python

2006-10-04 Thread Carlos Yoder
for column `user_id`Does this run deeper than I thought?Thakns a million for your help,CarlosOn 10/4/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: Hello guys,I'm experiencing a weird thing. On my production setup, an OperationalError exception is being triggered while trying to invoke a

Request data dissapearing after do_html2python

2006-10-04 Thread Carlos Yoder
Hello guys,I'm experiencing a weird thing. On my production setup, an OperationalError exception is being triggered while trying to invoke an AddManipulator.I've zeroed in down to this (excerpt of my view follows) def userprofile_add(request):    """ Handle adding new userprofiles (one2one rel to U

Re: Help with related objects

2006-10-03 Thread Carlos Yoder
Just FYI, I cracked it myself.Me gets smarter! =)If anyone googles for this and is in a similar situation, pls let me know.On 10/3/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: Hello all, I'm asking for help again, this time with related objects.I need to do what I think is a very

Help with related objects

2006-10-03 Thread Carlos Yoder
Hello all, I'm asking for help again, this time with related objects.I need to do what I think is a very simple task: allow users to edit their own preferences (using a custom 'admin' like interface).Their own preferences are located in an extension of the User model, as follows: class UserProfile(

Re: Simple manipulator to 'reserve' an item?

2006-09-29 Thread Carlos Yoder
In lieu of using a manipulator for this simple task, you could use yourown HTML form. Have your form submit to a view method that grabs your product's id/slug from the request.POST MultiValueDict and performs anupdate of your model as needed.Rajesh, thank you very much! I knew it was overkill. Nama

Simple manipulator to 'reserve' an item?

2006-09-29 Thread Carlos Yoder
Hello djangonauts!I'm facing the task of writing my first manipulator, and they look extremely cool -- (un)fortunately, my needs are extremely simple. I must allow users to 'reserve' a certain product, by just clicking on a button, which in turn would only need to modify a couple fields in the DB (

Re: Any good Python book recommendations?

2006-07-23 Thread Carlos Yoder
>> Any recommendations? I'm brand new to Python and want to learn for >> use with Django. > The "Learning Python" O'Reilly book is really, really good - one of > the best "Learning X" books I've read for any language. Even better tha

Django WORKS at Servage.net!

2006-07-20 Thread Carlos Yoder
d share it with the world -- it just took too much effort NOT to do it (imagine all sorts of silly quirks flying around at the same time). So there, I'm happy I managed! =) -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received

Re: Related tags query, many-to-many double join

2006-07-19 Thread Carlos Yoder
nteractions in your Django model > classes your database logic will all be in the same place and > maintenance should be simple. > > Cheers, > > Simon > > > -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You r

Re: Extending pluralize?

2006-07-18 Thread Carlos Yoder
t sl translation > don't have > Plural-Forms defined. > > -- > Neboj¹a Ðorðeviæ - nesh Hvala Neboj¹a! Unfortunately, I believe there's a couple of caveats still here, but this is definitely a source to investigate! Regards, -- Carlos Yoder http://carlitosyoder.blogspot

Re: ifequal template problem

2006-07-18 Thread Carlos Yoder
OK, I fixed it, by defining a 'computed' method that returns the int value in str form. So silly! def prva_registracija_mm_str (self): return str(self.prva_registracija_mm) Ohwell :-) On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > Forgot to s

Admin and limit_choices_to, part XXXIII =)

2006-07-18 Thread Carlos Yoder
the Meta.js property. Ideas? Help much appreciated, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Error with "media" dir on Windows, Python 2.3, etc

2006-07-18 Thread Carlos Yoder
t uploaded and saved via admin, but when trying to accessing them I get: Page not found: d:\dev\python23\lib\site-packages\django-0.95-py2.3.egg\django/contrib/admin/media\cars/alfa145_.jpg That path certainly looks suspicious... ideas? Mil gracias, -- Carlos Yoder http://carlit

Re: Not sure how to do this (many to many problem)

2006-07-17 Thread Carlos Yoder
he end of the page. Do you know of a way to configure and alter this behaviour? Mil gracias, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: Not sure how to do this (many to many problem)

2006-07-17 Thread Carlos Yoder
I guess I found a lead at tests\modeltests\m2m_intermediary\ if anyone knows if that's correct (or wrong as hell), please let me know :-) On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > Hello! > > I'm building a sort of b2b app that lists a car catalogue.

Not sure how to do this (many to many problem)

2006-07-17 Thread Carlos Yoder
=models.HORIZONTAL) ... but that's not what I mean. I need the special prices to be unique to Car and Wholesaler. Could anyone be so kind as to shed some light on how to do this, the Django way? Mil gracias, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~--

Re: Filter on count of ManyToManyField

2006-07-17 Thread Carlos Yoder
model is not an > option. > > I've been trying all kinds of permutations of filter, entries, count, > gt, etc, such as: > Blog.objects.filter(entries__count__gt = 0) > > No luck so far. > > Can somebody please help me? > > Thanks, > Daniel > > >

Re: ifequal template problem

2006-07-17 Thread Carlos Yoder
Forgot to say, I have the same logic working with no problem, but for a CharField, so this issue must be related to the field's datatype... On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > Hello there, > > I'm using a object_detail generic view to display some da

ifequal template problem

2006-07-17 Thread Carlos Yoder
I'm sure this is a very common task (expanding admin choices), isn't it? Best regards and big thanks, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

Re: Extending pluralize?

2006-07-16 Thread Carlos Yoder
gable into contrib? Thanks for all the feedback, and I'll get back to work :-) -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

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

Re: Extending pluralize?

2006-07-14 Thread Carlos Yoder
#x27;re stuck with a dictionary? Honestly I never saw a proper implementation of a pluralize function, that was universal enough... can we get a shot at this, at all? OTOH, the dictionary approach Ivan mentioned would still have to be in place, since nouns of different genders

Re: Extending pluralize?

2006-07-14 Thread Carlos Yoder
a universal way of doing this -- languages are the very definition of diversity! :-P What do you think, Russell? -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Can I use HAVING clause on a query?

2006-07-14 Thread Carlos Yoder
nybody done sth like this before? Any clues? Best regards, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Extending pluralize?

2006-07-14 Thread Carlos Yoder
g like this [snip] [snip] [snip] > And then adding new words that I need to form as necessary. Interesting... it was kind as I though it'd be. With all my newbie questions being answered as I thought they would, Django is becoming a much warmer place :-) Spasiva! =)

Extending pluralize?

2006-07-14 Thread Carlos Yoder
eady faced this? Best regards and thanks in advance, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Please fix my ugly code

2006-07-13 Thread Carlos Yoder
t; }) > > > > And the template you only need to display the form fields. > > > > > > Search by: > > Model: {{ filter_form.model }} > > Gorivo: {{ filter_form.gorivo }} > > > > > > > > > > The custom manipulator and associated for

Re: Django hosting

2006-07-13 Thread Carlos Yoder
www.no-ip.com ! On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have not static ip :( > > > > > -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subs

Please fix my ugly code

2006-07-13 Thread Carlos Yoder
ist, 'selected_model_id':selected_model_id, 'selected_gorivo_id':selected_gorivo_id, 'results': results }) There must be a better way of doing this, right? I'm a terrible newbie both at Python and Django -

Re: admin ordering question

2006-07-13 Thread Carlos Yoder
verbose_name_plural = "Modeli" ordering = ['znamka','opis'] Like a charm, it works. =) On 7/13/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > >> class Item(models.Model): > > > name = models.Charfield(maxlengt

Re: admin ordering question

2006-07-13 Thread Carlos Yoder
.opis) class Admin: list_filter = ['znamka']# sidebar with handy filters class Meta: verbose_name_plural = "Modeli" ordering = [&#

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread Carlos Yoder
> > not Django's fault, but related to sysadmins' ignorance). We *really* > > need to think of a "providing Django support" tutorial for sysadmins, > > as we discussed briefly in the last few days... otherwise a lot of > > people would be scared away from D

Re: Django and MySQLdb on Bluehost

2006-07-13 Thread Carlos Yoder
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'] > > > > > -- Carlos Yoder http://carlitosyoder.blogspot.

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread Carlos Yoder
;s fault, but related to sysadmins' ignorance). We *really* need to think of a "providing Django support" tutorial for sysadmins, as we discussed briefly in the last few days... otherwise a lot of people would be scared away from Django because it's "too hard"

Re: Alternative to PIL (Python Imaging Library)?

2006-07-12 Thread Carlos Yoder
o my box in Bluehost. Can anythone think of an alternative, short of telling support to install it themselves? Regards, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Alternative to PIL (Python Imaging Library)?

2006-07-12 Thread Carlos Yoder
g a lot of warnings and dying miserably. Bluehost¶ support guys haven't been helpful yet, so... I turn to you. Is there a way around PIL? Can Django use another kind of library? If not, has anyone got around this? Maybe by getting a precompiled Linux PIL? Thanks a lot! -- Ca

Are choices supported on DateField?

2006-07-11 Thread Carlos Yoder
Hello there, Is there a way to constrain a DateField with a choices tuple? I want the admin to restrict dates to valid months and years only. Maybe I should make this happen with two different IntegerFields? Best regards, -- Carlos Yoder http://carlitosyoder.blogspot.com

Re: Please help - FCGI installation woes

2006-07-11 Thread Carlos Yoder
Gábor, I'm reading Jeff's tutorial, and I believe I'm seeing the light at the end of the tunnel. Will update later, thank you! On 7/11/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > > Carlos Yoder wrote: > > Hello guys, > > > > I'm having a

Please help - FCGI installation woes

2006-07-11 Thread Carlos Yoder
for the time to read this, and if you can help me out, you don't know how big of a Django evangeliser you'll find in me! (at least in Slovenia, where I'm currently based) =) Best regards and thanks a million, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~

Re: Django & Apache 1.x

2006-07-06 Thread Carlos Yoder
> i hope this (chaotic) explanation helps. if not, replay :) > gabor Gábor yes it's very simple, to-the-point, and a WELCOME reply. Again, köszönöm szépan to you!!! Best regards, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You rec

Re: Documentation for hosting providers?

2006-07-06 Thread Carlos Yoder
ls of Django support (if any), and ceirtanly they'd be more likely to write a no-frills, sysadmin-to-sysadmin kind of doc... Anyone? :-) -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Django & Apache 1.x

2006-07-06 Thread Carlos Yoder
fy this quickly... thanks a lot!!! -- Carlos Yoder http://carlitosyoder.blogspot.com > apache 1.3.something + mod_fastcgi, > the fastcgi processes are configured as FastCgiServer, > so they are managed by the apache process. > the fastcgi instances use flup. --~--~-~--~-

Documentation for hosting providers?

2006-07-05 Thread Carlos Yoder
provide support for Django, especially geared towards busy ISP admins? It should certainly help me (selfish selfish selfish), but I'm sure also other people too. What do you think? Warm regards, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~

Re: Django & Apache 1.x

2006-07-05 Thread Carlos Yoder
I'm personally trying them to understand that it's python code, nothing that needs to be 'installed', but well, I'm not sure how it works on their side. Too bad, I need Django hosting for a quick, simple application, and I need it fast :-( Ohwell

Re: Django & Apache 1.x

2006-07-04 Thread Carlos Yoder
hank you very much, or should I say köszönöm szépan? :-) Regards, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Django & Apache 1.x

2006-07-04 Thread Carlos Yoder
documentation wizards, is this worth addressing? Best regards, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Django & Apache 1.x

2006-07-04 Thread Carlos Yoder
nd here: http://www.djangoproject.com/documentation/install/)...? Can anybody confirm having a Django app running under Apache 1.x + FastCGI? Is this actually a silly question, since let's say Dreamhost gives only Apache 1.x support? :-) Many thanks, -- Carlos Yoder http://carlitosyoder.blogspo

Django & Apache 1.x

2006-07-04 Thread Carlos Yoder
vide Apache 1.x, mod_python (at request), and FCGI. Dunno if they do lighthttpd, though. Can anyone please confirm or deny this? Thank you thank you thank you! -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you ar

Re: Guidance would be most welcome

2006-06-15 Thread Carlos Yoder
> > I have been digging into the docs again and it seems to me that Django > is flexible enough to handle this without having to dive into the > source. > > Of course it would be nice just to call the save() and delete() methods > and everyt

Re: How to write a module level method rather than a instance method

2006-05-22 Thread Carlos Yoder
julián <[EMAIL PROTECTED]> wrote: > > Did you tried Google? > > http://www.google.com/search?hl=en&lr=&q=model+method+starts+with+%22_module_%22&btnG=Search > > http://www.djangoproject.com/documentation/models/custom_methods/ > > > > > -- Carlos Yoder

Re: No Subclassing in models yet? How would you guys do the following:

2006-05-10 Thread Carlos Yoder
> Okay point taken - I'll stop trying to be 'elegant' and just live with > the problem and deal with managing this with a 'VehicleType' model and > several redundant fields. > > It is slightly anoying though! Annoying? I work on Windows, you insensiti

Re: Django + fastCGI + bluehost

2006-04-10 Thread Carlos Yoder
d > to make sure) > - do i have to buy at least an one-year subscription? can't i just pay > for the first month at the beginning? (it seems that you either buy a > 12month subscription for 7.95$/month, or a 24month one for 6.95$/month) > > thanks, > gabo

Django + fastCGI + bluehost

2006-04-07 Thread Carlos Yoder
P-CGI/0.1b - Is there anything else I should ask, or this setup could run Django successfully? Thanks a lot! -- Carlos Yoder [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because yo