def app_doc(app):
    app_label = app.__name__.split('.')[-2]
    ctx = Context()
    ctx['app_label'] = app_label
    templates = ('simpleadmindoc/%s/app.rst' % app_label,
                'simpleadmindoc/app.rst')
    tmpl = select_template(templates)
    return tmpl.render(ctx)
dataset/ETHPy150Open bmihelac/django-simpleadmindoc/simpleadmindoc/generate.py/app_doc/original