Problems with unicode chars in model descriptions?

2010-06-09 Thread Benjamin Reitzammer
Hi, I'm having a strange problem right now, and I couldn't find any reference yet. I'm starting with a fresh new project, add a very simple model and register this model with the admin app. Like the example files below. Point is, that I use translated texts as field names. The problem I'm having:

Re: Multiple instance of the same app

2010-04-19 Thread Benjamin Reitzammer
Hi, maybe I missed something in you explanation, but if you want the same code powering multiple sites and each of the sites' data reside in their own database, while all sites still have the same model (this is were I'm unsure if I understood you correctly), why don't you simply use multiple setti

Re: Giving up PHP. ...Can't decide between Django & Rails

2010-04-16 Thread Benjamin Reitzammer
Hi everyone, one thing I would take into consideration, when evaluating languages/frameworks is the community. And I cannot stop being amazed at the Python/Django people. I mean just look at this thread: Someone comes in with a (serious) question, that would usually end in flamebait and religious

Re: readonly unittests for production site

2010-04-15 Thread Benjamin Reitzammer
Hi Thomas, how did you make sure, that the tests are read-only? Did you apply any special measures/tricks (like using a special DJANGO_SETTINGS_MODULE, that has read-ony access to the database), or are your tests read-only by convention and you trust the developer that he/she does the RightThing?

Re: How to locate the OS user name? [newbie]

2010-03-25 Thread Benjamin Reitzammer
Hi Bob, this not a Django specific question/problem but more a general Python question. The information you are looking for is most likely located in the os.environ object. So take a look at this in your python commandline/shell >>> import os >>> [i for i in os.environ.items()] and look for the

save_or_update() method on models?

2005-12-13 Thread Benjamin Reitzammer
Hi there, are there any plans on providing something like a save_or_update() method for model objects? I haven't found any ticket or other information regarding this. Maybe this is considered bad practice, but then I would be very interested to know why, if it's the case. Thanks for your help Be

Extend list template of admin app?

2005-11-23 Thread Benjamin Reitzammer
Hi, I would like to add some custom mass-editing capabilities to the admin app, and for this I would like to know if it's possible to extend the list template of the admin app. Looking at the code in django/contrib/admin/views/main.py I see, that the template is entirely dynamically created (whic