mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 03:26:45 +00:00
Add a simple "shell" task
This commit is contained in:
parent
e3231bbedb
commit
28333c1a21
10
tasks.py
10
tasks.py
@ -102,6 +102,16 @@ def install(c):
|
||||
print("Config file 'config.yaml' does not exist - copying from template.")
|
||||
copyfile(CONFIG_TEMPLATE_FILE, CONFIG_FILE)
|
||||
|
||||
|
||||
@task
|
||||
def shell(c):
|
||||
"""
|
||||
Open a python shell with access to the InvenTree database models.
|
||||
"""
|
||||
|
||||
manage(c, 'shell', pty=True)
|
||||
|
||||
|
||||
@task
|
||||
def superuser(c):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user