Django CMS Plugin Authenticated User Variations

January 11, 2016 1:14 p.m.

Note: a companion app for this post can be found here:
https://github.com/ImaginaryLandscape/cmsplugin-auth-content-example

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 ...

Read More

Updated 01/11/16 @ 01:14PM CST by dbertrand

Bookmark and Share

Categories: Popular Django Applications User Interface

Tags: CMS development django

2 Comments

A Python Solution for Making Custom PDFs from HTML

December 22, 2015 9:51 a.m.

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 ...

Read More

Updated 12/22/15 @ 09:51AM CST by ntaylor

Bookmark and Share

Categories: User Interface

Tags: django pdf python reportlab

0 Comments

Encrypted Postgres Backups

December 08, 2015 9:02 p.m.

 

When creating a Postgres Database backup, one convenient approach is to export the database to disk via the pg_dump command. This postgres export file can then be picked up by a regular filesystem backup.

A possible security risk with this approach is that your sensitive database data could be situated in multiple locations: in the database itself, at the location where export file is created on disk, and in the filesystem backup.

To mitigate this risk, it makes sense to encrypt your database backups when they are dumped to disk. Using a combination of RSA public/private key encryption and ...

Read More

Updated 12/08/15 @ 09:02PM CST by jjasinski

Bookmark and Share

Categories: Best Practices Security

0 Comments

Chicago Djangonauts meetup Sep 3, 2015

August 27, 2015 5:40 p.m.

September 3, 2015 @ 6:30pm - Braintree at 222 Merchandise Mart Plaza 

So far, we have:

Jonathan Bisson - Django-based Autocompl...

If you're interested in presenting, leave a comment and let us know.

RSVP (Facebook preferred with alternative offered for non-Facebookers):

 

Read More

Updated 08/27/15 @ 05:40PM CDT by brian

Bookmark and Share

Categories: Presentations

Testing SaltStack with Vagrant

August 24, 2015 12:45 p.m.

We use SaltStack as our primary configuration management tool for server provisioning and management.  I’ve been doing a fair amount of updates to this process and have primarily been using Vagrant to test my updates locally before pushing out to our Salt Master. 

I am going to assume you already have your Salt project set up with your states, pillars, etc.  If you want to learn about SaltStack itself, you should go check out the official walkthrough.  I also assume you have Vagrant installed and configured. If you want to learn more about Vagrant, you should checkout the documentation ...

Read More

Updated 08/24/15 @ 12:45PM CDT by djohnson

Bookmark and Share

Categories: System-level Tools Systems Administration Testing

0 Comments