problem with form

2019-05-30 Thread Saeed Pooladzadeh
Hi I'm trying to make a simple crud applicatio and learn from it. I wonder why my form can't save the data. Here cames my view: from django.shortcuts import render from saeed.forms import SmodelForm from saeed.models import Smodel from django.shortcuts import render, redirect # Create you

Re: problem with form

2019-05-29 Thread Saeed Pooladzadeh
I sent detail on a new post "why form cant save"" در چهارشنبه 29 مهٔ 2019، ساعت 3:52:30 (UTC+4:30)، Saeed Pooladzadeh نوشته: > > Hi > > I'm trying to make a simple crud applicatio and learn from it. I wonder > why my form can't save the data. Here cames my view: > > from django.shortcuts import r

Re: problem with form

2019-05-29 Thread Saeed Pooladzadeh
There is no error!! but the form doesn't save!! Let me know wich part you nead exactly. در پنجشنبه 30 مهٔ 2019، ساعت 0:23:38 (UTC+4:30)، Joe Reitman نوشته: > > Can you post the error? > > On Tuesday, May 28, 2019 at 6:22:30 PM UTC-5, Saeed Pooladzadeh wrote: >> >> Hi >> >> I'm trying to make a si

Re: problem with form

2019-05-29 Thread Joe Reitman
Can you post the error? On Tuesday, May 28, 2019 at 6:22:30 PM UTC-5, Saeed Pooladzadeh wrote: > > Hi > > I'm trying to make a simple crud applicatio and learn from it. I wonder > why my form can't save the data. Here cames my view: > > from django.shortcuts import render > from saeed.forms impor

Re: problem with form

2019-05-28 Thread Anirudh Jain
Can you please send the screenshot or text of error. Also, try - form.save(commit=False) On Wed, 29 May 2019, 04:53 Saeed Pooladzadeh, wrote: > Hi > > I'm trying to make a simple crud applicatio and learn from it. I wonder > why my form can't save the data. Here cames my view: > > from django.sh

problem with form

2019-05-28 Thread Saeed Pooladzadeh
Hi I'm trying to make a simple crud applicatio and learn from it. I wonder why my form can't save the data. Here cames my view: from django.shortcuts import render from saeed.forms import SmodelForm from saeed.models import Smodel from django.shortcuts import render, redirect # Create you

Re: Problem with Form with ForeignKey field

2014-01-16 Thread Tom Evans
On Wed, Jan 15, 2014 at 8:44 PM, Jonathan Pentecost wrote: > Does it have anything to do with the related name of animal being `+`? I > can't test this out just yet, but I don't THINK you can have a related_name > as just `+`, I believe it needs to be a valid identifier. '+' is perfectly valid fo

Re: Problem with Form with ForeignKey field

2014-01-15 Thread Jonathan Pentecost
Does it have anything to do with the related name of animal being `+`? I can't test this out just yet, but I don't THINK you can have a related_name as just `+`, I believe it needs to be a valid identifier. On Wednesday, 15 January 2014 03:26:12 UTC+11, Drew Ferguson wrote: > > Hi > > Django 1.

Problem with Form with ForeignKey field

2014-01-14 Thread Drew Ferguson
Hi Django 1.5 I have a model which includes a ForeignKey field defined likes this class Document(models.Model): name = models.CharField(max_length=25, unique=True, null=False,blank=False) target = models.CharField(max_length=12, choices=TARGETS,default='report') content =

Re: Newb problem with form wizard

2009-06-04 Thread Jonathan Nelson
I haven't used the form wizard, but it seems like your forms are in ...templates/wha/ Django is looking for your form at ...templates/wha/forms/wizard.html you have them in ...templates/wha/contact/forms/wizard.html try adding ...templates/wha/contact/forms or ...templates/what/contact to your

Newb problem with form wizard

2009-06-03 Thread adelaide_mike
My non-wizard templates are in this directory, all working as expected: my_wha_templates/wha/ I have built a form wizard in my whasite.wha.forms.py exactly as per the docs. I have pasted the suggested template HTML into a file: my_wha_templates/wha/contact/forms/wizard.html My urls.py is within

Re: problem with Form, but ModelForm works fine?

2008-10-23 Thread [EMAIL PROTECTED]
Sorry, I realized my own mistake a few hours later. The problem was that I copied and pasted the fields from my Model. The entities in my Form class were: django.models instead of django.forms Changing this solved the problem. On Oct 23, 1:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

problem with Form, but ModelForm works fine?

2008-10-23 Thread [EMAIL PROTECTED]
I'n new to django, and I am having trouble with forms: I tried following the example on the web page: http://docs.djangoproject.com/en/dev/topics/forms/#topics-forms-index I setup a quick unit test, but I am unable to get the desired result with forms.Form. I replaced my forms.Form object with a

Re: Problem with form caching data

2007-04-07 Thread Malcolm Tredinnick
On Sat, 2007-04-07 at 12:58 +, ladamiak wrote: > Hi everyone... > > I'm having an strange behavior with a form. > > It's a simple sign-up form. > > When I call the page using the url http://xxx/membro/cadastro/3/ the > form show the data for de mebro.id=3, so after that, if I call the > pag

Problem with form caching data

2007-04-07 Thread ladamiak
Hi everyone... I'm having an strange behavior with a form. It's a simple sign-up form. When I call the page using the url http://xxx/membro/cadastro/3/ the form show the data for de mebro.id=3, so after that, if I call the page using the url http://xxx/membro/cadastro/ the form should not show

Re: Problem with form caching data

2007-04-05 Thread Luciano Adamiak
So Does anyone have a clue??? On 4/4/07, Luciano Adamiak <[EMAIL PROTECTED]> wrote: > > Hi everyone... > > I'm having an strange behavior with a form. > > It's a simple sign-up form. > > When I call the page using the url http://xxx/membro/cadastro/3/ the form > show the data for de mebro.

Problem with form caching data

2007-04-04 Thread Luciano Adamiak
Hi everyone... I'm having an strange behavior with a form. It's a simple sign-up form. When I call the page using the url http://xxx/membro/cadastro/3/ the form show the data for de mebro.id=3, so after that, if I call the page using the url http://xxx/membro/cadastro/ the form should not show a