Added extra logging to social redirect

This commit is contained in:
Fergal Moran
2015-07-01 20:38:43 +01:00
parent 4a13fd4b0f
commit e3f9b8b791
8 changed files with 84 additions and 56 deletions

View File

@@ -1,10 +1,18 @@
from django.core.management.base import NoArgsCommand
from django.core.management.base import NoArgsCommand, BaseCommand
from core.utils.cdn import upload_to_azure
from spa.models import Mix
class Command(NoArgsCommand):
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument(
'--delete',
action='store_true',
dest='delete',
default=False,
help='Delete poll instead of closing it')
def handle_noargs(self, **options):
try:
mixes = Mix.objects.filter(archive_updated=False)
@@ -16,3 +24,6 @@ class Command(NoArgsCommand):
except Exception, ex:
print "Fatal error, bailing. {0}".format(ex.message)
def handle(self, *args, **options):
pass