dpaste is an open-source pastebin written in Python with Django, runnable standalone as a Django project or embedded as an app in an existing site.