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 http:https://dpaste.de/
Further documentation can be found here: http:https://dpaste.readthedocs.org/en/latest/