Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
using flask_script everywhere instead of flask.ext.script
Browse files Browse the repository at this point in the history
  • Loading branch information
anthraxx committed Sep 6, 2017
1 parent 6ee7a6a commit fcf894b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ Then the user can register the sub-manager to their primary Manager (within mana

manager = Manager(app)

from flask.ext.database import manager as database_manager
from flask_database import manager as database_manager
manager.add_command("database", database_manager)

The commands will then be available::
Expand Down
4 changes: 2 additions & 2 deletions examples/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import pprint

from flask import Flask, current_app
from flask.ext.script import Manager, prompt_choices, Server
from flask.ext.script.commands import ShowUrls, Clean
from flask_script import Manager, prompt_choices, Server
from flask_script.commands import ShowUrls, Clean


def create_app(config=None):
Expand Down
4 changes: 2 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import unittest

from flask import Flask
from flask.ext.script._compat import StringIO, text_type
from flask.ext.script import Command, Manager, Option, prompt, prompt_bool, prompt_choices
from flask_script._compat import StringIO, text_type
from flask_script import Command, Manager, Option, prompt, prompt_bool, prompt_choices

from pytest import raises

Expand Down

0 comments on commit fcf894b

Please sign in to comment.