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
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
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
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
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
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
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
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.
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 =
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
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
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:
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
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
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
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.
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
17 matches
Mail list logo