diff options
author | B. Stack <bgstack15@gmail.com> | 2022-02-11 16:24:40 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-02-11 16:24:40 -0500 |
commit | de002f4b786f93b966fa495b44154fb1979949ee (patch) | |
tree | 63c62b7a615980ec5a4300b1a8cd5022e7c3f6e6 | |
parent | add private paste (diff) | |
download | stackbin-de002f4b786f93b966fa495b44154fb1979949ee.tar.gz stackbin-de002f4b786f93b966fa495b44154fb1979949ee.tar.bz2 stackbin-de002f4b786f93b966fa495b44154fb1979949ee.zip |
fixed deps which means flask 1
So the next step will be to make it work with flask 2 (current)
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | README-bgstack15.md | 6 | ||||
-rw-r--r-- | manage.py | 4 | ||||
-rw-r--r-- | pastebin.py | 2 | ||||
-rw-r--r-- | requirements.txt | 4 |
5 files changed, 11 insertions, 6 deletions
@@ -9,3 +9,4 @@ dist env pastebin_uwsgi.ini config.cfg +.*.swp diff --git a/README-bgstack15.md b/README-bgstack15.md new file mode 100644 index 0000000..398d629 --- /dev/null +++ b/README-bgstack15.md @@ -0,0 +1,6 @@ +# Alternatives + +## Unresearched +https://github.com/yasoob/logit-bin +https://github.com/AWilliams17/PasteMate +https://github.com/bsamadi/flask-pastebin @@ -1,5 +1,5 @@ -from flask.ext.script import Manager, Server -from flask.ext.script.commands import Clean +from flask_script import Manager, Server +from flask_script.commands import Clean from pastebin import app, db manager = Manager(app) diff --git a/pastebin.py b/pastebin.py index 4d4309d..c2ed89d 100644 --- a/pastebin.py +++ b/pastebin.py @@ -2,7 +2,7 @@ from datetime import datetime from itsdangerous import Signer from flask import (Flask, request, url_for, redirect, g, render_template, session, abort) -from flask.ext.sqlalchemy import SQLAlchemy +from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) diff --git a/requirements.txt b/requirements.txt index 0f59a86..b1b3d3f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,4 @@ -Flask -Flask-OAuth +Flask<2.0.0 Flask-SQLAlchemy Flask-Script -juggernaut PyMySQL |