Tuesday, December 30, 2014

Can't save input to database

Hi guys, I can't save the input from a custom form to database. I don't know what I am missing. 

Because it's using a downloaded template from the web, I'm not using the django forms. Instead, I'm trying to simply save the input from the html form to the database. Im using the standard database when you create a django project. When I checked the admin the inputs are not saved. 

Here is my code: 


Views.py -> https://dpaste.de/SCBi

Models.py -> https://dpaste.de/3NX3

Admin.py -> https://dpaste.de/OWLS

htmlform -> https://dpaste.de/11DP

I'm a newbie programmer btw, this may be simple solution but I've spent some time and couldn't figure it 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+unsubscribe@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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ca13d351-0075-4000-902d-3f8755cb775e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment