Jason Learns Django - 07

Today was a little easier. What did I do/learn today? Today was about doing contacts in the app that we are building. Registering visitors and stuff The basic flow was generating another app and doing views and models and wiring them up to pages So this felt like revision of all that I’d learnt over the past few days. Stuff makes some more sense now. I think I will be done in a day or two, but I know I have only scratched the surface of Django. I will need to build a lot more projects to gain fluency. That’ll be the plan in the coming weeks and months

April 29, 2021 · Mario Jason Braganza

Jason Learns Django - 06

Hard day again. I just cannot seem to focus and learn. It takes slogging and rewatching and retyping and oh, I missed a colon there. Do it again. And again. And again. And that is the only way, I seem to make any progress. Well, the learning at speed does not quite seem to be in my hands (or my brain 😂) What is in my control, and the best I can do, is to show up every day. ...

April 28, 2021 · Mario Jason Braganza

Jason Learns Django - 05

Life got in the way again. Remembered yesterday. So I took it easy. Gave myself 4 hours and the grace to quit if I wasn’t done. And somehow, by the skin of my teeth, I got done with the pending module. What did I do/learn today? I seemed to have taken a break at a natural place in the module. If yesterday was about wiring views, today was about doing search. Wrote lots of Django template code. Loops and variables and pulling data from dictionaries. Amazing to see reams of code in an HTML template just vanish, to be replaced by a few lines of code, that loops over data pulled from a database. Wrote lots of search functions for different parts of the site. Love the fact that I understand most of the Python I write. Am confused a lot about whether the stuff I use is Python powered or something Django gives me, but am not stressing over it. This I am sure will come with time Today was another slog day, but it was so much fun, watching various parts of the website come to life.

April 27, 2021 · Mario Jason Braganza

Jason Learns Django - 04

I thought last friday was hard. Boy, was I wrong. I had scheduled about four hours to do one of Brad’s modules everyday. And today was such a bear. Life happened. There were lots of interruptions. I tried to soldier on nonetheless. Eight hours in, and I am still only halfway through the module. That’s when I decided to give myself some grace and let it go. Note to self, stick to the time. Not the module. If the module does not get over, there is always tomorrow. (saying this, as I look at the pile of stuff, I’ve left undone today.) ...

April 26, 2021 · Mario Jason Braganza

Jason Learns Django - 03

Today was a slog. Life got in the way, so lost some scheduled time. So decided to work some more in the evening. What did I do/learn today? Learnt the basics of models, and migrations today. Learnt how to install PostgreSQL, so that I could simualate a production environment. This took eons, all because, I did not realise that I (or some other program I installed) had already installed Postgres in the past, and so I went down a rabbit hole of looking at logs and figuring out ports and why I could not talk to the database I wanted. Am slowly realising that I what working with Django actually is, is to take things that Django provides and then customise them to my needs. And Django provides a lot. Python is just the way I express what I want. Learnt how to write a model file and then use migrations to actually go alakazaam and make them real in my database. Learnt how to rejig the default admin panel, that comes with Django While the stock admin site is pretty function Brad walked me through customising it to add brand colours and adding / changing functionality. For e.g. adding in a search field, so I could search by names. I should be reading Django documentation and then playing with all the features. Time to call it a day. More on Monday. ...

April 24, 2021 · Mario Jason Braganza

Jason Learns Django - 02

Today was a really good day. Did four productive hours of work. Managed to focus, and follow the lessons and write my own code. What did I do/learn today? I need to write a lot more code. I need to write lots of HTML/Javascript, to gain a better understanding. I thought I could get by with basic stuff, but the more I learn Django, the more I see that it works hand in hand with the content and styling that I have written. (Right now there is a set of templates for the course, but I can see myself taking much longer, if this was not there.) The MVT flow is now gradually making more sense to me. What stuff belongs to a model? Or a view? I would listen to the instructor, (Brad), then pause the video and then try to do it myself first. Or at least think through the process and mentally prep an answer. And then go see what he did, and how he did it. Worked with Apps and URLs and Templates and learnt to write code across these files, wiring one up to the other, so that the page would render.

April 23, 2021 · Mario Jason Braganza