[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] branch master updated: run 'migrate' from 'dja
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] branch master updated: run 'migrate' from 'django' subparser handler, as virgin dbs need that. |
Date: |
Mon, 15 May 2017 21:57:25 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new bbeba15 run 'migrate' from 'django' subparser handler, as virgin dbs
need that.
bbeba15 is described below
commit bbeba15453a4ae27b63f5f5826a19a5dad617365
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon May 15 21:56:54 2017 +0200
run 'migrate' from 'django' subparser handler, as virgin dbs
need that.
---
taler-bank-manage.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/taler-bank-manage.in b/taler-bank-manage.in
index c3fce52..92bbcad 100644
--- a/taler-bank-manage.in
+++ b/taler-bank-manage.in
@@ -27,6 +27,10 @@ uwsgi_logfmt = "%(ltime) %(proto) %(method) %(uri) %(proto)
=> %(status)"
def handle_django(args):
import django
django.setup()
+ from django.core.management import call_command
+ # always run 'migrate' first, in case a virgin db gets
+ # used.
+ call_command('migrate')
from django.core.management import execute_from_command_line
execute_from_command_line([sys.argv[0] + " django"] + args.command)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-bank] branch master updated: run 'migrate' from 'django' subparser handler, as virgin dbs need that.,
gnunet <=