Re: Is there a solution in Django?

2006-02-12 Thread PythonistL
Jakub, Thanks for your reply. I found out that I can not use ALTER DATABASE `db_name` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci after I create the database. If I do not, then I can use utf-8 coding and it works well.However, I do not know why.:-( Regards, L.

Re: Multiple Database & 1 Django

2006-02-12 Thread Russell Keith-Magee
On 2/13/06, Siah <[EMAIL PROTECTED] > wrote: Hi,I am aware that there is a ticket for it:http://code.djangoproject.com/ticket/1142 I was wondering if the wrapper was small enough that can be squeezed by in version 9.2 or anytime soon as I am in desperate need to use it.Specifically, to separate che

Multiple Database & 1 Django

2006-02-12 Thread Siah
Hi, I am aware that there is a ticket for it: http://code.djangoproject.com/ticket/1142 I was wondering if the wrapper was small enough that can be squeezed by in version 9.2 or anytime soon as I am in desperate need to use it. Specifically, to separate cheap data from expensive data. Thanks fo

Re: Is there a solution in Django?

2006-02-12 Thread Jakub Labath
Hi, This seems more like a postgres problem more than a django one. It would appear that you have data in different charsets (bad idea). What I would do is just dump the data (convert them to utf8 if needed - see iconv) and then restore everything in a utf8 database. 1. pg_dump -U someuser blah

Re: Help with Admin and modpython

2006-02-12 Thread Kenneth Gonsalves
On Monday 13 Feb 2006 3:41 am, ChaosKCW wrote: > TemplateSyntaxError: Caught an exception while rendering. > > any ideas? > > There are some posts suggesting its a __repr__ fuckup, but I cant > see one and it works on the stadnalone sevrer. 99% some syntax error, look for a missing comma in the M

Help with Admin and modpython

2006-02-12 Thread ChaosKCW
Hi Following the tutorials and they worked fine on the standalone dev server. When we move them to apache and mod_python. we get the login screen fine, but apon login, we get: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/p

Re: subclasses reverse field order

2006-02-12 Thread Jakub Labath
Hi, It still reverses the order for me and I'm only adding fields as well. Fortunately I don't really need the parent class for anything. So i just listed fields in parent in reverse order, so my children classes then get the fields in proper order. It's crude but It works. Ideally there would be

Re: Django+Postgre+Apache+Windows

2006-02-12 Thread Tim
Disclaimer--I just barely figured this out myself. It could be the mod_python set up. Is this the case? In the description of how to set up the conf file for apache to work with mod_python, I think there's an error. They say you should have this: AddHandler python-program .py PythonHandl

Re: Model Basics

2006-02-12 Thread ChaosKCW
PS the project and app level DB would also allow for creater scalablity and better seperation of concerns. One last question, is it possible to add a glboal hook into the ORM layer ala SOX requiremens i the USA. To proide an audit of any transaction ?

Model Basics

2006-02-12 Thread ChaosKCW
Hi I would like to ask about three things: 1) can you access the session user object from the model _pre_save 2) can you subclass a model. 3) app level db Example of what I want: class Audited_Model(meta.Model): audit_created = meta.DateTimeField('Date and Time this account was created',

url in Tinymce

2006-02-12 Thread Mary Adel
Dear All , I can't change the colors of the url in Tinymce althoughi could change the font and size and evrything can anyone help me how i could change the color of the url Thanks, Mary

ImageField with core=True: working as intended or bug?

2006-02-12 Thread Jenan Wise
I have a many to one relationship: class Album(meta.Model): # ... class Picture(meta.Model): album = meta.ForeignKey(Album, edit_inline=meta.TABULAR) image = ImageField(upload_to="pictures/") # ... The only core field for Picture is image. However, this seems to automatically de

Re: Is context variable 'user' automatic in templates?

2006-02-12 Thread Amit Upadhyay
On 2/12/06, Luke Plant <[EMAIL PROTECTED]> wrote: On Saturday 11 February 2006 22:00, Roberto Aguilar wrote:> I've noticed that in certain instances, in a flatpage, for example,> the user context variable is available in my templates.  However,> most of the time I have to explicity provide it like