Re: django data insertion into database

2016-07-11 Thread Derek
Looks like the lines in your code, from # forms onwards need to be outdented (so the "class" statements are at matching levels). On Monday, 11 July 2016 08:34:44 UTC+2, Ikram Ulhaq wrote: > > hi everyone! > i am new in django web development.i want to insert data into my database > using followi

django data insertion into database

2016-07-10 Thread Ikram Ulhaq
hi everyone! i am new in django web development.i want to insert data into my database using following code but i got error like this. model = Incident NameError: name 'Incident' is not defined please help. my code is below class Incident(models.Model): subject = models.CharField(max_l