Re: Adding Forms with ModelForm and Writing Data

2014-05-16 Thread Venkatraman S
ctx = { 'customers':customers } to ctx = { 'customers':customers , 'form': form } On Wed, May 14, 2014 at 11:22 AM, G Z wrote: > so I changed my code into 3 parts. If I understood the documentation right >> this should create a form based on the Customer model in models.py and >> display i

Re: Adding Forms with ModelForm and Writing Data

2014-05-13 Thread G Z
> > so I changed my code into 3 parts. If I understood the documentation right > this should create a form based on the Customer model in models.py and > display it on my index.html > *forms.py* from django import forms from .models import Customer class SignUpForm(forms.ModelForm):

Adding Forms with ModelForm and Writing Data

2014-05-13 Thread G Z
I'm trying to follow the documentation on using forms to save data tot he database. vmware is my app name. Nothing is showing up on my index page though. I'm not sure why can anyone help me the documentation isn't clear it bounces everywhere between two different methods without really defining