Coder Social home page Coder Social logo

pasteque's Introduction

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']

Create some needed directories:

mkdir -p var/{logs,db}

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.