The Django project driving dpaste.org
Find a file
2019-12-07 17:04:52 +01:00
client Break superlongwordswhichextendthecanvas. Fixes #132 2019-12-05 12:07:18 +01:00
docs Drop pipenv in favor of Docker/Virtualenv. 2019-12-07 11:37:30 +01:00
dpaste Extra context variables 2019-12-07 17:04:44 +01:00
.dockerignore Drop pipenv in favor of Docker/Virtualenv. 2019-12-07 11:37:30 +01:00
.editorconfig Editorconfig 2019-12-07 09:37:24 +01:00
.gitignore Fix Django 3.0 tests with CSP issues 2019-12-07 12:05:53 +01:00
.node-version Use latest node for local development. 2019-12-05 11:35:04 +01:00
.python-version Update pyenv version list. 2019-12-05 09:39:44 +01:00
.travis.yml Fixed travis conf 2019-12-05 12:36:10 +01:00
CHANGELOG.rst Drop pipenv in favor of Docker/Virtualenv. 2019-12-07 11:37:30 +01:00
docker-compose.yml Try to automate migrations. 2019-12-07 12:21:04 +01:00
Dockerfile Try to automate migrations. 2019-12-07 12:21:04 +01:00
LICENSE Numerous fixes around package management. Kudos to @koobs. 2013-12-14 13:17:53 +01:00
Makefile Drop pipenv in favor of Docker/Virtualenv. 2019-12-07 11:37:30 +01:00
manage.py Document Docker installation 2019-12-07 13:03:18 +01:00
MANIFEST.in Remove local config from package. 2019-09-12 09:13:17 +02:00
package-lock.json Bump mixin-deep from 1.3.1 to 1.3.2 (#131) 2019-11-09 09:43:11 +01:00
package.json Drop pipenv in favor of Docker/Virtualenv. 2019-12-07 11:37:30 +01:00
README.rst Update README.rst 2019-12-07 13:12:06 +01:00
setup.cfg Drop pipenv in favor of Docker/Virtualenv. 2019-12-07 11:37:30 +01:00
setup.py Code cleanup and setup.cfg 2019-01-25 13:47:00 +01:00
tox.ini No need to test out of support Djangos. 2019-12-07 07:57:35 +01:00

======
dpaste
======

.. image:: https://img.shields.io/pypi/v/dpaste.svg
   :target: https://pypi.org/project/dpaste/

.. image:: https://travis-ci.org/bartTC/dpaste.svg?branch=master
   :target: https://travis-ci.org/bartTC/dpaste

.. image:: https://api.codacy.com/project/badge/Coverage/185cfbe9b4b447e59a40f816c4a5ebf4
   :target: https://www.codacy.com/app/bartTC/dpaste

.. image:: https://api.codacy.com/project/badge/Grade/185cfbe9b4b447e59a40f816c4a5ebf4
   :target: https://www.codacy.com/app/bartTC/dpaste

----

📖 Full documentation on https://dpaste.readthedocs.io/

dpaste is a pastebin_ application written in Python using the Django
framework. You can find a live installation on `dpaste.de`_.

.. image:: https://raw.githubusercontent.com/bartTC/dpaste/master/docs/_static/dpaste_de_screenshot.png
   :alt: A screenshot of https://dpaste.de/
   :width: 60%

The project is intended to run standalone as any regular Django Project,
but it's also possible to install it into an existing project as a typical
Django application.

The code is open source and available on Github: https://github.com/bartTC/dpaste.
If you found bugs, have problems or ideas with the project or the website installation,
please create an *Issue* there.

⚠️ dpaste requires at a minimum Python 3.6 and Django 2.2.

Run dpaste using Docker:
========================

Docker images are in `Docker Hub`_.

You can try the latest of dpaste using Docker. This will store the snippet
database in a SQLite file in a Docker volume:

.. code:: bash

    $ docker run --rm -p 8000:8000 barttc/dpaste:latest

If you want to run it in production-like environments, it's encouraged to
use an external database. See the example below for all available options,
specifically ``DATABASE_URL``:

.. code:: bash

    $ docker run --rm --name db1 --detach postgres:latest
    $ docker run --rm -p 12345:12345 \
          --link db1 \
          -e DATABASE_URL=postgres://postgres@db1:5432/postgres \
          -e DEBUG=True \
          -e SECRET_KEY=very-secret-key \
          -e PORT=12345 \
          barttc/dpaste:latest

.. _dpaste.de: https://dpaste.de/
.. _pastebin: https://en.wikipedia.org/wiki/Pastebin
.. _Docker Hub: https://hub.docker.com/r/barttc/dpaste