More StreamField Examples – Top news stories block by tag

We thought it would be useful to be able to display say the top 5 news stories tagged with a certain word anywhere within a page using StreamField, so for example the latest sport related news stories could be added into a column next to something else on a page in Wagtail. You could adapt …

Continue reading More StreamField Examples – Top news stories block by tag

Advertisements

My first DjangoCon

DjangoCon Europe 2015 was my first DjangoCon, held in Cardiff City Hall and Cardiff University, luckily Cardiff is where I live so the traveling was easy! There were some great talks and I learnt a lot, it's given me a whole array of things I need to look into now. Highlights for me were Baptiste …

Continue reading My first DjangoCon

Outputing JSON for a model with properties and db fields in Wagtail/Django

I thought I'd share this example because it took me ages to figure out how to output JSON for a model which included a model property as well as the actual fields of the model. For our footer links we had a property called 'link' in the snippet which would return either a full URL …

Continue reading Outputing JSON for a model with properties and db fields in Wagtail/Django

Installing Django on Mavericks Mac Os X (Simple install for development)

I was having a real problem installing Django and mySql on a mac, there were lots of guides but many of them wanted you to install another version of Python and stuff like virtualenv! The following commands are what I finally used to get it all installed using mainly homebrew. Hope this saves someone a …

Continue reading Installing Django on Mavericks Mac Os X (Simple install for development)