def update_bigbrother(): logger = update_bigbrother.get_logger() logger.info('Updating BigBrother modules...') update_modules() logger.info('Update complete.')
def get(self, request, *args, **kwargs): from .core import update_modules update_modules() return HttpResponse('ok')
def handle(self, *args, **options): update_modules() self.stdout.write('All modules updated successfully')