Note: a companion app for this post can be found here:
In a recent project using django CMS, we found ourselves in need of serving alternate plugin content to authenticated users. This is not the first time a request such as this has been made, and on past occasions we went for a simple approach of naming separate placeholders for the alternative content in the template, and conditionally toggling visibility.
In this instance, however, the layout of the page and scope of the requirement called for a less rigid approach. Our custom django CMS plugin ...
Updated 01/11/16 @ 01:14PM CST by dbertrand2 Comments
The client wanted to give their users the option of printing completed forms to a pdf file. They also wanted the pdf to be rendered with formatting and style that varied slightly from the online display of the completed form, and so desired a solution other than the browser’s own print function. The open-source Reportlab library is a popular solution for generating on-the-fly pdfs, and the xhtml2pdf library, which depends on Reportlab, offers a relatively easy way to convert an html web page to pdf while (more-or-less) preserving css styles. For these reasons, we chose an approach using xhtml2pdf ...
Updated 12/22/15 @ 09:51AM CST by ntaylor
Categories: User Interface0 Comments
Hot off the presses! Slides from Joe Jasinski's DjangoCon US 2014 presentation,
Updated 09/02/14 @ 03:37PM CDT by brian0 Comments
The IPython Notebook is a really cool application, and I've always wanted to use it during Django development and debugging. The only problem is that it requires a lot of dependencies and I feel no need to encumber my production projects with those dependencies for a feature that I only plan to use in development on my desktop. Specifically, the http version of IPython Notebook requires jinja2, tornado, pyzmq (and libzmq3), and markupsafe.
Ideally, I'd be able to install these dependencies only for development, and recently I figured out a workable way to accomplish this. I figured that ...
Updated 05/05/14 @ 10:48AM CDT by jjasinski
Categories: System-level Tools
Recently I had the opportunity to attend the DjangoCon Sprint here in Chicago (see related post). One of my big take-aways from the event was that contributing to Django isn’t as daunting as I previously thought. The process is mostly straightforward and the Django team has gone a long way to make the process of contributing relatively painless. I’ve decided to write a small article on how to get started and where to look. Hopefully this helps you begin, but it is no replacement for all the great information provided by the Django team.
The first page I ...
Updated 12/05/13 @ 03:21PM CST by djohnson
Page 1 of 6