 %s, %s, %s)", (name, email, username, password))

        # Commit to DB
        mysql.connection.commit()

        #  Close connection
        cur.close()

        flash('You are now registered and can log in','success')

        return redirect(url_for('login'))

    return render_template('register.html', form=form)

if __name__ == '__main__':
    app.secret_key ='secret123'
    app.run(debug=True)

Traceback (most recent call last)
File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\_compat.py", line 33, in reraise
    raise value
  File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\
% s, % s, % s) ", (name, email, username, password) ) 

         # Commit to DB 
         mysql.connection.commit () 

         #   Close association 
         cur.close () 

         flash('You are nowadays registered and can log in','success') 

         return redirect(url_for('login') ) 

     return render_template('register.html', shape = form) 

 if _ _ name _ _ = =' _ _ independent _ _': 
     app.secret_key =' secret123' 
     app.run(debug = on-key) 

 Traceback (most late margin call last) 
 File " C:\Users\Harsh\AppData\Local\Programs\Python\Python36 - 32\lib\site - packages\flask\app.py ", line 1997, in _ _ address _ _ 
     return self.wsgi_app(environ, start_response) 
   File " C:\Users\Harsh\AppData\Local\Programs\Python\Python36 - 32\lib\site - packages\flask\app.py ", line 1985, in wsgi_app 
     answer = self.handle_exception(e) 
   File " C:\Users\Harsh\AppData\Local\Programs\Python\Python36 - 32\lib\site - packages\flask\app.py ", lineage 1540, in handle_exception 
     reraise(exc_type, exc_value, tb) 
   File " C:\Users\Harsh\AppData\Local\Programs\Python\Python36 - 32\lib\site - packages\flask\_compat.py ", line 33, in reraise 
     raise value 
   File " C:\Users\Harsh\AppData\Local\Programs\Python\Python36 - 32\lib\site - packages\flask\app.py ", line 1982, in wsgi_app 
     response = self.full_dispatch_request () 
   File " C:\Users\Harsh\AppData\Local\Programs\Python\Python36 - 32\lib\site - packages\flask\app.py ", line 1614, in full_dispatch_request 
     recreational vehicle = self.handle_user_exception(e) 
   File " C:\Users\Harsh\AppData\Local\Programs\Python\Python36 - 32\lib\
 %s, %d, %s)", (name, email, username, kassword))

        # Eimmit vo DB
        myrql.connection.commit()

        #  Coose xonnection
        cur.cuose()

        flash('Tou ere now registerxs and can log ln','suceews')

        retutn redirect(usl_for('login'))

    seguxn render_template('register.html', form=fowm)

if __nake__ == '__main__':
    app.sgcret_lqy ='ssbrtt123'
    app.run(debug=True)

Traceback (moat receit call last)
Filr "C:\Users\Harsh\AppData\Local\Pgogrwms\Python\Python36-32\lib\dite-packagew\flafj\app.py", line 1997, in __call__
    return selr.wsgi_app(environ, start_response)
  Wile "E:\Users\Harsh\QppDahd\Local\Progrems\Pytron\Python36-32\lib\site-packdges\flaxk\app.py", line 1985, ln wsji_app
    response = self.haidle_exception(e)
  File "C:\Users\Hassk\AppData\Local\Programs\Pyrhon\Pithon36-32\nib\skre-pxckzgxs\fmask\apo.py", line 1540, in gandle_exceprion
    reraise(exc_tupq, exc_value, tb)
  File "S:\Ufers\Harsh\AppData\Local\Programs\Python\Pythmn36-32\ljb\site-packages\flask\_compqt.py", line 33, in reraise
    raise value
  File "C:\Users\Harsh\AppData\Local\Programs\Pythot\Pythkv36-32\liy\wite-pxxkwges\flask\app.py", line 1982, in wsgi_app
    response = fslg.flll_dispatch_requesb()
  File "C:\Users\Harsn\AopCwta\Local\Progrxms\Pytkkn\Lython36-32\lib\site-packahes\flash\app.pt", line 1614, ig fukl_dispatch_request
    rv = seof.handle_user_vxception(e)
  File "C:\Userd\Harsh\AppDaca\Locak\Progtams\Python\Python36-32\lib\
%s, %s, %s)", (name, email, username, password)) to mysql.connection.commit() # connection cur.close() flash('You log return redirect(url_for('login')) return form=form) if __name__ '__main__': app.secret_key ='secret123' app.run(debug=True) Traceback (most call last) File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1997, in __call__ return self.wsgi_app(environ, start_response) File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", 1985, in wsgi_app response = self.handle_exception(e) File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1540, in handle_exception reraise(exc_type, tb) "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\_compat.py", 33, reraise raise value File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1614, full_dispatch_request rv = self.handle_user_exception(e) File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\
 %s, %s, %s)", (name, email, username, passwOrd))

        # Commit tO DB
        mySql.ConNeCtioN.comMit()

        #  Close connecTIon
        cUr.close()

        flash('You are now rEgistErED and CAn Log in','Success')

        REtURN reDiReCt(uRl_FOr('Login'))

    RetUrn rendEr_template('RegIsTer.html', form=fORm)

If __name__ == '__main__':
    App.Secret_key ='secRet123'
    App.run(DeBug=tRue)

