|
|
946c84d |
From fcf894b6e4d0ad17489480b722c870aaea600db1 Mon Sep 17 00:00:00 2001
|
|
|
946c84d |
From: anthraxx <levente@leventepolyak.net>
|
|
|
946c84d |
Date: Wed, 6 Sep 2017 12:03:22 +0200
|
|
|
946c84d |
Subject: [PATCH] using flask_script everywhere instead of flask.ext.script
|
|
|
946c84d |
|
|
|
946c84d |
---
|
|
|
946c84d |
docs/index.rst | 2 +-
|
|
|
946c84d |
tests.py | 4 ++--
|
|
|
946c84d |
3 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
946c84d |
|
|
|
946c84d |
diff --git a/docs/index.rst b/docs/index.rst
|
|
|
946c84d |
index 775ffca..9266d4b 100644
|
|
|
946c84d |
--- a/docs/index.rst
|
|
|
946c84d |
+++ b/docs/index.rst
|
|
|
946c84d |
@@ -577,7 +577,7 @@ Then the user can register the sub-manager to their primary Manager (within mana
|
|
|
946c84d |
|
|
|
946c84d |
manager = Manager(app)
|
|
|
946c84d |
|
|
|
946c84d |
- from flask.ext.database import manager as database_manager
|
|
|
946c84d |
+ from flask_database import manager as database_manager
|
|
|
946c84d |
manager.add_command("database", database_manager)
|
|
|
946c84d |
|
|
|
946c84d |
The commands will then be available::
|
|
|
946c84d |
diff --git a/tests.py b/tests.py
|
|
|
946c84d |
index 93d0071..24f3f15 100644
|
|
|
946c84d |
--- a/tests.py
|
|
|
946c84d |
+++ b/tests.py
|
|
|
946c84d |
@@ -5,8 +5,8 @@
|
|
|
946c84d |
import unittest
|
|
|
946c84d |
|
|
|
946c84d |
from flask import Flask
|
|
|
946c84d |
-from flask.ext.script._compat import StringIO, text_type
|
|
|
946c84d |
-from flask.ext.script import Command, Manager, Option, prompt, prompt_bool, prompt_choices
|
|
|
946c84d |
+from flask_script._compat import StringIO, text_type
|
|
|
946c84d |
+from flask_script import Command, Manager, Option, prompt, prompt_bool, prompt_choices
|
|
|
946c84d |
|
|
|
946c84d |
from pytest import raises
|
|
|
946c84d |
|