Rupturing

Rupturing

A tarot card for the tower. A squirrel looks up at a collapsing tree above him being struck by lightning.
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

This is interesting.


This is so cool. Thanks. I had been about to give up for today or at least get very tired - but something happened that annoyed me (that's rare and near impossible) and so now I have the energy to be spurred on and continue.

More stuff

In Django's tempalte language, {{}} is used to insert dynamic content from Python variables or expressions.

Context in VIEW FUNCTIONS IN DJANGO

Context can refer "to a Python dictionary that contains data to be passed to the template for rendering.

"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

Popular posts from this blog

Hello World

Yosemite

Two Lines of Thought, Makes Me Wonder What I'm Missing