mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
bitbake: toaster: implement get-dburl command
Implemented management command to call getDATABASE_URL API. It will be used to get database url from toaster shell script by running 'manage.py get-dburl' (Bitbake rev: fabe9c8f14fd7b8ab204a2b610c64ac5b62135ac) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e4731514f8
commit
a464bf23b4
@@ -0,0 +1,9 @@
|
|||||||
|
from toastermain.settings import getDATABASE_URL
|
||||||
|
from django.core.management.base import NoArgsCommand
|
||||||
|
|
||||||
|
class Command(NoArgsCommand):
|
||||||
|
args = ""
|
||||||
|
help = "get database url"
|
||||||
|
|
||||||
|
def handle_noargs(self,**options):
|
||||||
|
print getDATABASE_URL()
|
||||||
Reference in New Issue
Block a user