forms with foreign key population

2009-04-02 Thread Mike RA9FTM
Hello. I am new to django. I have read documentation and created a little project. I plan application with many forms. Mostly, I need to populate forms, when I have foreign key in model, like in django admin interface when we click on plus picture, a new window opens. So, I would like to know is

Re: forms with foreign key population

2009-04-03 Thread Mike RA9FTM
Guys, I found this article http://www.hoboes.com/Mimsy/?ART=675 I have tested this one and it working. But is it really correct to do so? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

cx_Oracle django and "dumb" connect

2009-04-05 Thread Mike RA9FTM
Hi. I need direct connection to oracle for import some information sometimes. Here is what I do for first test: def orcl_test(request): connstr='scott/ti...@orcl' conn = cx_Oracle.connect(connstr) curs = conn.cursor() curs.execute('select * from dept') rows = [row[2] for row

Re: cx_Oracle django and "dumb" connect

2009-04-05 Thread Mike RA9FTM
Thank you for your answer. I think it will be a problem, beacuse I am already using postgresql database in my django project. On 5 апр, 17:02, Alex Gaynor wrote: > > Instead of importing cx_oracle directly you should do `from django.db import > connection` which gets you a normal PEP-249 databas

django model request trim analog

2009-04-27 Thread Mike RA9FTM
Hi all Is there any analog of SQL trim() function in SELECT query? I need to remove spaces in strings. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan