Yesterday, I pulled some of the duplicate web-page code out and invested a bit of time in getting the Django template inheritance to do some work for me. I’m using a layout based on an example three column layout from somewhere (I think it was one of the Dreamweaver examples originally) and the job really just involved changing the naming of the layout divs to something more abstract than they were and then plugging in the Django block tags to be filled in by the child templates. I managed to forget which directory the base template needed to go in at one point but apart from that it all worked straight off the bat. There’s still some more tidying to be done, but it’s good to see the webpage side of things beginning to become a bit less of a hack.
The mechanism for basic user access checking and redirection of unauthorised users to a login/account creation page is also in place with the new code and it’s even graceful enough to let you login and then forward you to your original page request. Hardly a work of genius, but implementing these little bits of web functionality is still a novelty and so it seems worth noting.
Onward to updating the map interface a bit and then sprucing up the web-pages themselves before standing back and having a think about some actual gameplay.

