#CS50w Working in Project 4 Network. Good start so far but maaaan my Django is rusty. Forgot to pass models.Model to the function when defining my model, forgot to pass self to my __str__ function, forgot to use post.save() in my view and for the life of me couldn't get to HttpResponseRedirect(reverse("index"))

Let that be a lesson. Don't procrastinate so much in between projects. Use it or lose it.

I got the follower and following counts working as well as the post tally. Pretty much using reverse relationships/related names so I'd pass user.is_following.count() as an argument to the render function and that worked. The hard part was conceptualizing Follows as a django model. Realizing I need to conceptualize likes as a model as well and not a mere integer.

#CS50w I have been HARD AT WORK today.

Biggest thing was getting the asynch like to work. For the most part is easy, set up url, create a view, return some JSON, buuuuut then came the CSRF token. That stumped me for a while because with Email they copped out and just CSRF excempted it. Didn't think we could do that but that was a whole adventure. Eventually had to include a token on the page, use JS to grab the token then in the fetch request change the header and mode. But it worked!

#CS50w the end is almost in sight. Last thing that needs doing is pageination. Thing that stumped me today was mostly how I set up my follow model. Since a Follow is a separate model that contains the following_user and the followed_user, reverse that, then populating a list of users from the follows is actually quite a lot to mentally track. Anyway, it works, just have to limit all this to ten posts per page.
#CS50w pagination is done, just final check and video upload! Most of the work I did late last night and I am paying for it today. Very unproductive today. Think I'll take the day off to not suffer so much. Start fresh tomorrow.
#CS50w I think that's it. I think that's it. Just ran through final check, caught some issues, fixed them... YESS BOYY I THINK THAT'S PROJECT 4 DONE
Finishing the video on Project 4 and then it's the last lecture and then Final Project!! I have no idea what to do for this one!