Django templating language

It’s been awhile since I last posted anything here.

Contrary to having graduated from being a noob, it’s because I’ve stumbled over Django’s powerful templating language.

Yes, everyone keeps emphasizing how powerful it is. So much in fact that I cannot find out where to start learning it. What’s a noob got to do?

static! static everywhere!

So having turned my Django debug to false, I realise it no longer serves static files for me and my webserver is not doing its part in holding up its end of the bargain!

Talk about dropping the ball!



I’m still figuring out how to set up my webserver to handle static files. Is it a matter of changing the links in my and to hardcode them to my website? Or do I have to get my hosting to set up Apache’s httpd.conf to serve static files (which I do not have access to)

Deploying Django site

Nope, I’m not done yet, but I’m keen to have at least half my site live so that I can stop looking shame-faced and shifty-eyed when people ask about my website. Especially if just a moment before I was running an elevator pitch.

Following that with “uh, my website is under construction” is the equivalent to Billy and Donald’s great efforts at the wave here:



So with all the security scare about Heartbleed bugs and keeping secret keys, while, secret, I still have no clue what to do different when deploying as vs. to developing. You mean I don’t just upload the whole lump onto a live server and point my domain name at it?

Tommy Jarnac has a brilliant post on the best practices for moving a Django project into production mode.

Meanwhile, I’m taking so long on my website I wonder if I should just turn it into a ‘reality’ tv show and let visitors see my bits and pieces of experimentation LIVE.


Uncompressable File Error

UncompressableFileError at /home/

'css/style.css' isn't accessible via COMPRESS_URL ('/static/') and can't be compressed

The missing base.html file was found by adding /wagweb/ to

{% extends "wagweb/base.html" %}

Now however, I get an uncompressable File Error. Oops, found it, I forgot to add a static link in my css href.

Now it kinda sorta works, except my page is blank and not showing anything.

Extending a base.html

Further digging into the templates of my website, I’ve tried setting up a base.html and using it to extend throughout the rest of my website. Seem to have a problem getting Django to find it though, because right now it says

base.html template does not exist

although it’s parked right next to all my other htmls in my templates/wagweb folder. hmm… reminds me of when static files were not loaded. Something is differently pointing wrongly!