def get_current_application(request):
    """Get current application."""
    try:
        app_name = request.resolver_match.namespace

        if not app_name:
            app_name = "home"
    except Exception as e:
        app_name = "home"

    return app_name