Wednesday, March 22, 2023

Raise

 It's a .25 rate raise from the US Federal Reserve!

                                                *     *     *


Django twenty creates a more eleborate registration form:

                                              


*     *     *

Bill C-22, the Canada Disability Benefit, in day 1 of 2 in  comittee at the

Senate:




Tuesday, March 21, 2023

Inflation_Feb

 CPI for February came out today. From the Bank of Canada:


L’inflation en perte de vitesse | La Presse

                                               *     *     *

Awaiting the US Fed rate decision of 3/22/2023.

                                                   


                                                                         


                                                                *     *     *

Nineteen

 I've spent the last few days on an abstruse problem: inconsistent use of

tabs and spaces. I check my code minutely - and it is perfect - but I am still

getting an error. Turns out that python does not accept code that is spaced with

both spaces and tabs in the same function; it needs to be one or the other.

preferably spaces. And the Sublime code editor will show which is at work

on a block of code by selecting the text and hitting crtl +A. Dots

for spaces and lines for tabs. Below:

                                                          


One just gets to work placing the code anew, till the error stops...

                                                       *     *     *

Now done with Django #19. If someone has pressed Like on a post in a previous

visit, the button is now red. It is impossible to like somethong more than once, and a further

press will subtact a Like from the count.


                                                                      


                                                            

From articledetails.html:

                                                         


                                                               *     *     *

In my desperation to check everythting in my non-working code, ended up

finding a set of the Codemy simpleBlog code on Github. Not telling anyone to

use it; but it is a resource:

https://github.com/PawanaShrestha/SimpleBlog-in-Django-Codemy.com-Tutorial-



                                                                     

                      


PEP

 Having trouble with tad and space... Did find a python style guide:

PEP 8: The Style Guide for Python Code

Monday, March 20, 2023

Spring

 SPRING!!

*     *     *
An interesting look at Bank regulation, from the New Yorker:


                                                                              *     *     *

The other view - and a sub-pectoral procedure - on breast augmentation:


Sunday, March 19, 2023

Convoluted

 Django # 18, appears convoluted. It does use a ManytoMany field: one of many users

likes one of many posts! It also calls on http to make changes to article_details.html

ie there is an additions operation to change the likes count on a page.


From models:


From views:
                                                                               

                                                                                

From article_details.html:
                                                                             

From urls:
                                                                                    



Saturday, March 18, 2023

Minor_Prob

 Had a frustrating day, yesterday. Could not get the dbshell to show

in my django app. 

The answer is to uninstall, and reinstall python.

So today, the problem is:

                                                   


I took a while, but I eventually found the simple way to do this.Just

changed the numbers to version 3.11.2 !!

                                                                          


Django #18 is completed, and I am now keeping rack of likes for each post.

(Admin also shows me who is liking the post!!

                                                                            

                                                                                


*     *     *