Go to file
Julien Palard 3ef7baccac No longer exists. 2020-07-10 17:42:40 +02:00
dict Try to use words. 2020-05-31 18:14:26 +02:00
paste No longer exists. 2020-07-10 17:42:40 +02:00
webtools Add the ability to import local_settings. 2020-05-31 23:22:28 +02:00
.gitignore Rewriting README, simplifying setup. 2020-05-31 16:50:26 +02:00
LICENSE.md first commit 2013-04-04 19:37:30 +02:00
README.md Try to use words. 2020-05-31 18:14:26 +02:00
manage.py first commit 2013-04-04 19:37:30 +02:00
requirements.in Rewriting README, simplifying setup. 2020-05-31 16:50:26 +02:00
requirements.txt Rewriting README, simplifying setup. 2020-05-31 16:50:26 +02:00

README.md

Pasteque

About

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

An instance can be found at: wyz.fr. The wyz.fr instance is installed by ansible, the role is available here: https://github.com/JulienPalard/playbooks/tree/master/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.
  • Public/private pastes (don't appear in the pastes history).
  • Time-based or "page loads"-based pastes expiration.
  • Password protection.
  • Possibility to enable/disable renderers and to choose the default one.
  • Limit pastes size.
  • Pastes history.

Running Pasteque

In a venv, install the requirements:

pip install -r requirements.txt

In settings.py edit:

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

Then create the database:

./manage.py migrate

Insert initial data (like known languages):

./manage.py loaddata initial

If you're in production collect static files:

./manage.py collectstatic

Run it:

./manage.py runserver

Words generation

To generate the french dict I used

$ unmunch <(grep po:adj /usr/share/hunspell/fr_FR.dic) /usr/share/hunspell/fr_FR.aff | LC_ALL=C grep '^[a-z]*$' | grep '^[a-z]\{2,7\}$' | uniq > dict/french