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
>
> 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):
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
3 matches
Mail list logo