def handle(self, *args, **options): # ensure that we have the necessary version of django if django_version[0] + django_version[1]/10 <= 1.7: raise CommandError('The dmp_makemessages command requires Django 1.8+ (the rest of DMP will work fine - this message is just for dmp_makemessages).') # go through each dmp_enabled app and compile its mako templates for app_name in _get_dmp_apps(): self.compile_mako_files(app_name) # call the superclass command return super(Command, self).handle(*args, **options)
def handle(self, *args, **options): # ensure that we have the necessary version of django if django_version[0] + django_version[1]/10 <= 1.7: raise CommandError('The dmp_makemessages command requires Django 1.8+ (the rest of DMP will work fine - this message is just for dmp_makemessages).') # go through each dmp_enabled app and compile its mako templates for app_name in _get_dmp_apps(): self.compile_mako_files(app_name) # add any extra xgettext_options (the regular makemessages doesn't do this, and I need to include other aliases like _(), _z(), etc. for opt in options.get('extra_gettext_option', []): self.xgettext_options.append(opt) # call the superclass command return super(Command, self).handle(*args, **options)
def handle(self, *args, **options): # ensure that we have the necessary version of django if django_version[0] + django_version[1] / 10 <= 1.7: raise CommandError( 'The dmp_makemessages command requires Django 1.8+ (the rest of DMP will work fine - this message is just for dmp_makemessages).' ) # go through each dmp_enabled app and compile its mako templates for app_name in _get_dmp_apps(): self.compile_mako_files(app_name) # add any extra xgettext_options (the regular makemessages doesn't do this, and I need to include other aliases like _(), _z(), etc. for opt in options.get('extra_gettext_option', []): self.xgettext_options.append(opt) # call the superclass command return super(Command, self).handle(*args, **options)