Re: inserting multiple images EASILY

2005-11-29 Thread Waylan Limberg
On 11/29/05, Emanuele <[EMAIL PROTECTED]> wrote: > > Maybe it's a little off-topic, but I'm thinking about a problem I need > to solve for a future application I want to code using django. And I > think many of you can help me. > Basically users will need to insert multiple images associated to

Quoting in tables clause

2005-11-29 Thread Russell Keith-Magee
Hi all, When you use a "tables" kwarg in a database query method (get_list, etc), you provide a list of strings which correspond to the database names of the tables you want to have joined. You can then specify a "where" clause to narrow the join. When the provided table name is used in the

inserting multiple images EASILY

2005-11-29 Thread Emanuele
Maybe it's a little off-topic, but I'm thinking about a problem I need to solve for a future application I want to code using django. And I think many of you can help me. Basically users will need to insert multiple images associated to an object and its features (images are pictures of that

FormField.prepare

2005-11-29 Thread Daniel James
Hello, django.core.formfields.FormField has a method 'prepare' which is described as a "Hook for doing something to new_data (in place) before validation." which sounds very useful. But as far as I can tell it never gets called. Am I missing something? Daniel

Re: customizing admin

2005-11-29 Thread James Bennett
On 11/29/05, Medium <[EMAIL PROTECTED]> wrote: > I don't think it has anything to do with skill or their ability to pick > it up and get use to it over time. You can say that about any syntax > (good or bad). My main point i guess was that if someone saw django > template at a glance (which is

Re: Exception Location: C:\soft\django_src\django\templatetags\adminmedia.py

2005-11-29 Thread kmh
Hi Olivier, Django is undergoing some rapid changes before the 1.0 release and some of the files are being relocated in the source tree. Unfortunately the byte-compiled .pyc files are not managed by subversion and can get left hanging about in places they aren't meant to be, but where Python

Exception Location: C:\soft\django_src\django\templatetags\adminmedia.py

2005-11-29 Thread olive
Hello, when I try to access the admin site Django is complaining aout missing adminmedia.py which is true. There is a adminmedia.pyc instead. svn up does not retrieve the file. Debug message is: AttributeError at /admin/ 'module' object has no attribute 'register_tag' Tequest Method:

Re: customizing admin

2005-11-29 Thread Waylan Limberg
> I don't think it has anything to do with skill or their ability to pick > it up and get use to it over time. You can say that about any syntax > (good or bad). My main point i guess was that if someone saw django > template at a glance (which is usually how I evaluate things initially) > the

Re: replaces_module

2005-11-29 Thread Cheng Zhang
On Nov 29, 2005, at 10:26 PM, Adrian Holovaty wrote: class META: db_table = 'anastas_users' replaces_module = 'auth.users' admin = meta.Admin() # field names to remove from parent model remove_fields = ['password', 'is_staff', 'is_superuser'] Would you

Re: replaces_module

2005-11-29 Thread Grigory Fateyev
Hello Adrian Holovaty! On Tue, 29 Nov 2005 08:26:11 -0600 you wrote: > To "remove" fields in the parent class, use "remove_fields". For > example: [...] >class META: >db_table = 'anastas_users' >replaces_module = 'auth.users' >admin = meta.Admin() ># field

Re: customizing admin

2005-11-29 Thread Medium
Tom Tobin wrote: On 11/29/05, Medium <[EMAIL PROTECTED]> wrote: Robert Wittams wrote: Medium wrote: 4. Can we change the template {{ variable }} to something like ${variable} I don't mind the {% %} but {%starttag%}{{var}}{%endtag%}.. You can assume this is

Re: Error With /media In URL?

2005-11-29 Thread JA
OK, think I may have found the problem with this. In the settings.py, ADMIN_MEDIA_PREFIX is set to /media/ by default. I'm going to sort through the code, but I think that's the starting point. Comments? J

replaces_module

2005-11-29 Thread Grigory Fateyev
Hello! I have forum on phpbb (about 2 users), and now want to integrate auth with django. Went throgh legasy database doc and have this table: class User(users.User): user_id = meta.IntegerField() user_active = meta.CharField(maxlength=1) username = meta.CharField(maxlength=25)