Re: editing django-admin.py

2009-08-12 Thread Russell Keith-Magee
On Thu, Aug 13, 2009 at 12:51 PM, ashish tiwari wrote: > > > when i try to run the "django-admin.py" file in my pardus linux system > than i got the error"c:\python25\python.exebad interpreter" > something like this... >  i enter the command "whereis django-admin.py" > and i got the path w

editing django-admin.py

2009-08-12 Thread ashish tiwari
when i try to run the "django-admin.py" file in my pardus linux system than i got the error"c:\python25\python.exebad interpreter" something like this... i enter the command "whereis django-admin.py" and i got the path where it is present... i open the .py file of django-admin.py from usr/

Re: Shouldn't custom fields in ModelForms pick up model Field options by default?

2009-08-12 Thread Malcolm Tredinnick
On Wed, 2009-08-12 at 20:05 -0700, Kevin Henry wrote: [...] > But if you decide to customize the widget, for example: > > class AuthorForm(forms.ModelForm): > name = forms.CharField(widget=forms.TextInput(attrs={'size':80})) > > class Meta: > model = Author > > the form field no

Shouldn't custom fields in ModelForms pick up model Field options by default?

2009-08-12 Thread Kevin Henry
Take a simple Model and ModelForm like this: class Author(models.Model): name = models.CharField(max_length=80, blank=True, default="Joe", help_text="A name") class AuthorForm(forms.ModelForm): class Meta: model = Author The resulting form will reflect the desired help text, de

Re: 1.2 Proposal: Finish contrib.comments Moderation

2009-08-12 Thread Waylan Limberg
Sigh! I guess I sent this out a little prematurely. On Wed, Aug 12, 2009 at 3:50 PM, Waylan Limberg wrote: [snip] > > 2. Implement ticket #11625 -- Add admin actions to the comments admin. > [snip] > > 3. Using a proxy model and custom manager, create a second admin > instance which only lists co

Re: FileFields and file ownership

2009-08-12 Thread Chris Beaven
On Aug 12, 3:08 pm, Malcolm Tredinnick wrote: > One of the reasons we *don't* delete files automatically [...snip] Just a correction: Django currently *does* delete files automatically when a model instance is deleted. --~--~-~--~~~---~--~~ You received this messa

Re: Admin interface not preventing simultaneous editing of the same record

2009-08-12 Thread David
On Aug 12, 12:20 am, Alex Gaynor wrote: > Personally I think including > a JSON dump of the model with the page is the easiest solution, but I > could be convinced otherwise. I have made a little bit of progress: I already had a subclass of forms.ModelForm. I added a form field, overrode over

Re: FileFields and file ownership

2009-08-12 Thread Ole Laursen
On Aug 12, 5:08 am, Malcolm Tredinnick wrote: > This is an assumption that isn't universally correct and it's > implications appear to be vastly under-appreciated. One of the reasons > we *don't* delete files automatically is that you cannot you know for > certain, given no other information, tha

Re: 1.2 Proposal: django debug toolbar in contrib

2009-08-12 Thread Rob Hudson
I'm not sure if this is the place but here are some other issues or questions I have if this were to happen... * The jQuery question is a big one. I've taken strides to make the debug toolbar interoperate with other popular JS frameworks (mootools and prototype, namely). But if jQuery were deci

1.2 Proposal: Finish contrib.comments Moderation

2009-08-12 Thread Waylan Limberg
Currently, contrib.comments has a very useful (and customizable) mechanism for putting questionable comments into moderation. However, approving/ rejecting comments afterword is still unfinished. There is a set of urls/views/templates which provide a decent way to do this, but it is currently undo

Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-12 Thread Michael Glassford
Previously accidentally posted to the Django users group instead of here. Sorry! http://code.djangoproject.com/ticket/7539 suggests a way to add On Delete and On Update support to Django foreign key fields, and includes a patch that implements the suggestions. At the time I submitted it, getti

Re: Form.Widgets use of Super (of lack there of)?

2009-08-12 Thread Alex Gaynor
On Wed, Aug 12, 2009 at 10:19 AM, Joshua Russo wrote: > Why is it that Super is only used sometimes in the __init__ methods of the > existing widgets? Is this by design? I thought that if you used Super > anywhere you had to use it everywhere, otherwise the one place you do use it > wouldn't behav

Form.Widgets use of Super (of lack there of)?

2009-08-12 Thread Joshua Russo
Why is it that Super is only used sometimes in the __init__ methods of the existing widgets? Is this by design? I thought that if you used Super anywhere you had to use it everywhere, otherwise the one place you do use it wouldn't behave the way you anticipate. That is, if anyone ever uses multiple

Re: Django NYC

