os.system is not working properly

2009-06-12 Thread limas
i have a django application with flex as front end, i am using amfgateway for it. i have a fortran executable file which will create a new file called predict.dat(say) it will take two input files(input.dat, test) under my project directory. my code is like this os.system("/home/me/mypro/s_test")

Problem with self referencing Foreign key field and mysql InnoDB

2009-04-16 Thread limas
I were using Mysql MyISAM. But I want to enable transaction. So i shifted to InnoDB. Actually I have one model as below (*designed somebody i can't change). class Folder(models.Model): folder_id=models.AutoField(primary_key=True) user_name=models.ForeignKey(User) folder_na

Re: filter with respect to single attribute does not work properly

2009-03-02 Thread limas
Thank you Alex . It works thank you very much. Lima On Mar 3, 12:59 am, Alex Gaynor wrote: > On Mon, Mar 2, 2009 at 2:56 PM, limas wrote: > > > thank you Alex for your valuable reply. > > but i am still not able to find out the solution. > > i

Re: filter with respect to single attribute does not work properly

2009-03-02 Thread limas
like me. thanks . Lima On Mar 3, 12:40 am, Alex Gaynor wrote: > On Mon, Mar 2, 2009 at 2:36 PM, limas wrote: > > > Hello. > > > my project deals with mnemonic-data pairs. > > so I have model like this: > > > class DataValue(models.Model): &g

filter with respect to single attribute does not work properly

2009-03-02 Thread limas
Hello. my project deals with mnemonic-data pairs. so I have model like this: class DataValue(models.Model): file=models.ForeignKey(File) row=models.IntegerField() mnem=models.IntegerField() value=models.CharField(max_length=2000) class Curve(models.Model):

Re: Join two tables having foreign key field with name different from table name

2008-11-24 Thread limas
> > and i want show something like this in my form: > > > > > > > Thanks for Your reply. Now I understand correctly what my problem was.But I can not find the solution yet. Actually I meant to join two tables in order to have a queryset, which contains both candidate fields and user_nam

Join two tables having foreign key field with name different from table name

2008-11-24 Thread limas
hai all, i have say two tables: class Candidate(models.Model): first_name=models.CharField('First Name',max_length=30) last_name=models.CharField('Last Name',max_length=30) .. owner=models.Foreign_key(User) enter_by=models.ForeignKey(User,related_name=

unchecked checkboxes not accessed through request.POST['check_name']

2008-11-16 Thread limas
hello all I am doing a project in Django. I want to create a list by clicking upon a link, it will open up a new window using javascript window.open() method. I have two tables for list. class Saved_list(models.Model): description=models.CharField(max_length=100) number_entries

setting value of a ModelForm field through Javascript

2008-11-06 Thread limas
hello please help me... can i set the value of a ModelForm field ,ie a text box, using javascript. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: align a ModelForm

2008-11-04 Thread limas
dear Law, The admin css worked nicely. But my work is not fullfilled yet. Actually i have a Model Candidate. class Candidate(models.Model): site=models.ForeignKey(Site) first_name=models.CharField('First Name',max_length=30) last_name=models.CharField('Last Name',max_leng

Re: align a ModelForm

2008-11-04 Thread limas
> I have done something similar and I generated my form automatically > using 'forms.as_p' then I put in some sections of the css from admin > interface's css and it works. The section you want to look at is the > fieldset section. hello Low, I can't understand what you mentioned clearly. Is

Re: align a ModelForm

2008-11-04 Thread limas
e. Some modification in the alignment of a single ModelForm. thank you for ur suggestions. i expect u will respond to this reply.. Lima On 3 Nov, 18:33, Thomas Guettler <[EMAIL PROTECTED]> wrote: > limas schrieb: > > > Can i align a single long ModelForm into two raws? >

align a ModelForm

2008-11-03 Thread limas
Can i align a single long ModelForm into two raws? can i use django admin modules for my own purpose by customizing it? please give me some suggestions . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: sql query to insert into table

2008-10-29 Thread limas
thank u very much for ur reply.. i were just stuck in my project.It helps me realy... thanks... On 29 Oct, 16:42, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Oct 29, 10:26 am, limas <[EMAIL PROTECTED]> wrote: > > > hello > > > i am new in django. >

sql query to insert into table

2008-10-29 Thread limas
hello i am new in django. i want to insert values into two tables from a single form. i think ModelForm didnot work for this. Can i use raw sql query to insert into tables. i am using mysql and latest subversion of django. please give me some sugessions. --~--~-~--~~~

install django

2008-10-15 Thread limas
hai, i want to install django in a local directory without the permission of root in Mandriva linux. please help meThe problem i suffered is could not create the file /usr/lib/python2.5/site-packages/django. permission denied. --~--~-~--~~~---~--~~ You rece