예제 #1
0
 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())
예제 #3
0
 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())
예제 #5
0
def model_documentation(request):
    metas = get_metas()
    return render(request, 'django_model_documentation/documentation_local.html', locals())