Save url containing special characters into mysql database using cursor object

2013-08-03 Thread fanchyna
I am about to save the url below to my mysql database (innodb) using the cursor object: http://www-i6.informatik.rwth-aachen.de/publications/download/367/l

Re: error to use cursor to save escaped characters

2012-07-30 Thread fanchyna
but just want to let you know that my INSERT INTO statement was correct. you can google "insert mysql" to check. the "INSERT into" support three forms. On Wednesday, July 25, 2012 8:49:07 PM UTC-4, Dennis Lee Bieber wrote: > > On Wed, 25 Jul 2012 14:40:04 -0

Re: error to use cursor to save escaped characters

2012-07-30 Thread fanchyna
Good answer. Using the c.execute(command,parameter) solves my problem. On Wednesday, July 25, 2012 8:49:07 PM UTC-4, Dennis Lee Bieber wrote: > > On Wed, 25 Jul 2012 14:40:04 -0700 (PDT), fanchyna <fanch...@gmail.com> > declaimed the following in gmane.comp.pyt

error to use cursor to save escaped characters

2012-07-25 Thread fanchyna
I have a url which I want to save into the MySQL database using the "cursor" tool offered by django, but I keep getting the "not enough arguments for format string" error because this url contains some escaped characters (non-ascii characters). The testing code is fairly short: #test.py# >

Form fields and Widget to select a directory

2012-05-02 Thread fanchyna
I have a question on django which has been bothering me for a while. I tried to search it from the web but could not get an answer. What I want to do is to select a "directory" (only the path, not including file) from the local file system. When I was designing my models.py (actually, I use