Skip to content
schort is a tiny link shortener written in python3 and flask
Python HTML CSS
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
static/css Improved flexibility on different zoom and screen sizes Feb 13, 2016
templates
tests Fix typo Jun 9, 2018
.gitignore Merge branch 'master' of https://github.com/Sqozz/schort Feb 10, 2016
LICENSE
README.md typo in README.md fixed Apr 4, 2016
schort.fcgi Added FastCGI wrapper based on flipflop Feb 10, 2016
schort.py Fix handling of empty requests Jun 9, 2018
schort.wsgi Added wsgi script Feb 10, 2016

README.md

schort - It's just a tiny link shortener

Installation instructions:

  1. Clone this repo into e.g. /opt/schort
  2. Create a user and adjust permissions to write at least into /opt/schort/data
  3. Install requirements (see below)
  4. Configure your wsgi or fcgi server
  5. Configure your webserver that he talks to your wsgi/fcgi server

Requirements:

Module Explanation
Flask Flask handels all HTTP-stuff in this application
sqlite3 In gentoo this useflag needs to be set while compiling python3

µWSGI

The schort.wsgi file can be set as UWSGI_PROGRAM if you use uWSGI. Keep in mind, that the UWSGI_DIR needs to be set to the path where schort.py resists. This is because schort is not installed in a global scope. Since schort.wsgi imports schort.py it needs his workspace in the same folder.

You can’t perform that action at this time.