Rupturing
Rupturing
Tarot card for the Tower from the Light Seer's Tower. Please see explanation below. |
Today's song I am playing on repeat is "Rupturing" by Emily Jane White. Haven't read into the lyrics yet properly.
A little note on views in Django
"Each view is responsible for doing one of two things: return an HttpResponse object containing the content for the request page, or raising an exception such as Http404. The rest is up to you."
"Your view can read records from a database, or not. It can use a template system such as Django's - or a third-party Python template system - or not/"
Django has a template system. How interesting. I've heard of this before. I assume that it is coming later in the tutorial. What is a template I wonder?
"[Your view] can generate a PDF file, output XML, create a ZIP file on the fly, anything you want, using whatever Python libraries you want."
"All Django wants is that HttpResponse. Or an exception."
Templates
You can "use Django's template system to separate the design from Python by creating a template that the view can use."
YOU CAN "USE DJANGO'S TEMPLATE SYSTEM TO SEPARATE THE DESIGN FROM PYTHON BY CREATING A TEMPLATE THAT THE VIEW CAN USE."
New Folder
Very important: it seems to me that you need to create a new folder, and not just a new file, for your templates in Django.
In the case of the polls app it s a 'templates' folder that sits in the 'polls' folder. Oh wait but we're not done.
We need to create another 'polls' folder inside of the 'templates' folder.
From Chat GPT: Sorry it is being very helpful today
More stuff
Context in VIEW FUNCTIONS IN DJANGO
"And the only hand you hold is your very own of gold"
I have been encountering a lot of tower symbols recently.
Spoiler alert:
At the end of the boy and the heron movie
*
*
*
*
*
The great tower collapses.
And I also had a dream about a collapsing tower block. And the song rupturing...
And it is all like the tower archetype in the Tower. It collapses but for a good reason usually.
It is like a rebirth. It is like a rebirth of sorts.
It is like the death card - powerful. The death card means rebirth. It is one of the best cards in the deck.
Okay so I lost my job.
But I will find a new one soon.
Comments
Post a Comment