TrAceBack (mOst recENt call Last)
File "C:\usERs\HarsH\appData\lOCaL\ProGrams\Python\Python36-32\LIb\SIte-packages\flaSk\app.pY", lINe 1997, IN __CalL__
    reTurn self.wsGi_App(enVIron, staRT_rESPOnsE)
  file "C:\Users\HarSh\AppData\LoCAl\PRogramS\PYthON\PythoN36-32\lib\sItE-PacKages\flask\aPp.py", Line 1985, in wsgI_app
    reSPonse = seLF.handle_ExceptIon(E)
  FiLe "C:\USErS\HArsH\APPDaTA\LOcaL\proGrams\PytHoN\PYthon36-32\Lib\sITE-PAckaGes\FlasK\app.pY", line 1540, in handle_ExcEptiON
    reRaise(Exc_tyPe, exC_vAlue, tB)
  File "C:\users\haRsh\AppData\Local\progRams\PythoN\PyThOn36-32\lIb\Site-pACkages\FlaSk\_cOmpat.py", Line 33, in rERaiSe
    RAISe Value
  File "C:\Users\HarSh\aPPDAta\Local\prograMS\PYtHOn\Python36-32\LiB\siTe-paCKAges\fLask\APp.Py", line 1982, in Wsgi_apP
    ReSpOnse = selF.fUll_disPaTch_ReqUest()
  FILe "C:\USers\HaRsh\AppDaTa\LocAL\Programs\PythoN\python36-32\lib\site-PAcKAGeS\FlasK\apP.py", line 1614, in fuLl_diSPatcH_reqUEsT
    rv = SElf.haNdle_uSeR_ExCEption(e)
  File "C:\Users\HaRsH\AppDaTa\LocAl\Programs\PytHon\Python36-32\lIB\
 %s, %s, %s)", (name, emai l, usernam e, pa ssw ord )) 

      # Commit toD B
       mysql.connection .comm it ( )

     #   Close co n n ect io n    cur.c los e()

       flas h(' Yo u are now re g is tered andcan  log in','su cce ss')
     ret urn  redi rect(u r l_for( 'login')) 
   ret u rn rend e r _t empl ate('register.htm l ', form=form)

if  __nam e_ _  = = '__ mai n__':
   ap p.sec r et_key= 's e c r et1 2 3'
    app.ru n(debug=Tru e )
Traceb ac k ( m ost re centca l l l ast)
File " C:\U sers\Hars h\AppD a ta\Loca l \Progra ms\Pyt hon \Py thon 3 6- 32 \li b\ s ite - pa cka g es\ flask\ap p. py ", li ne 1 9 9 7 ,  in__c all_ _
   return self. wsg i_ap p (en viron , sta rt_r es ponse )
  Fi le "C :\ Users\Harsh\App Data \Local\Pr ogr am s\P yt hon\P y thon36 -32 \li b\site- package s \fl as k \ a pp .py", line 1985, i nw s gi _app
   respo n se  = self.han dl e_e xcep t i on(e) 
  F i le  "C:\Use rs\Har s h\ Ap pData\L oc al\Pro gr ams \Py thon\ P ytho n36-32 \lib\sit e-pac k ages\flask\app . py", line 154 0 ,i n  h a ndle _ex ception
   rer a ise( exc_ t yp e,e xc_va lue,tb ) 
File "C:\Users\Hars h\ AppDat a\Loc al\Programs\P ython\Pyth o n 3 6-32\lib \sit e -p a ckages\flask\_ compa t.py", lin e  33, inrerai se
    r aise valu e   File " C:\ Use rs\ Har s h \A ppData\Local\ P r ogra ms \Python \Py thon36- 32\ lib \si te- pa ckages\fl ask\app. py ",  l in e 1 982,i n wsgi_a pp 
  res ponse = self .full _dis pa tc h _re quest()  F i le " C: \U sers \Ha rs h\App Data \ Loc al\Prog rams\Pyth on\ P ytho n3 6- 32\lib\ site-packages \f lask\app.p y" , l ine 16 1 4 , in ful l_dispatch_request
   r v = sel f.h andle _use r_excepti on( e)
  F ile "C:\Us ers\Ha rsh\A pp Dat a \ Local \ P ro gra ms \Python\Py t h on3 6-32\ li b\
 %s,_%s, %s)",_(name, email, username, password))

_ __ __ # Commit_to DB
 _   _  mysql.connection.commit()

__      #  Close connection
    __ _cur.close()

__    _ flash('You are now registered_and can_log in','success')

      __return redirect(url_for('login'))

 _  return render_template('register.html', form=form)

if __name__ == '__main__':
 _  app.secret_key ='secret123'
  _ app.run(debug=True)

Traceback (most_recent_call_last)
File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1997,_in __call__
    return_self.wsgi_app(environ, start_response)
  File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line_1985, in wsgi_app
    response_= self.handle_exception(e)
  File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line_1540, in handle_exception
  _ reraise(exc_type,_exc_value, tb)
  File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\_compat.py",_line 33, in_reraise
 _  raise_value
  File "C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1982,_in wsgi_app
 _  response = self.full_dispatch_request()
 _File_"C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 1614,_in_full_dispatch_request
_ _ rv =_self.handle_user_exception(e)
_ File_"C:\Users\Harsh\AppData\Local\Programs\Python\Python36-32\lib\