I feel really anxious. The more I learn, the more I realise I don't know anything. I could have just learnt something, and yet, when I do the drill required of me, I take forever. I guess I went through a similar rollercoaster of emotions when I first learnt to paint. It takes me awhile to give myself a pep talk to convince myself to press on. This is really putting a dent in my confidence. Or should I say, blasting a gaping hole. I am constantly questioning myself. Can I really do this? Do I have the aptitude? It is not that I don't have the interest. I actually do find programming quite interesting. I do wonder if there will ever come a day when I will feel confident doing it. Right now, I just want to curl up in a ball of self pity.
A student wanted to create several tables with foreign keys linking them. He was placing the forms all over the place and that just didn't seem to make sense to me. I suggested that he link all the forms to one main registration page, and while he worked on it, I came up with my own solution that I feel rather proud of. Though I'm well aware it is a very simple solution. views.py def register (request): # form for team formteam = TeamForm(request.POST or None ) if formteam.is_valid(): formteam.save() return redirect( 'registerForTeam' ) else : print (formteam.errors) formteam = TeamForm() # form for coach formcoaches = CoachesForm(request.POST or None ) if formcoaches.is_valid(): formcoaches.save() return redirect( 'registerForTeam' ) else : print (formcoaches.errors) formcoaches = CoachesForm() # form for player formplayer = PlayersForm(request.POST or None ...
Comments
Post a Comment