extending admin interface

2005-08-29 Thread Igor Goryachieff
Hello, guys! Is there a good solution to extend admin interface (including additional fields for users table) without hacking Django sources? In example I want to add extra fields for users table such as site, birthdate, jabber and so on and manage it from admin interface. Thank you! -- I

Re: DateTimeField TypeError: replace() takes no keyword arguments?

2005-08-29 Thread [EMAIL PROTECTED]
I ran into this exact same error today. I have an object with 2 dateTimeField's on is required and the other isn't. If I fill in the first dateTime but leave the 2nd on blank then I get this error. Here is a sample model: from django.core import meta class Event(meta.Model): start_date =

Re: Basic file upload (not model file object)

2005-08-29 Thread Jason F. McBrayer
On Mon, 2005-08-29 at 20:04 -0700, Leonardo Santagada wrote: > Just guessing, but in python strings are byte arrays, so I don't think > there is any error in that. Or maybe there is a problem with the form > sending the content and the validator expecting a filename, or the > inverse. > > Just my

Re: Basic file upload (not model file object)

2005-08-29 Thread Leonardo Santagada
Just guessing, but in python strings are byte arrays, so I don't think there is any error in that. Or maybe there is a problem with the form sending the content and the validator expecting a filename, or the inverse. Just my 2 cents, and as noone answered this I thought it may help

Re: Anyone working on Open Source Django Apps?

2005-08-29 Thread [EMAIL PROTECTED]
3 things I would like to see with regards shared apps: 1. A convention for sharing applications. This isn't too hard because django is already very well organized. The only outstanding question I have is dealing with the importing of application modules that are not in the models. For instance, i

Re: Anyone working on Open Source Django Apps?

2005-08-29 Thread [EMAIL PROTECTED]
Here's the long version: http://www.greenleaftech.net/projects/jobmonitor Basically it's an automated email monitoring system. Sys Admins can use it to check logs across multiple platforms, catch specific error message, and check on a specific schedule. Thanks, Tom

Re: Anyone working on Open Source Django Apps?

2005-08-29 Thread asrenzo
[EMAIL PROTECTED] a écrit : > Has anyone begun working on an open source apps for Django? Is there > any plan in the works for creating a repository of open source Django > apps? > > I am looking to start an open source forum software application and I > want to make sure I am not duplicating an

Re: Anyone working on Open Source Django Apps?

2005-08-29 Thread Adrian Holovaty
On 8/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Let me know when you get that up and running, I have one to add to it. Sure. What's the app? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Storing models in sessions

2005-08-29 Thread Maniac
Hi! I have a model in my app representing some kind of client's working environment. For registered clients I refer this environment model from a client's model. And for non-registered users of site I'm going to create temporary environments. Naturally I want to use Django's sessions for the

Re: Anyone working on Open Source Django Apps?

2005-08-29 Thread [EMAIL PROTECTED]
Let me know when you get that up and running, I have one to add to it. Thanks, Tom

Re: Anyone working on Open Source Django Apps?

2005-08-29 Thread Adrian Holovaty
On 8/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Has anyone begun working on an open source apps for Django? Is there > any plan in the works for creating a repository of open source Django > apps? > > I am looking to start an open source forum software application and I > want to make

Re: Choices or lookup-tables

2005-08-29 Thread Adrian Holovaty
On 8/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > my_print = Print(paper_type=1) > print my_print.paper_type > > will print out 1. Is there a recommended pattern for printing out > "Letter"? Generally this is the pattern we've used in our own code: """ class Print(meta.Model): pape

Re: HTMLField

2005-08-29 Thread Petar Maric
I personaly recommend XStandard (http://xstandard.com/), AFAIK it is *the best* WYSIWYG online XHTML editor on the market. They have a piad version and a free version - which rocks as well, only it lacks web services support and a few more sexy features. PS: Don't hate me because it's ActiveX con

Anyone working on Open Source Django Apps?

2005-08-29 Thread [EMAIL PROTECTED]
Has anyone begun working on an open source apps for Django? Is there any plan in the works for creating a repository of open source Django apps? I am looking to start an open source forum software application and I want to make sure I am not duplicating any effort. thanks! Ian

Re: NameError Exception

2005-08-29 Thread Bryan L. Fordham
On Mon, Aug 29, 2005 at 09:45:33AM -0700, Sebastien Fievet wrote: > > Complete python interpreter code : > >>> from django.models.mobilespecs import devices > >>> d = mobilespecs.Device('generic', 'root', '', False) > Traceback (most recent call last): > File "", line 1, in ? > NameError: name

Re: Choices or lookup-tables

2005-08-29 Thread [EMAIL PROTECTED]
Is there a recommended approach to displaying the choice text rather than integer? for instance: my_print = Print(paper_type=1) print my_print.paper_type will print out 1. Is there a recommended pattern for printing out "Letter"? I have been doing methods using a dict that I use to create the

NameError Exception

2005-08-29 Thread Sebastien Fievet
Hi all, I'm just stating with Django and it's API (and Python too). Thanks to all developers to this Framework. I'm trying to make my own application (on Debian system). So, I've read the documentation, and made all symbolic links than needed and set my environment variables. I've created my model

Basic file upload (not model file object)

2005-08-29 Thread Jason F. McBrayer
I'm almost certainly missing something very, very simple here, but I haven't been able to find what it is on my own. One view in my app should allow users to upload an OPML file, which the app will parse and use to import feeds, but which won't otherwise be stored. As with most other non-model-b

Re: Hand Made SQL execution

2005-08-29 Thread asrenzo
Thx a lot, that's what I missed. Regards, Laurent.

Re: Hand Made SQL execution

2005-08-29 Thread Adrian Holovaty
On 8/29/05, asrenzo <[EMAIL PROTECTED]> wrote: > Does anybody know how to execute an hand made sql query ? I've looked > at django.core.db but I didn't find anything. Am I blind ?? Hey Laurent, Check out this model example: http://www.djangoproject.com/documentation/models/custom_methods/ You

Hand Made SQL execution

2005-08-29 Thread asrenzo
Hi, Does anybody know how to execute an hand made sql query ? I've looked at django.core.db but I didn't find anything. Am I blind ?? Regards, Laurent.