|
|
@ -2,7 +2,7 @@ |
|
|
|
"""The app module, containing the app factory function.""" |
|
|
|
"""The app module, containing the app factory function.""" |
|
|
|
from flask import Flask, render_template |
|
|
|
from flask import Flask, render_template |
|
|
|
|
|
|
|
|
|
|
|
from {{cookiecutter.app_name}} import cli, public, user |
|
|
|
from {{cookiecutter.app_name}} import commands, public, user |
|
|
|
from {{cookiecutter.app_name}}.assets import assets |
|
|
|
from {{cookiecutter.app_name}}.assets import assets |
|
|
|
from {{cookiecutter.app_name}}.extensions import bcrypt, cache, csrf_protect, db, debug_toolbar, login_manager, migrate |
|
|
|
from {{cookiecutter.app_name}}.extensions import bcrypt, cache, csrf_protect, db, debug_toolbar, login_manager, migrate |
|
|
|
from {{cookiecutter.app_name}}.settings import ProdConfig |
|
|
|
from {{cookiecutter.app_name}}.settings import ProdConfig |
|
|
@ -68,7 +68,7 @@ def register_shellcontext(app): |
|
|
|
|
|
|
|
|
|
|
|
def register_commands(app): |
|
|
|
def register_commands(app): |
|
|
|
"""Register Click commands.""" |
|
|
|
"""Register Click commands.""" |
|
|
|
app.cli.add_command(cli.test) |
|
|
|
app.cli.add_command(commands.test) |
|
|
|
app.cli.add_command(cli.lint) |
|
|
|
app.cli.add_command(commands.lint) |
|
|
|
app.cli.add_command(cli.clean) |
|
|
|
app.cli.add_command(commands.clean) |
|
|
|
app.cli.add_command(cli.urls) |
|
|
|
app.cli.add_command(commands.urls) |
|
|
|