unable to validate and save modelform data into mysql database...

2019-10-21 Thread Gourab Mahapatra
Traceback: File "C:\Users\Admin\PycharmProjects\autotask\AutoTaskVenv\lib\site-packages\django\core\handlers\exception.py" in inner 34. response = get_response(request) File "C:\Users\Admin\PycharmProjects\autotask\AutoTaskVenv\lib\site-packages\django\core\handlers\base.py" i

Re: unable to validate and save modelform data into mysql database...

2019-10-21 Thread lemme smash
it's quite expected behavior. if you want to check if job exists, you better use Job.objects.filter(name=job_name).exists() On Monday, October 21, 2019 at 3:49:01 PM UTC+3, Gourab Mahapatra wrote: > > Traceback: > > File > "C:\Users\Admin\PycharmProjects\autotask\AutoTaskVenv\lib\site-packages\d

Re: unable to validate and save modelform data into mysql database...

2019-10-21 Thread Gourab Mahapatra
sir/madam, when I replace the particular statement with the one which you have adviced me to use. then, this gives me an error something like: Exception Type: NameError Exception Value: name 'job_name' is not defined please help me in fixing this issue Thanks & Regards Gourab Mahapatra

Re: unable to validate and save modelform data into mysql database...

2019-10-21 Thread Gourab Mahapatra
and also I tried to use statements as shown in the attached file. But still I get an error like the above thread: Exception Type: NameError Exception Value: name 'job_name' is not defined On Monday, 21 October 2019 20:38:13 UTC+5:30, lemme smash wrote: > > it's quite expected behavior. if yo

Re: unable to validate and save modelform data into mysql database...

2019-10-21 Thread Gourab Mahapatra
and now this error shows, something related to the job instance, i don't know but if you want then i can share with you my models.py file code and views.py file code please help me in this regard, I am stuck here since 2 weeks. I have attached the screenshot of the error please find attached ..

Re: unable to validate and save modelform data into mysql database...

2019-10-21 Thread Gourab Mahapatra
On Tuesday, 22 October 2019 11:33:23 UTC+5:30, Gourab Mahapatra wrote: > > and now this error shows, something related to the job instance, i don't > know but if you want then i can share with you my models.py file code and > views.py file code > please help me in this regard, > I am stuck here

Re: unable to validate and save modelform data into mysql database...

2019-10-22 Thread lemme smash
okay, man. seems like you need to read and repeat everything you know about python and django. i highly recommend you to go through django tutorial. On Monday, October 21, 2019 at 3:49:01 PM UTC+3, Gourab Mahapatra wrote: > > Traceback: > > File > "C:\Users\Admin\PycharmProjects\autotask\AutoTas