Go to file
Julien Palard 1b1c3a1a47
Group pastes from a same upload with the same slug.
2023-04-25 10:49:36 +02:00
paste Group pastes from a same upload with the same slug. 2023-04-25 10:49:36 +02:00
webtools Group pastes from a same upload with the same slug. 2023-04-25 10:49:36 +02:00
.gitignore Proofreading README 2023-04-21 15:05:11 +02:00
LICENSE.md first commit 2013-04-04 19:37:30 +02:00
README.md Proofreading README 2023-04-21 15:05:11 +02:00
manage.py first commit 2013-04-04 19:37:30 +02:00
requirements.in Also pretty print Markdown. 2023-04-25 09:22:03 +02:00
requirements.txt Also pretty print Markdown. 2023-04-25 09:22:03 +02:00
using.fr.md Also pretty print Markdown. 2023-04-25 09:22:03 +02:00

README.md

Paf'Pastèque

About

Pasteque is a free and open source (MIT License) Pastebin like application written in Python/Django.

An instance can be found at: p.afpy.org. The AFPy instance is installed by ansible, the role is available here: https://git.afpy.org/AFPy/infra/src/branch/main/roles/pasteque.

Features

  • Support any database supported by Django (Sqlite3, MySQL, PostgreSQL, Oracle, ...)
  • Available in english, french .. and easily translatable into another languages.
  • Syntax highlighting for a bunch of languages using Pygments.
  • Easy paste from command line or any programming language.

Running Pasteque

In a venv, install the requirements:

pip install -r requirements.txt

In a local_settings.py file, at the root of the repo:

DISPLAY_NAME = 'YourCompany-Paste'
COMPRESS_ENABLED = True
DEBUG = False
SECRET_KEY = 'fill_a_secret_key_here'
ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'paste.henriet.eu']

Create the database:

./manage.py migrate

If you're in production collect static files:

./manage.py collectstatic

Run it:

./manage.py runserver