Django + mod_python

2007-06-05 Thread Gerard M
Hello dear django users community. I have a little question, I've been digging for the past weeks trying to get together all the technologies I need to host a django powered app, and this is what I've managed to do: I'm running Linux Ubuntu 7.04 Feitsy Fawn distro, I have Apache/2.2.3

Issue with MySQL wrapper

2007-05-15 Thread Gerard M
Hi guys I have a big problem with this wrapper im using Ubuntu 7.04 and I want to install python-MySQLdb, I used synaptics and it is installed, but when I try to do >>> import MySQLdb and I get this error: Traceback (most recent call last): File "", line 1, in File "MySQLdb/__init__.py",

Re: Issue with database Postgresql :(

2007-05-08 Thread Gerard M
Thanks for all your help guys, but I'm facing another little thing here, if I'm getting the word from a file (this means I'm not typing the word directly into the code), for example: for line in textf: tempwords = line.split(None) for c in range(len(tempwords)):

Re: Issue with database Postgresql :(

2007-05-08 Thread Gerard M
Thanks for your help Rafael, but I got into another trouble trying to encode my string like this; I have the unicode string in a variable lets say w = ataché, how can I tell python/django that the string "w" is a unicode string and how can I make the encoding, because If I type w.encode('utf-8'),

Re: Issue with database Postgresql :(

2007-05-08 Thread Gerard M
Well I did not create the table myself on postgreSQL, I used django manage.py syncdb and that created my database from my models, and I have to build it like that because thats the way I access to the tables too, so I need to find a way to alter them or to set a collation or to change the

Issue with database Postgresql :(

2007-05-08 Thread Gerard M
Hello dear django community, I'm having a bad time with an issue that I haven't been able to solve with my database, the problem is this: Whenever I try to save a word containing "special" characters in it (for example áéíóú) I get the following django error: "invalid byte sequence for encoding

Illegal mix of collations

2007-03-26 Thread Gerard M
Hello dear django comunnity, Im having a bad time with my database in MySQL the problem is that when I try to store a word with some "rare" characters like á é í and many others, django shows this message to me OperationalError at /uploading/ (1267, "Illegal mix of collations

Re: Database exception handling please

2007-03-22 Thread Gerard M
> >>> z=Dic.objects.filter(DB_Word=worfromtext).distinct() > >>> if not z.count(): print 'ERROR!' First I want to thank all of you guys for posting here and for helping me solving my problem, I feel really happy because I can rely on a community this wise and helpful, and I want to give

Database exception handling please

2007-03-21 Thread Gerard M
Hello django community, I have a HUGE problem, and I would like to know if some of you guys can help me, the problem is: Im accesing a database and there is a big chance of not finding the item im looking for, this is the snipplet of code im using and the "solution" that I've implemented but it

Re: Please

2007-03-07 Thread Gerard M
Thanks a lot Carole and Todd your posts have been very helpful to me, I've managed to upload a file !!!, but I have a little problem now, I would like to see if any of you or somebody else who reads this can help me, the thing issue is : I can upload small files good, but when it comes to bigger

Thanks guys and a little help again :)

2007-03-07 Thread Gerard M
Thanks a lot Carole and Todd your posts have been so helpful to me, I've managed to upload a file !!!, but I have a little problem now, I would like to see if any of you or somebody else who reads this can help me, the issue is : I can upload small files good, but when it comes to bigger files,

Please

2007-03-06 Thread Gerard M
Hello, Please I need to find a way to upload a file using django, i've found several resources but I cant use any because the examples are not well explained and im a django newbie, I would like to know if someone knows a place where I can find a very nice step by step turorial with the templates

Re: Help with Files

2007-03-05 Thread Gerard M
t; I ended up using an old fashioned form to post files with standard > python code (inside of a view though), because I didn't like the way > django handled them. I can post a sample of that if you > like ..... > > On Mar 5, 2:06 pm, "Gerard M" <[EMAIL PROTECTED]> wr

Help with Files

2007-03-05 Thread Gerard M
Hello, im very new to django and python, I've read the tutorials and the django beta book, but there is one thing I dont see covered and I need to know hot to do it for a project, any help is welcome. The main problem is that I dont know how can I upload a file to the server to be procesed using