Beispiel #1
0
def manage_apps(request):
    from cartoview.version import get_backward_compatible, get_current_version
    apps = App.objects.all()
    context = {
        'apps': apps,
        'site_apps': get_apps_names(),
        'version_info': {
            'current_version': get_current_version(),
            'backward_versions': get_backward_compatible()
        }
    }
    return render(request, 'app_manager/manage.html', context)
Beispiel #2
0
def manage_apps(request):
    from cartoview.version import get_backward_compatible, get_current_version
    from pkg_resources import parse_version
    apps = App.objects.all()
    _version = parse_version(get_current_version())._version
    release = _version.release
    version = [str(x) for x in release]
    context = {
        'apps': apps,
        'site_apps': get_apps_names(),
        'version_info': {
            'current_version': ".".join(version),
            'backward_versions': get_backward_compatible()
        }
    }
    return render(request, 'app_manager/manage.html', context)