Re: My Data dont be updated with my forms

2013-03-17 Thread Rafael E. Ferrero
Thanks Dan i'll try your advice !!
El 16/03/2013 22:22, "Dan Gentry"  escribió:

> Rafael,
>
> This is a bit of a wild guess, but I'm wondering if your form isn't
> validating.  Since your template doesn't seem to be displaying any errors,
> you wouldn't know it.
>
> Also, since the Url column is marked as unique, but you are excluding it
> from the form, it may be the field throwing the error.
>
> Just to check, add {{form.errors}} to your template and give it a try.
>
> Best of luck,
>
> Dan
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: My Data dont be updated with my forms

2013-03-16 Thread Dan Gentry
Rafael,

This is a bit of a wild guess, but I'm wondering if your form isn't 
validating.  Since your template doesn't seem to be displaying any errors, 
you wouldn't know it.  

Also, since the Url column is marked as unique, but you are excluding it 
from the form, it may be the field throwing the error.

Just to check, add {{form.errors}} to your template and give it a try.

Best of luck,

Dan



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




My Data dont be updated with my forms

2013-03-15 Thread Rafael E. Ferrero
Hello everybody...

I try to update data from a ModelForm (relevant part of code
here).
I search on Google but can't find any solution to my problem.

This piece of code take one event from DataBase, the data are populated to
the form, you can  change the information and when click on submit button
the validation of the form its seems correct since HttpResponseRedirect
works properly fine but the data isn't be updated on database.
(on another view i can create an event just fine, but then i cant update it
with this view).

The database is an SQLite file on an Ubuntu OS. The owner of the file its
my user and his group its www-data, the permisions of the file its 775.

-- 
Rafael E. Ferrero
Claro: (03562) 15514856

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.