Here's something often used in Django.
Here is a code example demonstrating how to display content retrieved via AJAX in a dialog using Bootbox.