def handle(self, *args, **options): metas = get_metas() print( loader.render_to_string( 'django_model_documentation/documentation_local.html', locals()))
def model_documentation(request): metas = get_metas() return render(request, 'django_model_documentation/documentation_local.html', locals())
def handle(self, *args, **options): sys.stdout = codecs.open("result.html", "w", "utf-16") metas = get_metas() print loader.render_to_string('django_model_documentation/documentation_local.html', locals())
def handle(self, *args, **options): sys.stdout = codecs.open("result.html", "w", "utf-16") metas = get_metas() print loader.render_to_string("django_model_documentation/documentation_local.html", locals())
def model_documentation(request): metas = get_metas() return render(request, 'django_model_documentation/documentation_local.html', locals())