when do you use quotes

I’m learning django and am a little confused about the use of quotes. It seems that you can use double quotes inside of double quotes instead of the standard double quote single quote paradigm. Also, it seems that some references to urls get quoted and others do not. Can someone point me to the documentation on the use of quotes when coding in django?

Single and double quotations have the same uses in python. This is not a Django paradigm, but more so an attribute of the language.

<Opinion>
Regarding coding stylistic/format choices, I’d recommend using Black. For me the consistency it enforces is vastly outweighs some of the odder formatting choices it makes. It renders some decisions, such as using ' or " pointless since it’ll transform them as it sees fit.
</Opinion>