def core(request): return { 'board_address': settings.BOARD_ADDRESS, 'version': get_version(), 'f': { 'DATE_FORMAT': settings.DATE_FORMAT, 'TIME_FORMAT': settings.TIME_FORMAT, 'DATETIME_FORMAT': settings.DATETIME_FORMAT, 'SHORT_DATETIME_FORMAT': settings.SHORT_DATETIME_FORMAT, } }
def handle(self, *args, **options): self.stdout.write('\n') self.stdout.write(' _\n') self.stdout.write( ' ____ ___ (_)________ ____ ____ \n') self.stdout.write( ' / __ `__ \/ / ___/ __ `/ __ `/ __ \ \n') self.stdout.write( ' / / / / / / (__ ) /_/ / /_/ / /_/ / \n') self.stdout.write( ' /_/ /_/ /_/_/____/\__,_/\__, /\____/ \n') self.stdout.write( ' /____/\n') self.stdout.write('\n') self.stdout.write( ' Your community is powered by Misago v.%s' % get_version()) self.stdout.write( '\n For help and feedback visit http://misago-project.org' ) self.stdout.write('\n\n') self.stdout.write( '================================================================================' ) self.stdout.write('\n\n') self.stdout.write('Copyright (C) %s, Rafal Piton' % timezone.now().year) self.stdout.write('\n') self.stdout.write( '\nThis program is free software; you can redistribute it and/or modify it under' ) self.stdout.write( '\nthe terms of the GNU General Public License version 3 as published by' ) self.stdout.write('\nthe Free Software Foundation') self.stdout.write('\n') self.stdout.write( '\nThis program is distributed in the hope that it will be useful, but' ) self.stdout.write( '\nWITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY' ) self.stdout.write( '\nor FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License' ) self.stdout.write('\nfor more details.') self.stdout.write('\n') self.stdout.write( '\nYou should have received a copy of the GNU General Public License along' ) self.stdout.write( '\nalong with this program. If not, see <http://www.gnu.org/licenses/>.' ) self.stdout.write('\n\n')
def handle(self, *args, **options): self.stdout.write("\n") self.stdout.write(" _\n") self.stdout.write(" ____ ___ (_)________ ____ ____ \n") self.stdout.write(" / __ `__ \/ / ___/ __ `/ __ `/ __ \ \n") self.stdout.write(" / / / / / / (__ ) /_/ / /_/ / /_/ / \n") self.stdout.write(" /_/ /_/ /_/_/____/\__,_/\__, /\____/ \n") self.stdout.write(" /____/\n") self.stdout.write("\n") self.stdout.write(" Your community is powered by Misago v.%s" % get_version()) self.stdout.write("\n For help and feedback visit http://misago-project.org") self.stdout.write("\n\n") self.stdout.write("================================================================================") self.stdout.write("\n\n") self.stdout.write("Copyright (C) %s, Rafal Piton" % timezone.now().year) self.stdout.write("\n") self.stdout.write("\nThis program is free software; you can redistribute it and/or modify it under") self.stdout.write("\nthe terms of the GNU General Public License version 3 as published by") self.stdout.write("\nthe Free Software Foundation") self.stdout.write("\n") self.stdout.write("\nThis program is distributed in the hope that it will be useful, but") self.stdout.write("\nWITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY") self.stdout.write("\nor FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License") self.stdout.write("\nfor more details.") self.stdout.write("\n") self.stdout.write("\nYou should have received a copy of the GNU General Public License along") self.stdout.write("\nalong with this program. If not, see <http://www.gnu.org/licenses/>.") self.stdout.write("\n\n")
def core(request): return { 'request_path': request.get_full_path(), 'board_address': settings.BOARD_ADDRESS, 'version': get_version(), }