Override table name(s) in application deployment

2011-03-24 Thread Flo Ledermann
ove scenarios anyway. What do you think? Is there something I've overlooked? Best, Flo -- 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@googlegroups.com. To unsubscribe from thi

Why I cannot save an object in administration?

2011-01-23 Thread Flo
ayed". It seems that Django redirected the page to an unkonw site. I'm using Django 1.2.4 & Python 2.6.6 in WinXP. Any help will be highly appreciated. Thanks!! Flo -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: Why is (db) Field.form_class hardcoded to TypedChoiceField if field has choices?

2009-06-25 Thread Flo Ledermann
I am sorry folks, I just found the corresponding issue: http://code.djangoproject.com/ticket/9245 however, i would still be interested in discussing the reasons behind this - and why the patch provided in the ticket did't get applied yet ;)

Why is (db) Field.form_class hardcoded to TypedChoiceField if field has choices?

2009-06-25 Thread Flo Ledermann
choices are defined, if form_class is a subclass of ChoiceField an if so, leave it alone. Otherwise the default (TypedChoiceField) can be used as it is the case now. What do you people think? I could open a ticket if feedback here suggests so. All other suggenstions regarding my code are welcome!

Re: Shortcut for combining "with...as" and "include" template tags?

2009-01-21 Thread Flo Ledermann
tags (link)" - I think this is really something that people coming from other frameworks have to be pointed to. Thanks for the insightful discussion, as always! Flo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Shortcut for combining "with...as" and "include" template tags?

2009-01-21 Thread Flo Ledermann
on). OK, the "long line" argument and short tags are a point, but I still see the maintenance of multiple nested levels of {% with %} context as much more problematic. Well, anyway, thanks for clarification, if anyone thinks I should carry this t

Shortcut for combining "with...as" and "include" template tags?

2009-01-20 Thread Flo Ledermann
r technique to do things like that in a readable and straightforward way? I wouldn't want to write a custom template tag for things that only concern presentation and can be done entirely in the template language. Regards, Flo --~--~-~--~~~---~--~~ You received th

Re: Change label for 'None' value in ModelChoiceField

2009-01-20 Thread Flo Ledermann
that I tried that without success before. Anyway, it works perfectly now. Probably a typo in my earlier attempt... Thanks, Karen! Flo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Change label for 'None' value in ModelChoiceField

2009-01-20 Thread Flo Ledermann
ll '---' for the None choice and not 'Nothing here' as I would have expected. Any suggestions how I could change that default value, preferrably even without introducing my own subclass? Regards, Flo Ledermann --~--~-~--~~~---~--~~ You re

Re: debug template tag gives me: "'ascii' codec can't encode character"

2009-01-12 Thread Flo Ledermann
in my settings. Will open a ticket once I am back from a meeting. Regards, Flo On Jan 11, 2:22 pm, Malcolm Tredinnick wrote: > On Sun, 2009-01-11 at 03:41 -0800, Flo Ledermann wrote: > > Hi all, > > > I just bumped into a problem I can't resolve: after adding the {%

Re: debug template tag gives me: "'ascii' codec can't encode character"

2009-01-11 Thread Flo Ledermann
Oh, I should probably add that I am using # coding=utf-8 on some of my source files, because they contain unicode default values etc. Flo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

debug template tag gives me: "'ascii' codec can't encode character"

2009-01-11 Thread Flo Ledermann
aracter u'\u2019' in position 19: ordinal not in range(128) I haven't used the debug tag before, and googleing the error message didn't bring up anything useful for me, so I am turning to the group for help. I paste the stack trace and a subset of my settings below. Thanks

Re: ModelForm: exclude fields missing in request

2009-01-09 Thread Flo Ledermann
on this issue, I would rather look into creating a custom template tag (which I never did before) to extract individual fields of a model and render an AJAX-capable form to update them. I will let you all know if I ever find the time ;) All the best, Flo --~--~-~--~~

Re: ModelForm: exclude fields missing in request

2009-01-09 Thread Flo Ledermann
, Malcolm Tredinnick wrote: > On Thu, 2009-01-08 at 07:08 -0800, Flo Ledermann wrote: > No. Don't ask the form class to read your mind. Create a form that knows > which fields it expects so that errors can be raised correctly and > validation will occur normally. I am not asking

Re: ModelForm: exclude fields missing in request

2009-01-09 Thread Flo Ledermann
. In my use case I have a small form to edit each individual field of the model - so i would have to create or customize a form for every one of its fields. With my approach I can control in the template which fields of the ModelForm are rendered and these are then the only fiel

Re: ModelForm: exclude fields missing in request

2009-01-08 Thread Flo Ledermann
data before saving. Is this the way the pro's in this group would do it? I could still see some demand to put this into the core form logic (controllable by a flag), what do you think? Best regards and shout outs to everyone using Django,

ModelForm: exclude fields missing in request

2009-01-08 Thread Flo Ledermann
the default behavior? I believe the issue is actually not constrained to ModelForms but probably applies to all forms in general, but it would be especially handy to use ModelForms in such a sparse way in some scenarios. Regards, Flo Ledermann --~--~-~--~~~---~--~~

Re: Getting SQL from QuerySet

2008-12-30 Thread flo...@gmail.com
I think that >>> print my_query_set.query.as_sql() should do the trick. Thanks, Eric Florenzano On Dec 30, 12:11 pm, Info Cascade wrote: > Hi -- > > I am getting intermittent errors on certain database queries on our > production server. > I am having a hard time duplicating them (most of the

Re: Project Setup and PYTHONPATH

2008-11-27 Thread Flo Ledermann
reconsideration of how these things are set up? (besides posting in this forum) all the best, flo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Project Setup and PYTHONPATH

2008-11-26 Thread Flo Ledermann
Hi all, my name is flo, i am relatively new to django but would consider myself an experienced web developer. I am sorry if this has been asked hundreds of times, but after doing somewhat extensive research i still would like to gain some insight into the design decisions involved in how

500 error - can't tie down the exception

2008-09-16 Thread Flo
Hi, Hi, I have the following code fragment that I call via an Ajax call (from prototype), it throws an exception that I can't tie down - i don't get any console output and the code runs fine when i simulate it in the shell - so I assume it's related to the incoming POST parameter. The result of t