Skip to main content

Pluggable, configurable, pastebin HTTP REST API

Project description

Pluggable, configurable, pastebin HTTP REST API

PyPI PyPI - License PyPI - Python Version Coverage Build Status Documentation Status

django-paste is a simple Django pluggable app of a code pasting and highlighting HTTP REST API, written using Django REST framework. It supports the CRUD operations on source code snippets and uses any existing user authentication system. Syntax highlighting is powered by Pygments.


The following Python versions are supported:

  • CPython: 3.6, 3.7, 3.8, 3.9
  • PyPy: 3.6


  • 2.0, 2.1, 2.2
  • 3.0, 3.1
  • Install via pip:

    $ pip install django-paste
  • Add it to your INSTALLED_APPS:

        # ...
  • Register the app’s URLs under a path of your choice:

    urlpatterns = [
        # ...
        path('some-path/', include('paste.urls')),

    where 'some-path/' could be any URL.

  • Optionally, configure the app settings.

  • Generate and run the database migrations:

    $ python makemigrations paste
    $ python migrate


You can find the description of the app’s endpoints and snippet fields in the documentation. You can also manage snippets at the Django admin site.


Distributed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-paste, version 1.1.3
Filename, size File type Python version Upload date Hashes
Filename, size django_paste-1.1.3-py3-none-any.whl (8.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-paste-1.1.3.tar.gz (16.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page