From de002f4b786f93b966fa495b44154fb1979949ee Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Fri, 11 Feb 2022 16:24:40 -0500 Subject: fixed deps which means flask 1 So the next step will be to make it work with flask 2 (current) --- .gitignore | 1 + README-bgstack15.md | 6 ++++++ manage.py | 4 ++-- pastebin.py | 2 +- requirements.txt | 4 +--- 5 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 README-bgstack15.md diff --git a/.gitignore b/.gitignore index c408181..abccb3f 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/manage.py b/manage.py index ec02b06..c19b039 100644 --- a/manage.py +++ b/manage.py @@ -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 -- cgit