dpaste is a Django based pastebin. It's intended to run separately but its also possible to be installed into an existing Django project like a regular app. You can find a live example on dpaste.de WWW: https://github.com/DarrenOfficial/dpaste