2009-08-12 Thread James Richards
LOL. > > Hi Django peeps > If you are interested in the startup world and becoming a partner on > a new start up initiative in the NYC area, please email me directly. > > We are looking for ONE serious startup person with interest in > entrepreneurship. > If you can not commit to becoming part of

Re: FileFields and file ownership

2009-08-12 Thread Jonas Pfeil
Hi, I just wanted to mention there still is ticket #7048 "Support clearing FileFields with ModelForms" [1], which also deletes files, if configured to do so. I don't think this is particularly evil, if off by default (which it is not in the current patch, but that's easy to change). This was ori

Re: Admin interface not preventing simultaneous editing of the same record

2009-08-12 Thread Doug Blank
On Aug 12, 12:17 am, David wrote: > On Aug 12, 12:06 am, Russell Keith-Magee > wrote: > > > Another cause for hesitation is that it would be an admin-specific > > solution to the problem. A generic solution that would work for all > > ModelForms would be nice if it is possible. > > Agreed. I sha

Re: Why does Django make it hard to debug tags?

2009-08-12 Thread Karen Tracey
On Wed, Aug 12, 2009 at 8:03 AM, Russell Keith-Magee wrote: > > On Wed, Aug 12, 2009 at 9:45 AM, SmileyChris wrote: > > > > http://code.djangoproject.com/ticket/11461 > > > > DebugNodeList catches all exceptions, sticks them in a > > TemplateSyntaxError, and stuffs the original exception in the n

Django NYC

2009-08-12 Thread atorres
Hi Django peeps If you are interested in the startup world and becoming a partner on a new start up initiative in the NYC area, please email me directly. We are looking for ONE serious startup person with interest in entrepreneurship. If you can not commit to becoming part of a team and a core me

Directly adding users in admin for group

2009-08-12 Thread Filip Gruszczyński
Hi! Some time ago I have proposed a patch for Group admin, that allows direct addition of users to the group. Here is the link to the ticket: http://code.djangoproject.com/ticket/10964 There is status 'Design decision needed', so I would like to ask about it, so I could either close it or try to

Re: Why does Django make it hard to debug tags?

2009-08-12 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 9:45 AM, SmileyChris wrote: > > http://code.djangoproject.com/ticket/11461 > > DebugNodeList catches all exceptions, sticks them in a > TemplateSyntaxError, and stuffs the original exception in the new > exception. I'm not sure why this is done, but it breaks debugging and

Re: App Engine support

2009-08-12 Thread Malcolm Tredinnick
On Wed, 2009-08-12 at 03:04 -0700, Waldemar Kornewald wrote: > On Aug 12, 11:40 am, Malcolm Tredinnick > wrote: > > On Wed, 2009-08-12 at 02:32 -0700, Waldemar Kornewald wrote: > > > Is there a way to override sql.subqueries? > > > > Not yet. As mentioned earlier in the thread, a large chunk of t

Re: 1.2 Proposal: django debug toolbar in contrib

2009-08-12 Thread Russell Keith-Magee
On Tue, Aug 11, 2009 at 11:59 PM, Rob Hudson wrote: > > On Tue, Aug 11, 2009 at 7:01 AM, Russell > Keith-Magee wrote: >> Firstly, there is the simple issue of ownership and copyright. >> Obviously, those that have written DDT components that are to be >> included need to be onboard with this idea.

Re: App Engine support

2009-08-12 Thread Waldemar Kornewald
On Aug 12, 11:40 am, Malcolm Tredinnick wrote: > On Wed, 2009-08-12 at 02:32 -0700, Waldemar Kornewald wrote: > > Is there a way to override sql.subqueries? > > Not yet. As mentioned earlier in the thread, a large chunk of the > process of making non-SQL support is to allow wholesale overriding o

Re: App Engine support

2009-08-12 Thread Malcolm Tredinnick
On Wed, 2009-08-12 at 02:32 -0700, Waldemar Kornewald wrote: > On Aug 12, 2:09 am, Russell Keith-Magee > wrote: > > > Is the consensus that further refactoring or rethinking of things like > > > QuerySet and Query are required to make this happen? > > > > Not really a consensus - more a general f

Re: App Engine support

2009-08-12 Thread Waldemar Kornewald
On Aug 12, 2:09 am, Russell Keith-Magee wrote: > > Is the consensus that further refactoring or rethinking of things like > > QuerySet and Query are required to make this happen? > > Not really a consensus - more a general feeling that there are some > SQL-specifics that still need to be purged.

Re: Why does Django make it hard to debug tags?

2009-08-12 Thread Yuri Baburov
Hi Chris, Found the same problem after broken module import at urlresolvers.py: raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)) I guess this solution is not known to patch creators? I didn't know about this solution, and I thought it is impossible