Repository

https://readthedocs:[email protected]/gitea/rcc-rccreator-docs.git

Project Slug

rcc-rccreator-docs

Last Built

1 month, 1 week ago passed

Maintainers

Badge

Tags

Project has no tags.

Short URLs

rcc-rccreator-docs.delly.info

Translations

Default Version

latest

'latest' Version

master

DJDT

Versions

Package Name Version
Django 4.2.7
Python 3.10.12
allauth Allauth 0.51.0.final.0
annoying Annoying 0.10.6
cacheops Cacheops 7.0.2
crispy_forms Crispy_Forms 1.14.0
debug_toolbar Debug Toolbar 4.2.0
dj_pagination Dj_Pagination 2.3.3.final.0
django_celery_beat Periodic Tasks 2.5.0
django_elasticsearch_dsl Django elasticsearch-dsl 7.1.1
django_extensions Django Extensions 3.2.3
django_filters Django_Filters 23.3
polymorphic Polymorphic 3.1.0
rest_framework Django REST framework 3.14.0
rest_framework_api_key API Key Permissions 3.0.0
taggit Taggit 5.0.1

Time

Resource usage

Resource Value
User CPU time 168.459 msec
System CPU time 38.391 msec
Total CPU time 206.850 msec
Elapsed time 221.885 msec
Context switches 63 voluntary, 6 involuntary

Browser timing

Timing attribute Timeline Milliseconds since navigation start (+length)

Settings from readthedocs.settings.web_docker

Setting Value
ABSOLUTE_URL_OVERRIDES {'auth.user': <function CommunityBaseSettings.<lambda> at 0x7f4a779723b0>}
ACCOUNT_ADAPTER 'readthedocs.core.adapters.AccountAdapter'
ACCOUNT_AUTHENTICATION_METHOD 'username_email'
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS 7
ACCOUNT_EMAIL_REQUIRED True
ACCOUNT_EMAIL_VERIFICATION 'none'
ACCOUNT_FORMS {'signup': 'readthedocs.forms.SignupFormWithNewsletter'}
ADMINS []
ADMIN_MEDIA_PREFIX '/media/admin/'
ADSERVER_API_BASE '********************'
ADSERVER_API_KEY '********************'
ADSERVER_API_TIMEOUT '********************'
ALLOWED_HOSTS ['*']
ALLOW_ADMIN True
ALLOW_PRIVATE_REPOS True
APPEND_SLASH True
ATOMIC_REQUESTS True
AUTHENTICATION_BACKENDS ('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend')
AUTH_PASSWORD_VALIDATORS '********************'
AUTH_USER_MODEL 'auth.User'
AWS_ACCESS_KEY_ID '********************'
AWS_QUERYSTRING_AUTH False
AWS_S3_ENCRYPTION False
AWS_S3_ENDPOINT_URL 'http://storage:9000/'
AWS_S3_SECURE_URLS False
AWS_S3_USE_SSL False
AWS_SECRET_ACCESS_KEY '********************'
BROKER_URL 'redis://:redispassword@cache:6379/0'
BUILD_COLD_STORAGE_URL 'http://storage:9000/builds'
CACHEOPS {'builds.version': {'ops': {'get', 'fetch'}, 'timeout': 3600}, 'organizations.organization': {'ops': {'get', 'fetch'}, 'timeout': 3600}, 'projects.domain': {'ops': {'get', 'fetch'}, 'timeout': 3600}, 'projects.feature': {'ops': {'get', 'fetch'}, 'timeout': 3600}, 'projects.project': {'ops': {'get', 'fetch'}, 'timeout': 3600}, 'projects.projectrelationship': {'ops': {'get', 'fetch'}, 'timeout': 3600}, 'subscriptions.planfeature': {'ops': {'get', 'fetch'}, 'timeout': 3600}}
CACHEOPS_DEGRADE_ON_FAILURE True
CACHEOPS_ENABLED False
CACHEOPS_OPS {'get', 'fetch'}
CACHEOPS_REDIS 'redis://:redispassword@cache:6379/1'
CACHEOPS_TIMEOUT 3600
CACHES {'default': {'BACKEND': 'django.core.cache.backends.redis.RedisCache', 'LOCATION': 'redis://:redispassword@cache:6379'}}
CACHE_MIDDLEWARE_ALIAS 'default'
CACHE_MIDDLEWARE_KEY_PREFIX '********************'
CACHE_MIDDLEWARE_SECONDS 60
CELERYBEAT_SCHEDULE {'every-15m-delete-pidbox-objects': {'options': {'queue': 'web'}, 'schedule': <crontab: */15 * * * * (m/h/d/dM/MY)>, 'task': 'readthedocs.core.tasks.cleanup_pidbox_keys'}, 'every-day-delete-old-buildata-models': {'options': {'queue': 'web'}, 'schedule': <crontab: 0 2 * * * (m/h/d/dM/MY)>, 'task': 'readthedocs.telemetry.tasks.delete_old_build_data'}, 'every-day-delete-old-page-views': {'options': {'queue': 'web'}, 'schedule': <crontab: 27 */6 * * * (m/h/d/dM/MY)>, 'task': 'readthedocs.analytics.tasks.delete_old_page_counts'}, 'every-day-delete-old-revoked-build-api-keys': '********************', 'every-day-delete-old-search-queries': {'options': {'queue': 'web'}, 'schedule': <crontab: 0 0 * * * (m/h/d/dM/MY)>, 'task': 'readthedocs.search.tasks.delete_old_search_queries_from_db'}, 'every-day-email-pending-custom-domains': {'options': {'queue': 'web'}, 'schedule': <crontab: 0 3 * * * (m/h/d/dM/MY)>, 'task': 'readthedocs.domains.tasks.email_pending_custom_domains'}, 'every-day-resync-remote-repositories': {'options': {'queue': 'web'}, 'schedule': <crontab: 30 2 * * * (m/h/d/dM/MY)>, 'task': 'readthedocs.oauth.tasks.sync_active_users_remote_repositories'}, 'every-day-resync-sso-organization-users': {'options': {'queue': 'web'}, 'schedule': <crontab: 0 4 * * * (m/h/d/dM/MY)>, 'task': 'readthedocs.oauth.tasks.sync_remote_repositories_organizations'}, 'every-three-hour-clear-persistent-messages': {'options': {'queue': 'web'}, 'schedule': <crontab: 0 */3 * * * (m/h/d/dM/MY)>, 'task': 'readthedocs.core.tasks.clear_persistent_messages'}, 'every-three-hours-delete-inactive-external-versions': {'options': {'queue': 'web'}, 'schedule': <crontab: 0 */3 * * * (m/h/d/dM/MY)>, 'task': 'readthedocs.builds.tasks.delete_closed_external_versions'}, 'quarter-archive-builds': {'kwargs': {'days': 1, 'delete': True, 'limit': 500}, 'options': {'queue': 'web'}, 'schedule': <crontab: */15 * * * * (m/h/d/dM/MY)>, 'task': 'readthedocs.builds.tasks.archive_builds_task'}, 'quarter-finish-inactive-builds': {'options': {'queue': 'web'}, 'schedule': <crontab: */15 * * * * (m/h/d/dM/MY)>, 'task': 'readthedocs.projects.tasks.utils.finish_inactive_builds'}, 'weekly-delete-old-personal-audit-logs': {'options': {'queue': 'web'}, 'schedule': <crontab: 0 7 wed * * (m/h/d/dM/MY)>, 'task': 'readthedocs.audit.tasks.delete_old_personal_audit_logs'}}
CELERYBEAT_SCHEDULER 'django_celery_beat.schedulers:DatabaseScheduler'
CELERYD_HIJACK_ROOT_LOGGER False
CELERYD_PREFETCH_MULTIPLIER 1
CELERYD_TASK_TIME_LIMIT 3600
CELERY_ACKS_LATE True
CELERY_ALWAYS_EAGER False
CELERY_APP_NAME 'readthedocs'
CELERY_CREATE_MISSING_QUEUES True
CELERY_DEFAULT_QUEUE 'celery'
CELERY_IGNORE_RESULT True
CELERY_ROUTES ('readthedocs.builds.tasks.TaskRouter',)
CELERY_SEND_TASK_ERROR_EMAILS False
CLASS_OVERRIDES {}
CORS_ALLOWED_ORIGIN_REGEXES [re.compile('.+')]
CORS_ALLOW_CREDENTIALS False
CORS_ALLOW_HEADERS ['accept', 'authorization', 'content-type', 'user-agent', 'x-csrftoken', 'x-requested-with', 'x-hoverxref-version']
CORS_ALLOW_METHODS ['GET', 'OPTIONS', 'HEAD']
CORS_URLS_REGEX re.compile('\n ^(\n /api/v2/footer_html\n |/api/v2/search\n |/api/v2/docsearch\n |/api/v2/embed\n |/api/v3/embed\n |/api/v2/sustainability, re.VERBOSE)
CRISPY_ALLOWED_TEMPLATE_PACKS ('bootstrap', 'uni_form', 'bootstrap3', 'bootstrap4')
CRISPY_TEMPLATE_PACK 'bootstrap'
CSP_BLOCK_ALL_MIXED_CONTENT True
CSP_DEFAULT_SRC None
CSP_EXCLUDE_URL_PREFIXES ('/admin/',)
CSP_FRAME_ANCESTORS ("'none'",)
CSP_OBJECT_SRC ("'none'",)
CSP_REPORT_ONLY False
CSP_REPORT_URI None
CSRF_COOKIE_AGE 2592000
CSRF_COOKIE_DOMAIN None
CSRF_COOKIE_HTTPONLY True
CSRF_COOKIE_MASKED False
CSRF_COOKIE_NAME 'csrftoken'
CSRF_COOKIE_PATH '/'
CSRF_COOKIE_SAMESITE 'Lax'
CSRF_COOKIE_SECURE False
CSRF_FAILURE_VIEW 'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME 'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS []
CSRF_USE_SESSIONS False
DASHBOARD_ANALYTICS_CODE None
DATABASES {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'database', 'NAME': 'docs_db', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'docs_user'}, 'telemetry': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'database', 'NAME': 'telemetry', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'docs_user'}}
DATABASE_ROUTERS ['readthedocs.core.db.MapAppsRouter']
DATA_UPLOAD_MAX_MEMORY_SIZE 2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS None
DATA_UPLOAD_MAX_NUMBER_FILES 100
DATETIME_FORMAT 'N j, Y, P'
DATETIME_INPUT_FORMATS ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M']
DATE_FORMAT 'N j, Y'
DATE_INPUT_FORMATS ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y']
DEBUG True
DEBUG_PROPAGATE_EXCEPTIONS False
DEBUG_TOOLBAR_CONFIG {'SHOW_TOOLBAR_CALLBACK': <function CommunityBaseSettings.DEBUG_TOOLBAR_CONFIG.<locals>._show_debug_toolbar at 0x7f4a78093130>}
DECIMAL_SEPARATOR '.'
DEFAULT_AUTO_FIELD 'django.db.models.AutoField'
DEFAULT_CHARSET 'utf-8'
DEFAULT_EXCEPTION_REPORTER 'django.views.debug.ExceptionReporter'
DEFAULT_EXCEPTION_REPORTER_FILTER 'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE 'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL '[email protected]'
DEFAULT_INDEX_TABLESPACE ''
DEFAULT_PRIVACY_LEVEL 'public'
DEFAULT_TABLESPACE ''
DEFAULT_VERSION_PRIVACY_LEVEL 'public'
DISALLOWED_USER_AGENTS []
DJSTRIPE_FOREIGN_KEY_TO_FIELD '********************'
DJSTRIPE_SUBSCRIBER_CUSTOMER_KEY '********************'
DJSTRIPE_USE_NATIVE_JSONFIELD True
DJSTRIPE_WEBHOOK_SECRET '********************'
DJSTRIPE_WEBHOOK_VALIDATION 'retrieve_event'
DOCKER_DEFAULT_VERSION 'ubuntu-22.04'
DOCKER_ENABLE True
DOCKER_IMAGE 'readthedocs/build:ubuntu-22.04'
DOCKER_LIMITS {'memory': '1g', 'time': 900}
DOCKER_SOCKET 'unix:///var/run/docker.sock'
DOCKER_TIME_LIMIT_COEFF 0.25
DOCKER_VERSION 'auto'
DOCROOT '/usr/src/app/checkouts/readthedocs.org/user_builds/30bb4f247b5a'
DOC_PATH_PREFIX '_/'
DONT_HIT_DB False
DO_NOT_TRACK_ENABLED False
ELASTICSEARCH_DSL {'default': {'hosts': 'http://elastic:password@search:9200'}}
ELASTICSEARCH_DSL_AUTOSYNC True
ELASTICSEARCH_DSL_AUTO_REFRESH False
EMAIL_BACKEND 'django.core.mail.backends.console.EmailBackend'
EMAIL_HOST 'localhost'
EMAIL_HOST_PASSWORD '********************'
EMAIL_HOST_USER ''
EMAIL_PORT 25
EMAIL_SSL_CERTFILE None
EMAIL_SSL_KEYFILE '********************'
EMAIL_SUBJECT_PREFIX '[Django] '
EMAIL_TIMEOUT None
EMAIL_USE_LOCALTIME False
EMAIL_USE_SSL False
EMAIL_USE_TLS False
ES_INDEXES {'page': {'name': 'page_index', 'settings': {'number_of_replicas': 1, 'number_of_shards': 1}}, 'project': {'name': 'project_index', 'settings': {'number_of_replicas': 1, 'number_of_shards': 1}}}
ES_TASK_CHUNK_SIZE 500
FILE_UPLOAD_DIRECTORY_PERMISSIONS None
FILE_UPLOAD_HANDLERS ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE 2621440
FILE_UPLOAD_PERMISSIONS 420
FILE_UPLOAD_TEMP_DIR None
FIRST_DAY_OF_WEEK 0
FIXTURE_DIRS []
FORCE_SCRIPT_NAME None
FORCE_WWW False
FORMAT_MODULE_PATH None
FORM_RENDERER 'django.forms.renderers.DjangoTemplates'
GLOBAL_ANALYTICS_CODE None
GRAVATAR_DEFAULT_IMAGE 'https://assets.readthedocs.org/static/images/silhouette.png'
HOSTIP '10.10.0.1'
IGNORABLE_404_URLS []
INSTALLED_APPS ['django.contrib.auth', 'django.contrib.admin', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.humanize', 'readthedocs.core', 'django.contrib.staticfiles', 'dj_pagination', 'taggit', 'django_gravatar', 'rest_framework', 'rest_framework.authtoken', 'rest_framework_api_key', 'corsheaders', 'annoying', 'django_extensions', 'crispy_forms', 'messages_extends', 'django_elasticsearch_dsl', 'django_filters', 'polymorphic', 'simple_history', 'djstripe', 'django_celery_beat', 'readthedocs.projects', 'readthedocs.organizations', 'readthedocs.builds', 'readthedocs.doc_builder', 'readthedocs.oauth', 'readthedocs.redirects', 'readthedocs.sso', 'readthedocs.audit', 'readthedocs.rtd_tests', 'readthedocs.api.v2', 'readthedocs.api.v3', 'readthedocs.gold', 'readthedocs.payments', 'readthedocs.subscriptions', 'readthedocs.notifications', 'readthedocs.integrations', 'readthedocs.analytics', 'readthedocs.search', 'readthedocs.embed', 'readthedocs.telemetry', 'readthedocs.domains', 'readthedocs.invitations', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.github', 'allauth.socialaccount.providers.gitlab', 'allauth.socialaccount.providers.bitbucket', 'allauth.socialaccount.providers.bitbucket_oauth2', 'cacheops', 'debug_toolbar']
INTERNAL_IPS ('127.0.0.1',)
LANGUAGES (('ca', 'Catalan'), ('en', 'English'), ('es', 'Spanish'), ('pt-br', 'Brazilian Portuguese'), ('nb', 'Norwegian Bokmål'), ('fr', 'French'), ('ru', 'Russian'), ('de', 'German'), ('gl', 'Galician'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'), ('ja', 'Japanese'), ('uk', 'Ukrainian'), ('it', 'Italian'), ('ko', 'Korean'))
LANGUAGES_BIDI ['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ur']
LANGUAGE_CODE 'en-us'
LANGUAGE_COOKIE_AGE None
LANGUAGE_COOKIE_DOMAIN None
LANGUAGE_COOKIE_HTTPONLY False
LANGUAGE_COOKIE_NAME 'django_language'
LANGUAGE_COOKIE_PATH '/'
LANGUAGE_COOKIE_SAMESITE None
LANGUAGE_COOKIE_SECURE False
LOCALE_PATHS ['/usr/src/app/checkouts/readthedocs.org/readthedocs/locale']
LOGGING {'disable_existing_loggers': False, 'formatters': {'colored_console': {'()': <class 'structlog.stdlib.ProcessorFormatter'>, 'foreign_pre_chain': [<function add_logger_name at 0x7f4a77c55bd0>, <function add_log_level at 0x7f4a780bdfc0>, <structlog.stdlib.PositionalArgumentsFormatter object at 0x7f4a7795e830>, <structlog.processors.StackInfoRenderer object at 0x7f4a7795e710>, <structlog.processors.UnicodeDecoder object at 0x7f4a7795e4a0>], 'processors': [<function ProcessorFormatter.remove_processors_meta at 0x7f4a77c56170>, <structlog.dev.ConsoleRenderer object at 0x7f4a7795f0a0>]}, 'default': {'datefmt': '%d/%b/%Y %H:%M:%S', 'format': '[%(asctime)s] ' '%(name)s:%(lineno)s[%(process)d]: ' '%(levelname)s %(message)s'}, 'key_value': '********************', 'plain_console': {'()': <class 'structlog.stdlib.ProcessorFormatter'>, 'foreign_pre_chain': [<function add_logger_name at 0x7f4a77c55bd0>, <function add_log_level at 0x7f4a780bdfc0>, <structlog.stdlib.PositionalArgumentsFormatter object at 0x7f4a7795e830>, <structlog.processors.StackInfoRenderer object at 0x7f4a7795e710>, <structlog.processors.UnicodeDecoder object at 0x7f4a7795e4a0>], 'processors': [<function ProcessorFormatter.remove_processors_meta at 0x7f4a77c56170>, <structlog.dev.ConsoleRenderer object at 0x7f4a7795de70>]}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'colored_console', 'level': 'INFO'}, 'debug': {'class': 'logging.handlers.RotatingFileHandler', 'filename': '/usr/src/app/checkouts/readthedocs.org/logs/debug.log', 'formatter': 'key_value', 'level': 'DEBUG'}, 'null': {'class': 'logging.NullHandler'}}, 'loggers': {'': {'handlers': ['debug', 'console'], 'level': 'INFO'}, 'boto3': {'handlers': ['null'], 'propagate': False}, 'botocore': {'handlers': ['null'], 'propagate': False}, 'django.security.DisallowedHost': {'handlers': ['null'], 'propagate': False}, 'django.server': {'handlers': ['null'], 'propagate': False}, 'django_structlog.middlewares.request': {'handlers': ['null'], 'propagate': False}, 'docker.utils.config': {'handlers': ['null'], 'propagate': False}, 'git.cmd': {'handlers': ['null'], 'propagate': False}, 'readthedocs': {'handlers': ['debug', 'console'], 'level': 'DEBUG', 'propagate': False}, 's3transfer': {'handlers': ['null'], 'propagate': False}, 'urllib3': {'handlers': ['null'], 'propagate': False}}, 'version': 1}
LOGGING_CONFIG 'logging.config.dictConfig'
LOGIN_REDIRECT_URL '/dashboard/'
LOGIN_URL '/accounts/login/'
LOGOUT_REDIRECT_URL None
LOGS_ROOT '/usr/src/app/checkouts/readthedocs.org/logs'
LOG_FORMAT '%(name)s:%(lineno)s[%(process)d]: %(levelname)s %(message)s'
MAILERLITE_API_KEY '********************'
MAILERLITE_API_ONBOARDING_GROUP_ID '********************'
MAILERLITE_API_ONBOARDING_GROUP_URL '********************'
MAILERLITE_API_SUBSCRIBERS_URL '********************'
MANAGERS []
MEDIA_ROOT '/usr/src/app/checkouts/readthedocs.org/media/'
MEDIA_URL '/media/'
MESSAGE_STORAGE 'readthedocs.notifications.storages.FallbackUniqueStorage'
MIDDLEWARE ['debug_toolbar.middleware.DebugToolbarMiddleware', 'readthedocs.core.middleware.NullCharactersMiddleware', 'readthedocs.core.middleware.ReadTheDocsSessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'dj_pagination.middleware.PaginationMiddleware', 'csp.middleware.CSPMiddleware', 'readthedocs.core.middleware.ReferrerPolicyMiddleware', 'simple_history.middleware.HistoryRequestMiddleware', 'readthedocs.core.logs.ReadTheDocsRequestMiddleware', 'django_structlog.middlewares.CeleryMiddleware']
MIGRATION_MODULES {}
MKDOCS_BACKEND 'readthedocs.doc_builder.backends.mkdocs'
MONTH_DAY_FORMAT 'F j'
NOTIFICATION_BACKENDS ['readthedocs.notifications.backends.EmailBackend', 'readthedocs.notifications.backends.SiteBackend']
NUMBER_GROUPING 0
OAUTH_AVATAR_ORG_DEFAULT_URL 'https://assets.readthedocs.org/static/images/silhouette.png'
OAUTH_AVATAR_USER_DEFAULT_URL 'https://assets.readthedocs.org/static/images/silhouette.png'
PASSWORD_HASHERS '********************'
PASSWORD_RESET_TIMEOUT '********************'
PREPEND_WWW False
PRODUCTION_DOMAIN 'readthedocs.delly.info'
PRODUCTION_MEDIA_ARTIFACTS '/usr/src/app/checkouts/readthedocs.org/prod_artifacts/media'
PRODUCTION_ROOT '/usr/src/app/checkouts/readthedocs.org/prod_artifacts'
PUBLIC_API_URL '********************'
PUBLIC_DOMAIN 'delly.info'
PUBLIC_DOMAIN_USES_HTTPS False
PYTHON_MEDIA False
READ_THE_DOCS_EXTENSIONS False
REST_FRAMEWORK {'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'DEFAULT_THROTTLE_RATES': {'anon': '5/minute', 'user': '60/minute'}, 'PAGE_SIZE': 10, 'TEST_REQUEST_DEFAULT_FORMAT': 'json'}
ROOT_URLCONF 'readthedocs.urls'
RTD_ALLOW_ORGANIZATIONS False
RTD_ANALYTICS_DEFAULT_RETENTION_DAYS 90
RTD_AUDITLOGS_DEFAULT_RETENTION_DAYS 90
RTD_BUILDS_MAX_RETRIES 25
RTD_BUILDS_RETRY_DELAY 300
RTD_BUILD_COMMANDS_STORAGE 'readthedocs.storage.s3_storage.S3BuildCommandsStorage'
RTD_BUILD_ENVIRONMENT_STORAGE 'readthedocs.storage.s3_storage.S3BuildEnvironmentStorage'
RTD_BUILD_MEDIA_STORAGE 'readthedocs.storage.s3_storage.S3BuildMediaStorage'
RTD_BUILD_STATUS_API_NAME '********************'
RTD_BUILD_TOOLS_STORAGE 'readthedocs.storage.s3_storage.S3BuildToolsStorage'
RTD_CLEAN_AFTER_BUILD True
RTD_CUSTOM_DOMAINS_VALIDATION_PERIOD 30
RTD_DEFAULT_FEATURES {'audit-logs': RTDProductFeature(type='audit-logs', value=90, unlimited=False, description=''), 'cname': RTDProductFeature(type='cname', value=0, unlimited=False, description=''), 'concurrent_builds': RTDProductFeature(type='concurrent_builds', value=4, unlimited=False, description=''), 'embed_api': '********************', 'pageviews_analytics': RTDProductFeature(type='pageviews_analytics', value=90, unlimited=False, description=''), 'search_analytics': RTDProductFeature(type='search_analytics', value=90, unlimited=False, description='')}
RTD_DOCKER_ADDITIONAL_BINDS {}
RTD_DOCKER_BUILD_SETTINGS {'os': {'ubuntu-20.04': 'readthedocs/build:ubuntu-20.04', 'ubuntu-22.04': 'readthedocs/build:ubuntu-22.04'}, 'tools': {'golang': {'1.17': '1.17.13', '1.18': '1.18.10', '1.19': '1.19.10', '1.20': '1.20.5'}, 'nodejs': {'14': '14.20.1', '16': '16.18.1', '18': '18.16.1', '19': '19.0.1', '20': '20.3.1'}, 'python': {'2.7': '2.7.18', '3': '3.12.0', '3.10': '3.10.13', '3.11': '3.11.6', '3.12': '3.12.0', '3.6': '3.6.15', '3.7': '3.7.17', '3.8': '3.8.18', '3.9': '3.9.18', 'mambaforge-22.9': 'mambaforge-22.9.0-3', 'mambaforge-4.10': 'mambaforge-4.10.3-10', 'miniconda3-4.7': 'miniconda3-4.7.12'}, 'rust': {'1.55': '1.55.0', '1.61': '1.61.0', '1.64': '1.64.0', '1.70': '1.70.0'}}}
RTD_DOCKER_CLONE_IMAGE 'readthedocs/build:ubuntu-22.04'
RTD_DOCKER_COMPOSE True
RTD_DOCKER_COMPOSE_VOLUME 'community_build-user-builds'
RTD_DOCKER_SUPER_USER 'root:root'
RTD_DOCKER_USER '0:0'
RTD_DOCKER_WORKDIR '/home/docs/'
RTD_EMBED_API_DEFAULT_REQUEST_TIMEOUT '********************'
RTD_EMBED_API_DOMAIN_RATE_LIMIT '********************'
RTD_EMBED_API_DOMAIN_RATE_LIMIT_TIMEOUT '********************'
RTD_EMBED_API_EXTERNAL_DOMAINS '********************'
RTD_EMBED_API_PAGE_CACHE_TIMEOUT '********************'
RTD_ENFORCE_BROWNOUTS_FOR_DEPRECATIONS False
RTD_EXTERNAL_VERSION_DOMAIN 'build.devthedocs.org'
RTD_EXT_THEME_DEV_SERVER None
RTD_EXT_THEME_DEV_SERVER_ENABLED False
RTD_EXT_THEME_ENABLED False
RTD_FORCE_SHOW_DEBUG_TOOLBAR False
RTD_INTERSPHINX_URL 'https://readthedocs.org'
RTD_INVITATIONS_EXPIRATION_DAYS 15
RTD_IS_PRODUCTION False
RTD_LATEST 'latest'
RTD_LATEST_VERBOSE_NAME 'latest'
RTD_MAX_CONCURRENT_BUILDS 4
RTD_ORG_DEFAULT_STRIPE_SUBSCRIPTION_PRICE 'trial-v2-monthly'
RTD_ORG_TRIAL_PERIOD_DAYS 30
RTD_PRODUCTS {}
RTD_SAVE_BUILD_COMMANDS_TO_STORAGE True
RTD_SPAM_MAX_SCORE 9999
RTD_SPAM_THRESHOLD_DELETE_PROJECT 1000
RTD_SPAM_THRESHOLD_DENY_ON_ROBOTS 200
RTD_SPAM_THRESHOLD_DONT_SERVE_DOCS 500
RTD_SPAM_THRESHOLD_DONT_SHOW_ADS 100
RTD_SPAM_THRESHOLD_DONT_SHOW_DASHBOARD 300
RTD_STABLE 'stable'
RTD_STABLE_VERBOSE_NAME 'stable'
RTD_STATICFILES_STORAGE 'readthedocs.storage.s3_storage.NoManifestS3StaticStorage'
RTD_TELEMETRY_DATA_RETENTION_DAYS 180
S3_BUILD_COMMANDS_STORAGE_BUCKET 'builds'
S3_BUILD_ENVIRONMENT_STORAGE_BUCKET 'envs'
S3_BUILD_TOOLS_STORAGE_BUCKET 'build-tools'
S3_MEDIA_STORAGE_BUCKET 'media'
S3_MEDIA_STORAGE_OVERRIDE_HOSTNAME 'readthedocs.delly.info'
S3_STATIC_STORAGE_BUCKET 'static'
S3_STATIC_STORAGE_OVERRIDE_HOSTNAME 'readthedocs.delly.info'
SECRET_KEY '********************'
SECRET_KEY_FALLBACKS '********************'
SECURE_CONTENT_TYPE_NOSNIFF True
SECURE_CROSS_ORIGIN_OPENER_POLICY 'same-origin'
SECURE_HSTS_INCLUDE_SUBDOMAINS False
SECURE_HSTS_PRELOAD False
SECURE_HSTS_SECONDS 0
SECURE_PROXY_SSL_HEADER ('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_REDIRECT_EXEMPT []
SECURE_REFERRER_POLICY 'strict-origin-when-cross-origin'
SECURE_SSL_HOST None
SECURE_SSL_REDIRECT False
SENTRY_CELERY_IGNORE_EXPECTED True
SERVER_EMAIL '[email protected]'
SESSION_CACHE_ALIAS 'default'
SESSION_COOKIE_AGE 2592000
SESSION_COOKIE_DOMAIN None
SESSION_COOKIE_HTTPONLY True
SESSION_COOKIE_NAME 'sessionid'
SESSION_COOKIE_PATH '/'
SESSION_COOKIE_SAMESITE 'Lax'
SESSION_COOKIE_SECURE False
SESSION_ENGINE 'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE False
SESSION_FILE_PATH None
SESSION_SAVE_EVERY_REQUEST False
SESSION_SERIALIZER 'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE 'readthedocs.settings.web_docker'
SHORT_DATETIME_FORMAT 'm/d/Y P'
SHORT_DATE_FORMAT 'm/d/Y'
SHOW_DEBUG_TOOLBAR True
SIGNING_BACKEND 'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS ['fields.W342']
SITE_ID 1
SITE_ROOT '/usr/src/app/checkouts/readthedocs.org'
SLUMBER_API_HOST '********************'
SOCIALACCOUNT_AUTO_SIGNUP False
SOCIALACCOUNT_PROVIDERS {'github': {'SCOPE': ['user:email', 'read:org', 'admin:repo_hook', 'repo:status'], 'VERIFIED_EMAIL': True}, 'gitlab': {'SCOPE': ['api', 'read_user'], 'VERIFIED_EMAIL': True}}
SOCIALACCOUNT_STORE_TOKENS '********************'
SPHINX_BACKEND 'readthedocs.doc_builder.backends.sphinx'
STATICFILES_DIRS ['/usr/src/app/checkouts/readthedocs.org/readthedocs/static', '/usr/src/app/checkouts/readthedocs.org/media']
STATICFILES_FINDERS ['readthedocs.core.static.SelectiveFileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'readthedocs.core.finders.DebugToolbarFinder']
STATICFILES_STORAGE 'readthedocs.storage.s3_storage.S3StaticStorage'
STATIC_ROOT '/usr/src/app/checkouts/readthedocs.org/static'
STATIC_URL '/static/'
STORAGES {'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'}, 'staticfiles': {'BACKEND': 'readthedocs.storage.s3_storage.S3StaticStorage'}}
STRIPE_LIVE_MODE False
STRIPE_LIVE_SECRET_KEY '********************'
STRIPE_PUBLISHABLE None
STRIPE_SECRET '********************'
STRIPE_TEST_SECRET_KEY '********************'
SUPPORT_EMAIL None
SUPPORT_FORM_ENDPOINT None
TAGGIT_TAGS_FROM_STRING 'readthedocs.projects.tag_utils.rtd_parse_tags'
TEMPLATES [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/usr/src/app/checkouts/readthedocs.org/readthedocs/templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.request', 'readthedocs.core.context_processors.readthedocs_processor'], 'debug': True, 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']}}]
TEMPLATE_ROOT '/usr/src/app/checkouts/readthedocs.org/readthedocs/templates'
TEST_NON_SERIALIZED_APPS []
TEST_RUNNER 'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR ','
TIME_FORMAT 'P'
TIME_INPUT_FORMATS ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE 'UTC'
USER_MATURITY_DAYS 7
USE_DEPRECATED_PYTZ False
USE_I18N True
USE_L10N True
USE_PROMOS False
USE_THOUSAND_SEPARATOR False
USE_TZ True
USE_X_FORWARDED_HOST True
USE_X_FORWARDED_PORT False
WSGI_APPLICATION None
X_FRAME_OPTIONS 'DENY'
YEAR_MONTH_FORMAT 'F Y'

Headers

Request headers

Key Value
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, br
Accept-Language en-US,en;q=0.5
Cdn-Loop cloudflare; loops=1
Cf-Connecting-Ip 18.97.9.172
Cf-Ipcountry US
Cf-Ray 8ef242fe59213ae1-IAD
Cf-Visitor {"scheme":"https"}
Connection close
Host web:8000
User-Agent CCBot/2.0 (https://commoncrawl.org/faq/)
X-Forwarded-For 18.97.9.172
X-Forwarded-Host readthedocs.delly.info
X-Forwarded-Proto https

Response headers

Key Value
Content-Language en
Content-Length 17360
Content-Security-Policy frame-ancestors 'none'; block-all-mixed-content; object-src 'none'
Content-Type text/html; charset=utf-8
Cross-Origin-Opener-Policy same-origin
Referrer-Policy strict-origin-when-cross-origin
Vary Cookie, Accept-Language
X-Content-Type-Options nosniff
X-Frame-Options DENY

WSGI environ

Since the WSGI environ inherits the environment of the server, only a significant subset is shown below.

Key Value
PATH_INFO /projects/rcc-rccreator-docs/
QUERY_STRING fromdocs=rcc-rccreator-docs
REMOTE_ADDR 10.10.0.100
REQUEST_METHOD GET
SCRIPT_NAME
SERVER_NAME 0.0.0.0
SERVER_PORT 8000
SERVER_PROTOCOL HTTP/1.0
SERVER_SOFTWARE gunicorn/21.2.0

Request

View information

View function Arguments Keyword arguments URL name
readthedocs.projects.views.public.view () {'project_slug': 'rcc-rccreator-docs'} projects_detail

No cookies

No session data

GET data

Variable Value
'fromdocs' 'rcc-rccreator-docs'

No POST data

SQL queries from 1 connection

  • default 14.00 ms (37 queries including 26 similar and 26 duplicates )
Query Timeline Time (ms) Action
SELECT DISTINCT "projects_project"."id",
       "projects_project"."pub_date",
       "projects_project"."modified_date",
       "projects_project"."name",
       "projects_project"."slug",
       "projects_project"."description",
       "projects_project"."repo",
       "projects_project"."repo_type",
       "projects_project"."project_url",
       "projects_project"."canonical_url",
       "projects_project"."single_version",
       "projects_project"."default_version",
       "projects_project"."default_branch",
       "projects_project"."custom_prefix",
       "projects_project"."custom_subproject_prefix",
       "projects_project"."external_builds_enabled",
       "projects_project"."external_builds_privacy_level",
       "projects_project"."cdn_enabled",
       "projects_project"."analytics_code",
       "projects_project"."analytics_disabled",
       "projects_project"."container_image",
       "projects_project"."container_mem_limit",
       "projects_project"."container_time_limit",
       "projects_project"."build_queue",
       "projects_project"."max_concurrent_builds",
       "projects_project"."allow_promos",
       "projects_project"."ad_free",
       "projects_project"."is_spam",
       "projects_project"."show_version_warning",
       "projects_project"."readthedocs_yaml_path",
       "projects_project"."featured",
       "projects_project"."skip",
       "projects_project"."delisted",
       "projects_project"."privacy_level",
       "projects_project"."language",
       "projects_project"."programming_language",
       "projects_project"."main_language_project_id",
       "projects_project"."has_valid_webhook",
       "projects_project"."has_valid_clone",
       "projects_project"."remote_repository_id",
       "projects_project"."requirements_file",
       "projects_project"."documentation_type",
       "projects_project"."enable_epub_build",
       "projects_project"."enable_pdf_build",
       "projects_project"."path",
       "projects_project"."conf_py_file",
       "projects_project"."install_project",
       "projects_project"."python_interpreter",
       "projects_project"."use_system_packages"
  FROM "projects_project"
 WHERE ("projects_project"."privacy_level" = 'public' AND "projects_project"."slug" = 'rcc-rccreator-docs')
 LIMIT 21
SELECT ••• FROM "projects_project" WHERE ("projects_project"."privacy_level" = 'public' AND "projects_project"."slug" = 'rcc-rccreator-docs') LIMIT 21
4 similar queries. Duplicated 4 times.
1.72

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in view(104)
  return self.dispatch(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in dispatch(143)
  return handler(request, *args, **kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get(108)
  return super().get(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get(108)
  self.object = self.get_object()

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get_object(53)
  obj = queryset.get()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in get(346)
  return qs._no_monkey.get(qs, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

SELECT DISTINCT "projects_project"."id",
       "projects_project"."pub_date",
       "projects_project"."modified_date",
       "projects_project"."name",
       "projects_project"."slug",
       "projects_project"."description",
       "projects_project"."repo",
       "projects_project"."repo_type",
       "projects_project"."project_url",
       "projects_project"."canonical_url",
       "projects_project"."single_version",
       "projects_project"."default_version",
       "projects_project"."default_branch",
       "projects_project"."custom_prefix",
       "projects_project"."custom_subproject_prefix",
       "projects_project"."external_builds_enabled",
       "projects_project"."external_builds_privacy_level",
       "projects_project"."cdn_enabled",
       "projects_project"."analytics_code",
       "projects_project"."analytics_disabled",
       "projects_project"."container_image",
       "projects_project"."container_mem_limit",
       "projects_project"."container_time_limit",
       "projects_project"."build_queue",
       "projects_project"."max_concurrent_builds",
       "projects_project"."allow_promos",
       "projects_project"."ad_free",
       "projects_project"."is_spam",
       "projects_project"."show_version_warning",
       "projects_project"."readthedocs_yaml_path",
       "projects_project"."featured",
       "projects_project"."skip",
       "projects_project"."delisted",
       "projects_project"."privacy_level",
       "projects_project"."language",
       "projects_project"."programming_language",
       "projects_project"."main_language_project_id",
       "projects_project"."has_valid_webhook",
       "projects_project"."has_valid_clone",
       "projects_project"."remote_repository_id",
       "projects_project"."requirements_file",
       "projects_project"."documentation_type",
       "projects_project"."enable_epub_build",
       "projects_project"."enable_pdf_build",
       "projects_project"."path",
       "projects_project"."conf_py_file",
       "projects_project"."install_project",
       "projects_project"."python_interpreter",
       "projects_project"."use_system_packages"
  FROM "projects_project"
 WHERE ("projects_project"."privacy_level" = 'public' AND "projects_project"."slug" = 'rcc-rccreator-docs')
 LIMIT 21
SELECT ••• FROM "projects_project" WHERE ("projects_project"."privacy_level" = 'public' AND "projects_project"."slug" = 'rcc-rccreator-docs') LIMIT 21
4 similar queries. Duplicated 4 times.
0.54

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in view(104)
  return self.dispatch(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in dispatch(143)
  return handler(request, *args, **kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get(108)
  return super().get(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get(109)
  context = self.get_context_data(object=self.object)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_context_data(110)
  context = super().get_context_data(**kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/mixins.py in get_context_data(60)
  context = super().get_context_data(**kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get_context_data(26)
  project = self.get_object()

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get_object(53)
  obj = queryset.get()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in get(346)
  return qs._no_monkey.get(qs, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

SELECT COUNT(*) AS "__count"
  FROM "builds_build"
 WHERE "builds_build"."project_id" = 31
SELECT COUNT(*) AS "__count" FROM "builds_build" WHERE "builds_build"."project_id" = 31
0.44

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in view(104)
  return self.dispatch(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in dispatch(143)
  return handler(request, *args, **kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get(108)
  return super().get(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get(109)
  context = self.get_context_data(object=self.object)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_context_data(110)
  context = super().get_context_data(**kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/mixins.py in get_context_data(60)
  context = super().get_context_data(**kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get_context_data(29)
  if project.builds.count() <= 5:

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in count(273)
  return self._no_monkey.count(self)

SELECT DISTINCT "projects_project"."id",
       "projects_project"."pub_date",
       "projects_project"."modified_date",
       "projects_project"."name",
       "projects_project"."slug",
       "projects_project"."description",
       "projects_project"."repo",
       "projects_project"."repo_type",
       "projects_project"."project_url",
       "projects_project"."canonical_url",
       "projects_project"."single_version",
       "projects_project"."default_version",
       "projects_project"."default_branch",
       "projects_project"."custom_prefix",
       "projects_project"."custom_subproject_prefix",
       "projects_project"."external_builds_enabled",
       "projects_project"."external_builds_privacy_level",
       "projects_project"."cdn_enabled",
       "projects_project"."analytics_code",
       "projects_project"."analytics_disabled",
       "projects_project"."container_image",
       "projects_project"."container_mem_limit",
       "projects_project"."container_time_limit",
       "projects_project"."build_queue",
       "projects_project"."max_concurrent_builds",
       "projects_project"."allow_promos",
       "projects_project"."ad_free",
       "projects_project"."is_spam",
       "projects_project"."show_version_warning",
       "projects_project"."readthedocs_yaml_path",
       "projects_project"."featured",
       "projects_project"."skip",
       "projects_project"."delisted",
       "projects_project"."privacy_level",
       "projects_project"."language",
       "projects_project"."programming_language",
       "projects_project"."main_language_project_id",
       "projects_project"."has_valid_webhook",
       "projects_project"."has_valid_clone",
       "projects_project"."remote_repository_id",
       "projects_project"."requirements_file",
       "projects_project"."documentation_type",
       "projects_project"."enable_epub_build",
       "projects_project"."enable_pdf_build",
       "projects_project"."path",
       "projects_project"."conf_py_file",
       "projects_project"."install_project",
       "projects_project"."python_interpreter",
       "projects_project"."use_system_packages"
  FROM "projects_project"
 WHERE ("projects_project"."privacy_level" = 'public' AND "projects_project"."slug" = 'rcc-rccreator-docs')
 LIMIT 21
SELECT ••• FROM "projects_project" WHERE ("projects_project"."privacy_level" = 'public' AND "projects_project"."slug" = 'rcc-rccreator-docs') LIMIT 21
4 similar queries. Duplicated 4 times.
0.41

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in view(104)
  return self.dispatch(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in dispatch(143)
  return handler(request, *args, **kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get(108)
  return super().get(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get(109)
  context = self.get_context_data(object=self.object)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_context_data(110)
  context = super().get_context_data(**kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/mixins.py in get_context_data(61)
  context["subprojects_and_urls"] = self._get_subprojects_and_urls()

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/mixins.py in _get_subprojects_and_urls(74)
  project = self.get_project()

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_project(107)
  return self.get_object()

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get_object(53)
  obj = queryset.get()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in get(346)
  return qs._no_monkey.get(qs, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

SELECT 1 AS "a"
  FROM "projects_projectrelationship"
 WHERE "projects_projectrelationship"."parent_id" = 31
 LIMIT 1
SELECT 1 AS "a" FROM "projects_projectrelationship" WHERE "projects_projectrelationship"."parent_id" = 31 LIMIT 1
0.26

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in view(104)
  return self.dispatch(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in dispatch(143)
  return handler(request, *args, **kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get(108)
  return super().get(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get(109)
  context = self.get_context_data(object=self.object)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_context_data(110)
  context = super().get_context_data(**kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/mixins.py in get_context_data(61)
  context["subprojects_and_urls"] = self._get_subprojects_and_urls()

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/mixins.py in _get_subprojects_and_urls(77)
  if not subprojects.exists():

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in exists(364)
  return self._no_monkey.exists(self)

SELECT DISTINCT "projects_project"."id",
       "projects_project"."pub_date",
       "projects_project"."modified_date",
       "projects_project"."name",
       "projects_project"."slug",
       "projects_project"."description",
       "projects_project"."repo",
       "projects_project"."repo_type",
       "projects_project"."project_url",
       "projects_project"."canonical_url",
       "projects_project"."single_version",
       "projects_project"."default_version",
       "projects_project"."default_branch",
       "projects_project"."custom_prefix",
       "projects_project"."custom_subproject_prefix",
       "projects_project"."external_builds_enabled",
       "projects_project"."external_builds_privacy_level",
       "projects_project"."cdn_enabled",
       "projects_project"."analytics_code",
       "projects_project"."analytics_disabled",
       "projects_project"."container_image",
       "projects_project"."container_mem_limit",
       "projects_project"."container_time_limit",
       "projects_project"."build_queue",
       "projects_project"."max_concurrent_builds",
       "projects_project"."allow_promos",
       "projects_project"."ad_free",
       "projects_project"."is_spam",
       "projects_project"."show_version_warning",
       "projects_project"."readthedocs_yaml_path",
       "projects_project"."featured",
       "projects_project"."skip",
       "projects_project"."delisted",
       "projects_project"."privacy_level",
       "projects_project"."language",
       "projects_project"."programming_language",
       "projects_project"."main_language_project_id",
       "projects_project"."has_valid_webhook",
       "projects_project"."has_valid_clone",
       "projects_project"."remote_repository_id",
       "projects_project"."requirements_file",
       "projects_project"."documentation_type",
       "projects_project"."enable_epub_build",
       "projects_project"."enable_pdf_build",
       "projects_project"."path",
       "projects_project"."conf_py_file",
       "projects_project"."install_project",
       "projects_project"."python_interpreter",
       "projects_project"."use_system_packages"
  FROM "projects_project"
 WHERE ("projects_project"."privacy_level" = 'public' AND "projects_project"."slug" = 'rcc-rccreator-docs')
 LIMIT 21
SELECT ••• FROM "projects_project" WHERE ("projects_project"."privacy_level" = 'public' AND "projects_project"."slug" = 'rcc-rccreator-docs') LIMIT 21
4 similar queries. Duplicated 4 times.
0.42

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in view(104)
  return self.dispatch(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in dispatch(143)
  return handler(request, *args, **kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get(108)
  return super().get(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get(109)
  context = self.get_context_data(object=self.object)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_context_data(112)
  project = self.get_project()

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_project(107)
  return self.get_object()

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get_object(53)
  obj = queryset.get()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in get(346)
  return qs._no_monkey.get(qs, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

SELECT "builds_version"."id",
       "builds_version"."created",
       "builds_version"."modified",
       "builds_version"."project_id",
       "builds_version"."type",
       "builds_version"."identifier",
       "builds_version"."verbose_name",
       "builds_version"."slug",
       "builds_version"."supported",
       "builds_version"."active",
       "builds_version"."state",
       "builds_version"."built",
       "builds_version"."uploaded",
       "builds_version"."privacy_level",
       "builds_version"."hidden",
       "builds_version"."machine",
       "builds_version"."has_pdf",
       "builds_version"."has_epub",
       "builds_version"."has_htmlzip",
       "builds_version"."documentation_type",
       "builds_version"."build_data",
       "builds_version"."addons"
  FROM "builds_version"
 WHERE ("builds_version"."project_id" = 31 AND "builds_version"."slug" = 'latest')
 LIMIT 21
SELECT ••• FROM "builds_version" WHERE ("builds_version"."project_id" = 31 AND "builds_version"."slug" = 'latest') LIMIT 21
0.39

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in view(104)
  return self.dispatch(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in dispatch(143)
  return handler(request, *args, **kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get(108)
  return super().get(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get(109)
  context = self.get_context_data(object=self.object)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_context_data(130)
  default_version = project.versions.get(slug=default_version_slug)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in get(346)
  return qs._no_monkey.get(qs, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

SELECT "builds_version"."privacy_level"
  FROM "builds_version"
 INNER JOIN "projects_project"
    ON ("builds_version"."project_id" = "projects_project"."id")
 WHERE ("projects_project"."slug" = 'rcc-rccreator-docs' AND "builds_version"."slug" = 'latest')
 ORDER BY "builds_version"."verbose_name" DESC
 LIMIT 1
SELECT ••• FROM "builds_version" INNER JOIN "projects_project" ON ("builds_version"."project_id" = "projects_project"."id") WHERE ("projects_project"."slug" = 'rcc-rccreator-docs' AND "builds_version"."slug" = 'latest') ORDER BY "builds_version"."verbose_name" DESC LIMIT 1
0.30

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in view(104)
  return self.dispatch(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in dispatch(143)
  return handler(request, *args, **kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get(108)
  return super().get(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get(109)
  context = self.get_context_data(object=self.object)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_context_data(132)
  context["badge_url"] = ProjectBadgeView.get_badge_url(

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_badge_url(265)
  .first()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in first(351)
  return self._no_monkey.first(self)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

SELECT "projects_projectrelationship"."id",
       "projects_projectrelationship"."parent_id",
       "projects_projectrelationship"."child_id",
       "projects_projectrelationship"."alias",
       T3."id",
       T3."pub_date",
       T3."modified_date",
       T3."name",
       T3."slug",
       T3."description",
       T3."repo",
       T3."repo_type",
       T3."project_url",
       T3."canonical_url",
       T3."single_version",
       T3."default_version",
       T3."default_branch",
       T3."custom_prefix",
       T3."custom_subproject_prefix",
       T3."external_builds_enabled",
       T3."external_builds_privacy_level",
       T3."cdn_enabled",
       T3."analytics_code",
       T3."analytics_disabled",
       T3."container_image",
       T3."container_mem_limit",
       T3."container_time_limit",
       T3."build_queue",
       T3."max_concurrent_builds",
       T3."allow_promos",
       T3."ad_free",
       T3."is_spam",
       T3."show_version_warning",
       T3."readthedocs_yaml_path",
       T3."featured",
       T3."skip",
       T3."delisted",
       T3."privacy_level",
       T3."language",
       T3."programming_language",
       T3."main_language_project_id",
       T3."has_valid_webhook",
       T3."has_valid_clone",
       T3."remote_repository_id",
       T3."requirements_file",
       T3."documentation_type",
       T3."enable_epub_build",
       T3."enable_pdf_build",
       T3."path",
       T3."conf_py_file",
       T3."install_project",
       T3."python_interpreter",
       T3."use_system_packages"
  FROM "projects_projectrelationship"
 INNER JOIN "projects_project" T3
    ON ("projects_projectrelationship"."parent_id" = T3."id")
 WHERE "projects_projectrelationship"."child_id" = 31
 ORDER BY "projects_projectrelationship"."id" ASC
 LIMIT 1
SELECT ••• FROM "projects_projectrelationship" INNER JOIN "projects_project" T3 ON ("projects_projectrelationship"."parent_id" = T3."id") WHERE "projects_projectrelationship"."child_id" = 31 ORDER BY "projects_projectrelationship"."id" ASC LIMIT 1
5 similar queries. Duplicated 5 times.
0.43

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in view(104)
  return self.dispatch(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in dispatch(143)
  return handler(request, *args, **kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get(108)
  return super().get(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get(109)
  context = self.get_context_data(object=self.object)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_context_data(138)
  url=Resolver().resolve_version(project, version=default_version),

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in resolve_version(146)
  domain, use_https = self._get_project_domain(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_project_domain(190)
  canonical_project, _ = self._get_canonical_project(project)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_canonical_project(330)
  relationship = parent_project.parent_relationship

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in parent_relationship(1293)
  return self.superprojects.select_related('parent').first()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in first(351)
  return self._no_monkey.first(self)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

SELECT "projects_domain"."id",
       "projects_domain"."modified",
       "projects_domain"."created",
       "projects_domain"."project_id",
       "projects_domain"."domain",
       "projects_domain"."machine",
       "projects_domain"."cname",
       "projects_domain"."canonical",
       "projects_domain"."https",
       "projects_domain"."count",
       "projects_domain"."ssl_status",
       "projects_domain"."skip_validation",
       "projects_domain"."validation_process_start",
       "projects_domain"."hsts_max_age",
       "projects_domain"."hsts_include_subdomains",
       "projects_domain"."hsts_preload"
  FROM "projects_domain"
 WHERE ("projects_domain"."project_id" = 31 AND "projects_domain"."canonical")
 ORDER BY "projects_domain"."canonical" DESC,
          "projects_domain"."machine" DESC,
          "projects_domain"."domain" ASC
 LIMIT 1
SELECT ••• FROM "projects_domain" WHERE ("projects_domain"."project_id" = 31 AND "projects_domain"."canonical") ORDER BY "projects_domain"."canonical" DESC, "projects_domain"."machine" DESC, "projects_domain"."domain" ASC LIMIT 1
7 similar queries. Duplicated 7 times.
0.32

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in view(104)
  return self.dispatch(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in dispatch(143)
  return handler(request, *args, **kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get(108)
  return super().get(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get(109)
  context = self.get_context_data(object=self.object)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_context_data(138)
  url=Resolver().resolve_version(project, version=default_version),

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in resolve_version(146)
  domain, use_https = self._get_project_domain(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_project_domain(197)
  domain_object = canonical_project.get_canonical_custom_domain()

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in get_canonical_custom_domain(1303)
  return self.domains.filter(canonical=True).first()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in first(351)
  return self._no_monkey.first(self)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined"
  FROM "auth_user"
 INNER JOIN "projects_project_users"
    ON ("auth_user"."id" = "projects_project_users"."user_id")
 WHERE "projects_project_users"."project_id" = 31
SELECT ••• FROM "auth_user" INNER JOIN "projects_project_users" ON ("auth_user"."id" = "projects_project_users"."user_id") WHERE "projects_project_users"."project_id" = 31
7 similar queries. Duplicated 7 times.
0.41

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in view(104)
  return self.dispatch(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py in dispatch(143)
  return handler(request, *args, **kwargs)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/base.py in get(108)
  return super().get(request, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py in get(109)
  context = self.get_context_data(object=self.object)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/views/public.py in get_context_data(142)
  context["is_project_admin"] = AdminPermission.is_admin(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/permissions.py in is_admin(135)
  return user in cls.admins(obj) or user.is_superuser

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

SELECT 1 AS "a"
  FROM "builds_build"
  LEFT OUTER JOIN "builds_version"
    ON ("builds_build"."version_id" = "builds_version"."id")
 WHERE (NOT ("builds_version"."type" = 'external' AND "builds_version"."type" IS NOT NULL) AND "builds_build"."project_id" = 31 AND "builds_build"."success")
 LIMIT 1
SELECT 1 AS "a" FROM "builds_build" LEFT OUTER JOIN "builds_version" ON ("builds_build"."version_id" = "builds_version"."id") WHERE (NOT ("builds_version"."type" = 'external' AND "builds_version"."type" IS NOT NULL) AND "builds_build"."project_id" = 31 AND "builds_build"."success") LIMIT 1
0.65

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(541)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(314)
  match = condition.eval(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in eval(877)
  return self.value.resolve(context, ignore_failures=True)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(715)
  obj = self.var.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(847)
  value = self._resolve_lookup(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in _resolve_lookup(890)
  current = getattr(current, bit)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in has_good_build(946)
  return self.builds(manager=INTERNAL).filter(success=True).exists()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in exists(364)
  return self._no_monkey.exists(self)

7 <div id="project_bar" class="project-bar">
8 <div class="wrapper">
9
10 {% if project.has_good_build %}
11 <div class="project-view-docs">
12 <a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
13 </div>
14 {% endif %}

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_bar_base.html

SELECT "projects_projectrelationship"."id",
       "projects_projectrelationship"."parent_id",
       "projects_projectrelationship"."child_id",
       "projects_projectrelationship"."alias",
       T3."id",
       T3."pub_date",
       T3."modified_date",
       T3."name",
       T3."slug",
       T3."description",
       T3."repo",
       T3."repo_type",
       T3."project_url",
       T3."canonical_url",
       T3."single_version",
       T3."default_version",
       T3."default_branch",
       T3."custom_prefix",
       T3."custom_subproject_prefix",
       T3."external_builds_enabled",
       T3."external_builds_privacy_level",
       T3."cdn_enabled",
       T3."analytics_code",
       T3."analytics_disabled",
       T3."container_image",
       T3."container_mem_limit",
       T3."container_time_limit",
       T3."build_queue",
       T3."max_concurrent_builds",
       T3."allow_promos",
       T3."ad_free",
       T3."is_spam",
       T3."show_version_warning",
       T3."readthedocs_yaml_path",
       T3."featured",
       T3."skip",
       T3."delisted",
       T3."privacy_level",
       T3."language",
       T3."programming_language",
       T3."main_language_project_id",
       T3."has_valid_webhook",
       T3."has_valid_clone",
       T3."remote_repository_id",
       T3."requirements_file",
       T3."documentation_type",
       T3."enable_epub_build",
       T3."enable_pdf_build",
       T3."path",
       T3."conf_py_file",
       T3."install_project",
       T3."python_interpreter",
       T3."use_system_packages"
  FROM "projects_projectrelationship"
 INNER JOIN "projects_project" T3
    ON ("projects_projectrelationship"."parent_id" = T3."id")
 WHERE "projects_projectrelationship"."child_id" = 31
 ORDER BY "projects_projectrelationship"."id" ASC
 LIMIT 1
SELECT ••• FROM "projects_projectrelationship" INNER JOIN "projects_project" T3 ON ("projects_projectrelationship"."parent_id" = T3."id") WHERE "projects_projectrelationship"."child_id" = 31 ORDER BY "projects_projectrelationship"."id" ASC LIMIT 1
5 similar queries. Duplicated 5 times.
0.48

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(541)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(321)
  return nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1064)
  output = self.filter_expression.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(715)
  obj = self.var.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(847)
  value = self._resolve_lookup(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in _resolve_lookup(914)
  current = current()

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in get_docs_url(676)
  return Resolver().resolve(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in resolve(249)
  domain, use_https = self._get_project_domain(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_project_domain(190)
  canonical_project, _ = self._get_canonical_project(project)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_canonical_project(330)
  relationship = parent_project.parent_relationship

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in parent_relationship(1293)
  return self.superprojects.select_related('parent').first()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in first(351)
  return self._no_monkey.first(self)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

9
10 {% if project.has_good_build %}
11 <div class="project-view-docs">
12 <a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
13 </div>
14 {% endif %}
15
16 <div class="project-title">

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_bar_base.html

SELECT "projects_domain"."id",
       "projects_domain"."modified",
       "projects_domain"."created",
       "projects_domain"."project_id",
       "projects_domain"."domain",
       "projects_domain"."machine",
       "projects_domain"."cname",
       "projects_domain"."canonical",
       "projects_domain"."https",
       "projects_domain"."count",
       "projects_domain"."ssl_status",
       "projects_domain"."skip_validation",
       "projects_domain"."validation_process_start",
       "projects_domain"."hsts_max_age",
       "projects_domain"."hsts_include_subdomains",
       "projects_domain"."hsts_preload"
  FROM "projects_domain"
 WHERE ("projects_domain"."project_id" = 31 AND "projects_domain"."canonical")
 ORDER BY "projects_domain"."canonical" DESC,
          "projects_domain"."machine" DESC,
          "projects_domain"."domain" ASC
 LIMIT 1
SELECT ••• FROM "projects_domain" WHERE ("projects_domain"."project_id" = 31 AND "projects_domain"."canonical") ORDER BY "projects_domain"."canonical" DESC, "projects_domain"."machine" DESC, "projects_domain"."domain" ASC LIMIT 1
7 similar queries. Duplicated 7 times.
0.25

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(541)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(321)
  return nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1064)
  output = self.filter_expression.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(715)
  obj = self.var.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(847)
  value = self._resolve_lookup(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in _resolve_lookup(914)
  current = current()

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in get_docs_url(676)
  return Resolver().resolve(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in resolve(249)
  domain, use_https = self._get_project_domain(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_project_domain(197)
  domain_object = canonical_project.get_canonical_custom_domain()

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in get_canonical_custom_domain(1303)
  return self.domains.filter(canonical=True).first()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in first(351)
  return self._no_monkey.first(self)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

9
10 {% if project.has_good_build %}
11 <div class="project-view-docs">
12 <a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
13 </div>
14 {% endif %}
15
16 <div class="project-title">

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_bar_base.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined"
  FROM "auth_user"
 INNER JOIN "projects_project_users"
    ON ("auth_user"."id" = "projects_project_users"."user_id")
 WHERE "projects_project_users"."project_id" = 31
SELECT ••• FROM "auth_user" INNER JOIN "projects_project_users" ON ("auth_user"."id" = "projects_project_users"."user_id") WHERE "projects_project_users"."project_id" = 31
7 similar queries. Duplicated 7 times.
0.24

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(541)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(314)
  match = condition.eval(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in eval(877)
  return self.value.resolve(context, ignore_failures=True)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(742)
  new_obj = func(obj, *arg_vals)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/templatetags/projects_tags.py in is_project_user(29)
  return user in AdminPermission.members(project)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

1 {% load i18n %}
2 {% load core_tags %}
3 {% load privacy_tags %}
4 {% load gravatar %}

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_bar_base.html

SELECT 1 AS "a"
  FROM "projects_projectrelationship"
 WHERE "projects_projectrelationship"."child_id" = 31
 LIMIT 1
SELECT 1 AS "a" FROM "projects_projectrelationship" WHERE "projects_projectrelationship"."child_id" = 31 LIMIT 1
0.17

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(541)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(314)
  match = condition.eval(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in eval(877)
  return self.value.resolve(context, ignore_failures=True)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(715)
  obj = self.var.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(847)
  value = self._resolve_lookup(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in _resolve_lookup(914)
  current = current()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in exists(364)
  return self._no_monkey.exists(self)

9
10 {% if project.has_good_build %}
11 <div class="project-view-docs">
12 <a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
13 </div>
14 {% endif %}
15
16 <div class="project-title">

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_bar_base.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined"
  FROM "auth_user"
 INNER JOIN "projects_project_users"
    ON ("auth_user"."id" = "projects_project_users"."user_id")
 WHERE "projects_project_users"."project_id" = 31
SELECT ••• FROM "auth_user" INNER JOIN "projects_project_users" ON ("auth_user"."id" = "projects_project_users"."user_id") WHERE "projects_project_users"."project_id" = 31
7 similar queries. Duplicated 7 times.
0.21

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(541)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(314)
  match = condition.eval(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in eval(877)
  return self.value.resolve(context, ignore_failures=True)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(742)
  new_obj = func(obj, *arg_vals)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/templatetags/privacy_tags.py in is_admin(15)
  return AdminPermission.is_admin(user, project)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/permissions.py in is_admin(135)
  return user in cls.admins(obj) or user.is_superuser

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

50
51 <li class="{{ versions_active }}"><a href="{% url "project_version_list" project.slug %}">{% trans "Versions" %}</a></li>
52
53 {% if request.user|is_admin:project %}
54 <li class="{{ edit_active }} project-admin"><a href="{% url "projects_edit" project.slug %}"><i class="gear"></i>{% trans "Admin" %}</a></li>
55 {% endif %}
56 </ul>
57 </div>

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_bar_base.html

SELECT DISTINCT "builds_version"."id",
       "builds_version"."created",
       "builds_version"."modified",
       "builds_version"."project_id",
       "builds_version"."type",
       "builds_version"."identifier",
       "builds_version"."verbose_name",
       "builds_version"."slug",
       "builds_version"."supported",
       "builds_version"."active",
       "builds_version"."state",
       "builds_version"."built",
       "builds_version"."uploaded",
       "builds_version"."privacy_level",
       "builds_version"."hidden",
       "builds_version"."machine",
       "builds_version"."has_pdf",
       "builds_version"."has_epub",
       "builds_version"."has_htmlzip",
       "builds_version"."documentation_type",
       "builds_version"."build_data",
       "builds_version"."addons"
  FROM "builds_version"
 INNER JOIN "projects_project"
    ON ("builds_version"."project_id" = "projects_project"."id")
 WHERE (((NOT ("builds_version"."type" = 'external') AND "builds_version"."privacy_level" = 'public' AND NOT ("builds_version"."type" = 'external')) OR (NOT ("builds_version"."type" = 'external') AND "projects_project"."external_builds_privacy_level" = 'public' AND "builds_version"."type" = 'external')) AND "builds_version"."project_id" = 31 AND "builds_version"."active")
 ORDER BY "builds_version"."verbose_name" DESC
SELECT ••• FROM "builds_version" INNER JOIN "projects_project" ON ("builds_version"."project_id" = "projects_project"."id") WHERE (((NOT ("builds_version"."type" = 'external') AND "builds_version"."privacy_level" = 'public' AND NOT ("builds_version"."type" = 'external')) OR (NOT ("builds_version"."type" = 'external') AND "projects_project"."external_builds_privacy_level" = 'public' AND "builds_version"."type" = 'external')) AND "builds_version"."project_id" = 31 AND "builds_version"."active") ORDER BY "builds_version"."verbose_name" DESC
0.56

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(189)
  values = self.sequence.resolve(context, ignore_failures=True)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(742)
  new_obj = func(obj, *arg_vals)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/templatetags/projects_tags.py in sort_version_aware(15)
  if versions:

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

21
22 <div class="module-list-wrapper">
23 <ul>
24 {% for version in versions|sort_version_aware %}
25 <li class="module-item col-span">
26 {% if version.uploaded or version.built %}
27 {# Link to the docs #}
28 <a class="module-item-title" href="{{ version.get_absolute_url }}">

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_details.html

SELECT "projects_project"."id",
       "projects_project"."pub_date",
       "projects_project"."modified_date",
       "projects_project"."name",
       "projects_project"."slug",
       "projects_project"."description",
       "projects_project"."repo",
       "projects_project"."repo_type",
       "projects_project"."project_url",
       "projects_project"."canonical_url",
       "projects_project"."single_version",
       "projects_project"."default_version",
       "projects_project"."default_branch",
       "projects_project"."custom_prefix",
       "projects_project"."custom_subproject_prefix",
       "projects_project"."external_builds_enabled",
       "projects_project"."external_builds_privacy_level",
       "projects_project"."cdn_enabled",
       "projects_project"."analytics_code",
       "projects_project"."analytics_disabled",
       "projects_project"."container_image",
       "projects_project"."container_mem_limit",
       "projects_project"."container_time_limit",
       "projects_project"."build_queue",
       "projects_project"."max_concurrent_builds",
       "projects_project"."allow_promos",
       "projects_project"."ad_free",
       "projects_project"."is_spam",
       "projects_project"."show_version_warning",
       "projects_project"."readthedocs_yaml_path",
       "projects_project"."featured",
       "projects_project"."skip",
       "projects_project"."delisted",
       "projects_project"."privacy_level",
       "projects_project"."language",
       "projects_project"."programming_language",
       "projects_project"."main_language_project_id",
       "projects_project"."has_valid_webhook",
       "projects_project"."has_valid_clone",
       "projects_project"."remote_repository_id",
       "projects_project"."requirements_file",
       "projects_project"."documentation_type",
       "projects_project"."enable_epub_build",
       "projects_project"."enable_pdf_build",
       "projects_project"."path",
       "projects_project"."conf_py_file",
       "projects_project"."install_project",
       "projects_project"."python_interpreter",
       "projects_project"."use_system_packages"
  FROM "projects_project"
 WHERE "projects_project"."id" = 31
 LIMIT 21
SELECT ••• FROM "projects_project" WHERE "projects_project"."id" = 31 LIMIT 21
3 similar queries. Duplicated 3 times.
0.28

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(189)
  values = self.sequence.resolve(context, ignore_failures=True)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(742)
  new_obj = func(obj, *arg_vals)

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/templatetags/projects_tags.py in sort_version_aware(16)
  repo_type = versions[0].project.repo_type

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in get(346)
  return qs._no_monkey.get(qs, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

21
22 <div class="module-list-wrapper">
23 <ul>
24 {% for version in versions|sort_version_aware %}
25 <li class="module-item col-span">
26 {% if version.uploaded or version.built %}
27 {# Link to the docs #}
28 <a class="module-item-title" href="{{ version.get_absolute_url }}">

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_details.html

SELECT "projects_project"."id",
       "projects_project"."pub_date",
       "projects_project"."modified_date",
       "projects_project"."name",
       "projects_project"."slug",
       "projects_project"."description",
       "projects_project"."repo",
       "projects_project"."repo_type",
       "projects_project"."project_url",
       "projects_project"."canonical_url",
       "projects_project"."single_version",
       "projects_project"."default_version",
       "projects_project"."default_branch",
       "projects_project"."custom_prefix",
       "projects_project"."custom_subproject_prefix",
       "projects_project"."external_builds_enabled",
       "projects_project"."external_builds_privacy_level",
       "projects_project"."cdn_enabled",
       "projects_project"."analytics_code",
       "projects_project"."analytics_disabled",
       "projects_project"."container_image",
       "projects_project"."container_mem_limit",
       "projects_project"."container_time_limit",
       "projects_project"."build_queue",
       "projects_project"."max_concurrent_builds",
       "projects_project"."allow_promos",
       "projects_project"."ad_free",
       "projects_project"."is_spam",
       "projects_project"."show_version_warning",
       "projects_project"."readthedocs_yaml_path",
       "projects_project"."featured",
       "projects_project"."skip",
       "projects_project"."delisted",
       "projects_project"."privacy_level",
       "projects_project"."language",
       "projects_project"."programming_language",
       "projects_project"."main_language_project_id",
       "projects_project"."has_valid_webhook",
       "projects_project"."has_valid_clone",
       "projects_project"."remote_repository_id",
       "projects_project"."requirements_file",
       "projects_project"."documentation_type",
       "projects_project"."enable_epub_build",
       "projects_project"."enable_pdf_build",
       "projects_project"."path",
       "projects_project"."conf_py_file",
       "projects_project"."install_project",
       "projects_project"."python_interpreter",
       "projects_project"."use_system_packages"
  FROM "projects_project"
 WHERE "projects_project"."id" = 31
 LIMIT 21
SELECT ••• FROM "projects_project" WHERE "projects_project"."id" = 31 LIMIT 21
3 similar queries. Duplicated 3 times.
0.28

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(238)
  nodelist.append(node.render_annotated(context))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(321)
  return nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1064)
  output = self.filter_expression.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(715)
  obj = self.var.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(847)
  value = self._resolve_lookup(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in _resolve_lookup(914)
  current = current()

/usr/src/app/checkouts/readthedocs.org/readthedocs/builds/models.py in get_absolute_url(411)
  return self.project.get_docs_url(

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in get(346)
  return qs._no_monkey.get(qs, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

25 <li class="module-item col-span">
26 {% if version.uploaded or version.built %}
27 {# Link to the docs #}
28 <a class="module-item-title" href="{{ version.get_absolute_url }}">
29 {{ version.slug }}
30 {% if request.user in project.users.all %}
31 <span class="right-menu quiet">{{ version.get_privacy_level_display }}</span>
32 {% endif %}

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_details.html

SELECT "projects_projectrelationship"."id",
       "projects_projectrelationship"."parent_id",
       "projects_projectrelationship"."child_id",
       "projects_projectrelationship"."alias",
       T3."id",
       T3."pub_date",
       T3."modified_date",
       T3."name",
       T3."slug",
       T3."description",
       T3."repo",
       T3."repo_type",
       T3."project_url",
       T3."canonical_url",
       T3."single_version",
       T3."default_version",
       T3."default_branch",
       T3."custom_prefix",
       T3."custom_subproject_prefix",
       T3."external_builds_enabled",
       T3."external_builds_privacy_level",
       T3."cdn_enabled",
       T3."analytics_code",
       T3."analytics_disabled",
       T3."container_image",
       T3."container_mem_limit",
       T3."container_time_limit",
       T3."build_queue",
       T3."max_concurrent_builds",
       T3."allow_promos",
       T3."ad_free",
       T3."is_spam",
       T3."show_version_warning",
       T3."readthedocs_yaml_path",
       T3."featured",
       T3."skip",
       T3."delisted",
       T3."privacy_level",
       T3."language",
       T3."programming_language",
       T3."main_language_project_id",
       T3."has_valid_webhook",
       T3."has_valid_clone",
       T3."remote_repository_id",
       T3."requirements_file",
       T3."documentation_type",
       T3."enable_epub_build",
       T3."enable_pdf_build",
       T3."path",
       T3."conf_py_file",
       T3."install_project",
       T3."python_interpreter",
       T3."use_system_packages"
  FROM "projects_projectrelationship"
 INNER JOIN "projects_project" T3
    ON ("projects_projectrelationship"."parent_id" = T3."id")
 WHERE "projects_projectrelationship"."child_id" = 31
 ORDER BY "projects_projectrelationship"."id" ASC
 LIMIT 1
SELECT ••• FROM "projects_projectrelationship" INNER JOIN "projects_project" T3 ON ("projects_projectrelationship"."parent_id" = T3."id") WHERE "projects_projectrelationship"."child_id" = 31 ORDER BY "projects_projectrelationship"."id" ASC LIMIT 1
5 similar queries. Duplicated 5 times.
0.34

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(238)
  nodelist.append(node.render_annotated(context))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(321)
  return nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1064)
  output = self.filter_expression.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(715)
  obj = self.var.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(847)
  value = self._resolve_lookup(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in _resolve_lookup(914)
  current = current()

/usr/src/app/checkouts/readthedocs.org/readthedocs/builds/models.py in get_absolute_url(411)
  return self.project.get_docs_url(

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in get_docs_url(676)
  return Resolver().resolve(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in resolve(249)
  domain, use_https = self._get_project_domain(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_project_domain(190)
  canonical_project, _ = self._get_canonical_project(project)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_canonical_project(330)
  relationship = parent_project.parent_relationship

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in parent_relationship(1293)
  return self.superprojects.select_related('parent').first()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in first(351)
  return self._no_monkey.first(self)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

25 <li class="module-item col-span">
26 {% if version.uploaded or version.built %}
27 {# Link to the docs #}
28 <a class="module-item-title" href="{{ version.get_absolute_url }}">
29 {{ version.slug }}
30 {% if request.user in project.users.all %}
31 <span class="right-menu quiet">{{ version.get_privacy_level_display }}</span>
32 {% endif %}

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_details.html

SELECT "projects_domain"."id",
       "projects_domain"."modified",
       "projects_domain"."created",
       "projects_domain"."project_id",
       "projects_domain"."domain",
       "projects_domain"."machine",
       "projects_domain"."cname",
       "projects_domain"."canonical",
       "projects_domain"."https",
       "projects_domain"."count",
       "projects_domain"."ssl_status",
       "projects_domain"."skip_validation",
       "projects_domain"."validation_process_start",
       "projects_domain"."hsts_max_age",
       "projects_domain"."hsts_include_subdomains",
       "projects_domain"."hsts_preload"
  FROM "projects_domain"
 WHERE ("projects_domain"."project_id" = 31 AND "projects_domain"."canonical")
 ORDER BY "projects_domain"."canonical" DESC,
          "projects_domain"."machine" DESC,
          "projects_domain"."domain" ASC
 LIMIT 1
SELECT ••• FROM "projects_domain" WHERE ("projects_domain"."project_id" = 31 AND "projects_domain"."canonical") ORDER BY "projects_domain"."canonical" DESC, "projects_domain"."machine" DESC, "projects_domain"."domain" ASC LIMIT 1
7 similar queries. Duplicated 7 times.
0.19

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(238)
  nodelist.append(node.render_annotated(context))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(321)
  return nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1064)
  output = self.filter_expression.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(715)
  obj = self.var.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(847)
  value = self._resolve_lookup(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in _resolve_lookup(914)
  current = current()

/usr/src/app/checkouts/readthedocs.org/readthedocs/builds/models.py in get_absolute_url(411)
  return self.project.get_docs_url(

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in get_docs_url(676)
  return Resolver().resolve(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in resolve(249)
  domain, use_https = self._get_project_domain(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_project_domain(197)
  domain_object = canonical_project.get_canonical_custom_domain()

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in get_canonical_custom_domain(1303)
  return self.domains.filter(canonical=True).first()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in first(351)
  return self._no_monkey.first(self)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

25 <li class="module-item col-span">
26 {% if version.uploaded or version.built %}
27 {# Link to the docs #}
28 <a class="module-item-title" href="{{ version.get_absolute_url }}">
29 {{ version.slug }}
30 {% if request.user in project.users.all %}
31 <span class="right-menu quiet">{{ version.get_privacy_level_display }}</span>
32 {% endif %}

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_details.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined"
  FROM "auth_user"
 INNER JOIN "projects_project_users"
    ON ("auth_user"."id" = "projects_project_users"."user_id")
 WHERE "projects_project_users"."project_id" = 31
SELECT ••• FROM "auth_user" INNER JOIN "projects_project_users" ON ("auth_user"."id" = "projects_project_users"."user_id") WHERE "projects_project_users"."project_id" = 31
7 similar queries. Duplicated 7 times.
0.21

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(238)
  nodelist.append(node.render_annotated(context))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(321)
  return nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(314)
  match = condition.eval(context)

/usr/local/lib/python3.10/dist-packages/django/template/smartif.py in eval(60)
  return func(context, self.first, self.second)

/usr/local/lib/python3.10/dist-packages/django/template/smartif.py in <lambda>(100)
  "in": infix(9, lambda context, x, y: x.eval(context) in y.eval(context)),

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

27 {# Link to the docs #}
28 <a class="module-item-title" href="{{ version.get_absolute_url }}">
29 {{ version.slug }}
30 {% if request.user in project.users.all %}
31 <span class="right-menu quiet">{{ version.get_privacy_level_display }}</span>
32 {% endif %}
33 </a>
34 {% else %}

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_details.html

SELECT "projects_project"."id",
       "projects_project"."pub_date",
       "projects_project"."modified_date",
       "projects_project"."name",
       "projects_project"."slug",
       "projects_project"."description",
       "projects_project"."repo",
       "projects_project"."repo_type",
       "projects_project"."project_url",
       "projects_project"."canonical_url",
       "projects_project"."single_version",
       "projects_project"."default_version",
       "projects_project"."default_branch",
       "projects_project"."custom_prefix",
       "projects_project"."custom_subproject_prefix",
       "projects_project"."external_builds_enabled",
       "projects_project"."external_builds_privacy_level",
       "projects_project"."cdn_enabled",
       "projects_project"."analytics_code",
       "projects_project"."analytics_disabled",
       "projects_project"."container_image",
       "projects_project"."container_mem_limit",
       "projects_project"."container_time_limit",
       "projects_project"."build_queue",
       "projects_project"."max_concurrent_builds",
       "projects_project"."allow_promos",
       "projects_project"."ad_free",
       "projects_project"."is_spam",
       "projects_project"."show_version_warning",
       "projects_project"."readthedocs_yaml_path",
       "projects_project"."featured",
       "projects_project"."skip",
       "projects_project"."delisted",
       "projects_project"."privacy_level",
       "projects_project"."language",
       "projects_project"."programming_language",
       "projects_project"."main_language_project_id",
       "projects_project"."has_valid_webhook",
       "projects_project"."has_valid_clone",
       "projects_project"."remote_repository_id",
       "projects_project"."requirements_file",
       "projects_project"."documentation_type",
       "projects_project"."enable_epub_build",
       "projects_project"."enable_pdf_build",
       "projects_project"."path",
       "projects_project"."conf_py_file",
       "projects_project"."install_project",
       "projects_project"."python_interpreter",
       "projects_project"."use_system_packages"
  FROM "projects_project"
 WHERE "projects_project"."id" = 31
 LIMIT 21
SELECT ••• FROM "projects_project" WHERE "projects_project"."id" = 31 LIMIT 21
3 similar queries. Duplicated 3 times.
0.28

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(238)
  nodelist.append(node.render_annotated(context))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(321)
  return nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1064)
  output = self.filter_expression.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(715)
  obj = self.var.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(847)
  value = self._resolve_lookup(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in _resolve_lookup(914)
  current = current()

/usr/src/app/checkouts/readthedocs.org/readthedocs/builds/models.py in get_absolute_url(411)
  return self.project.get_docs_url(

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in get(346)
  return qs._no_monkey.get(qs, *args, **kwargs)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

25 <li class="module-item col-span">
26 {% if version.uploaded or version.built %}
27 {# Link to the docs #}
28 <a class="module-item-title" href="{{ version.get_absolute_url }}">
29 {{ version.slug }}
30 {% if request.user in project.users.all %}
31 <span class="right-menu quiet">{{ version.get_privacy_level_display }}</span>
32 {% endif %}

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_details.html

SELECT "projects_projectrelationship"."id",
       "projects_projectrelationship"."parent_id",
       "projects_projectrelationship"."child_id",
       "projects_projectrelationship"."alias",
       T3."id",
       T3."pub_date",
       T3."modified_date",
       T3."name",
       T3."slug",
       T3."description",
       T3."repo",
       T3."repo_type",
       T3."project_url",
       T3."canonical_url",
       T3."single_version",
       T3."default_version",
       T3."default_branch",
       T3."custom_prefix",
       T3."custom_subproject_prefix",
       T3."external_builds_enabled",
       T3."external_builds_privacy_level",
       T3."cdn_enabled",
       T3."analytics_code",
       T3."analytics_disabled",
       T3."container_image",
       T3."container_mem_limit",
       T3."container_time_limit",
       T3."build_queue",
       T3."max_concurrent_builds",
       T3."allow_promos",
       T3."ad_free",
       T3."is_spam",
       T3."show_version_warning",
       T3."readthedocs_yaml_path",
       T3."featured",
       T3."skip",
       T3."delisted",
       T3."privacy_level",
       T3."language",
       T3."programming_language",
       T3."main_language_project_id",
       T3."has_valid_webhook",
       T3."has_valid_clone",
       T3."remote_repository_id",
       T3."requirements_file",
       T3."documentation_type",
       T3."enable_epub_build",
       T3."enable_pdf_build",
       T3."path",
       T3."conf_py_file",
       T3."install_project",
       T3."python_interpreter",
       T3."use_system_packages"
  FROM "projects_projectrelationship"
 INNER JOIN "projects_project" T3
    ON ("projects_projectrelationship"."parent_id" = T3."id")
 WHERE "projects_projectrelationship"."child_id" = 31
 ORDER BY "projects_projectrelationship"."id" ASC
 LIMIT 1
SELECT ••• FROM "projects_projectrelationship" INNER JOIN "projects_project" T3 ON ("projects_projectrelationship"."parent_id" = T3."id") WHERE "projects_projectrelationship"."child_id" = 31 ORDER BY "projects_projectrelationship"."id" ASC LIMIT 1
5 similar queries. Duplicated 5 times.
0.35

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(238)
  nodelist.append(node.render_annotated(context))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(321)
  return nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1064)
  output = self.filter_expression.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(715)
  obj = self.var.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(847)
  value = self._resolve_lookup(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in _resolve_lookup(914)
  current = current()

/usr/src/app/checkouts/readthedocs.org/readthedocs/builds/models.py in get_absolute_url(411)
  return self.project.get_docs_url(

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in get_docs_url(676)
  return Resolver().resolve(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in resolve(249)
  domain, use_https = self._get_project_domain(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_project_domain(190)
  canonical_project, _ = self._get_canonical_project(project)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_canonical_project(330)
  relationship = parent_project.parent_relationship

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in parent_relationship(1293)
  return self.superprojects.select_related('parent').first()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in first(351)
  return self._no_monkey.first(self)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

25 <li class="module-item col-span">
26 {% if version.uploaded or version.built %}
27 {# Link to the docs #}
28 <a class="module-item-title" href="{{ version.get_absolute_url }}">
29 {{ version.slug }}
30 {% if request.user in project.users.all %}
31 <span class="right-menu quiet">{{ version.get_privacy_level_display }}</span>
32 {% endif %}

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_details.html

SELECT "projects_domain"."id",
       "projects_domain"."modified",
       "projects_domain"."created",
       "projects_domain"."project_id",
       "projects_domain"."domain",
       "projects_domain"."machine",
       "projects_domain"."cname",
       "projects_domain"."canonical",
       "projects_domain"."https",
       "projects_domain"."count",
       "projects_domain"."ssl_status",
       "projects_domain"."skip_validation",
       "projects_domain"."validation_process_start",
       "projects_domain"."hsts_max_age",
       "projects_domain"."hsts_include_subdomains",
       "projects_domain"."hsts_preload"
  FROM "projects_domain"
 WHERE ("projects_domain"."project_id" = 31 AND "projects_domain"."canonical")
 ORDER BY "projects_domain"."canonical" DESC,
          "projects_domain"."machine" DESC,
          "projects_domain"."domain" ASC
 LIMIT 1
SELECT ••• FROM "projects_domain" WHERE ("projects_domain"."project_id" = 31 AND "projects_domain"."canonical") ORDER BY "projects_domain"."canonical" DESC, "projects_domain"."machine" DESC, "projects_domain"."domain" ASC LIMIT 1
7 similar queries. Duplicated 7 times.
0.18

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(238)
  nodelist.append(node.render_annotated(context))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(321)
  return nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1064)
  output = self.filter_expression.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(715)
  obj = self.var.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(847)
  value = self._resolve_lookup(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in _resolve_lookup(914)
  current = current()

/usr/src/app/checkouts/readthedocs.org/readthedocs/builds/models.py in get_absolute_url(411)
  return self.project.get_docs_url(

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in get_docs_url(676)
  return Resolver().resolve(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in resolve(249)
  domain, use_https = self._get_project_domain(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_project_domain(197)
  domain_object = canonical_project.get_canonical_custom_domain()

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in get_canonical_custom_domain(1303)
  return self.domains.filter(canonical=True).first()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in first(351)
  return self._no_monkey.first(self)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

25 <li class="module-item col-span">
26 {% if version.uploaded or version.built %}
27 {# Link to the docs #}
28 <a class="module-item-title" href="{{ version.get_absolute_url }}">
29 {{ version.slug }}
30 {% if request.user in project.users.all %}
31 <span class="right-menu quiet">{{ version.get_privacy_level_display }}</span>
32 {% endif %}

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_details.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined"
  FROM "auth_user"
 INNER JOIN "projects_project_users"
    ON ("auth_user"."id" = "projects_project_users"."user_id")
 WHERE "projects_project_users"."project_id" = 31
SELECT ••• FROM "auth_user" INNER JOIN "projects_project_users" ON ("auth_user"."id" = "projects_project_users"."user_id") WHERE "projects_project_users"."project_id" = 31
7 similar queries. Duplicated 7 times.
0.21

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(238)
  nodelist.append(node.render_annotated(context))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(321)
  return nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(314)
  match = condition.eval(context)

/usr/local/lib/python3.10/dist-packages/django/template/smartif.py in eval(60)
  return func(context, self.first, self.second)

/usr/local/lib/python3.10/dist-packages/django/template/smartif.py in <lambda>(100)
  "in": infix(9, lambda context, x, y: x.eval(context) in y.eval(context)),

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

27 {# Link to the docs #}
28 <a class="module-item-title" href="{{ version.get_absolute_url }}">
29 {{ version.slug }}
30 {% if request.user in project.users.all %}
31 <span class="right-menu quiet">{{ version.get_privacy_level_display }}</span>
32 {% endif %}
33 </a>
34 {% else %}

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_details.html

SELECT "projects_projectrelationship"."id",
       "projects_projectrelationship"."parent_id",
       "projects_projectrelationship"."child_id",
       "projects_projectrelationship"."alias",
       T3."id",
       T3."pub_date",
       T3."modified_date",
       T3."name",
       T3."slug",
       T3."description",
       T3."repo",
       T3."repo_type",
       T3."project_url",
       T3."canonical_url",
       T3."single_version",
       T3."default_version",
       T3."default_branch",
       T3."custom_prefix",
       T3."custom_subproject_prefix",
       T3."external_builds_enabled",
       T3."external_builds_privacy_level",
       T3."cdn_enabled",
       T3."analytics_code",
       T3."analytics_disabled",
       T3."container_image",
       T3."container_mem_limit",
       T3."container_time_limit",
       T3."build_queue",
       T3."max_concurrent_builds",
       T3."allow_promos",
       T3."ad_free",
       T3."is_spam",
       T3."show_version_warning",
       T3."readthedocs_yaml_path",
       T3."featured",
       T3."skip",
       T3."delisted",
       T3."privacy_level",
       T3."language",
       T3."programming_language",
       T3."main_language_project_id",
       T3."has_valid_webhook",
       T3."has_valid_clone",
       T3."remote_repository_id",
       T3."requirements_file",
       T3."documentation_type",
       T3."enable_epub_build",
       T3."enable_pdf_build",
       T3."path",
       T3."conf_py_file",
       T3."install_project",
       T3."python_interpreter",
       T3."use_system_packages"
  FROM "projects_projectrelationship"
 INNER JOIN "projects_project" T3
    ON ("projects_projectrelationship"."parent_id" = T3."id")
 WHERE "projects_projectrelationship"."child_id" = 31
 ORDER BY "projects_projectrelationship"."id" ASC
 LIMIT 1
SELECT ••• FROM "projects_projectrelationship" INNER JOIN "projects_project" T3 ON ("projects_projectrelationship"."parent_id" = T3."id") WHERE "projects_projectrelationship"."child_id" = 31 ORDER BY "projects_projectrelationship"."id" ASC LIMIT 1
5 similar queries. Duplicated 5 times.
0.40

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(63)
  result = block.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(208)
  return template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(177)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(238)
  nodelist.append(node.render_annotated(context))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/defaulttags.py in render(321)
  return nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1064)
  output = self.filter_expression.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(715)
  obj = self.var.resolve(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in resolve(847)
  value = self._resolve_lookup(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in _resolve_lookup(914)
  current = current()

/usr/src/app/checkouts/readthedocs.org/readthedocs/builds/models.py in get_absolute_url(411)
  return self.project.get_docs_url(

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in get_docs_url(676)
  return Resolver().resolve(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in resolve(249)
  domain, use_https = self._get_project_domain(

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_project_domain(190)
  canonical_project, _ = self._get_canonical_project(project)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/resolver.py in _get_canonical_project(330)
  relationship = parent_project.parent_relationship

/usr/src/app/checkouts/readthedocs.org/readthedocs/projects/models.py in parent_relationship(1293)
  return self.superprojects.select_related('parent').first()

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in first(351)
  return self._no_monkey.first(self)

/usr/local/lib/python3.10/dist-packages/cacheops/query.py in _fetch_all(250)
  return self._no_monkey._fetch_all(self)

25 <li class="module-item col-span">
26 {% if version.uploaded or version.built %}
27 {# Link to the docs #}
28 <a class="module-item-title" href="{{ version.get_absolute_url }}">
29 {{ version.slug }}
30 {% if request.user in project.users.all %}
31 <span class="right-menu quiet">{{ version.get_privacy_level_display }}</span>
32 {% endif %}

/usr/src/app/checkouts/readthedocs.org/readthedocs/templates/core/project_details.html

SELECT "projects_domain"."id",
       "projects_domain"."modified",
       "projects_domain"."created",
       "projects_domain"."project_id",
       "projects_domain"."domain",
       "projects_domain"."machine",
       "projects_domain"."cname",
       "projects_domain"."canonical",
       "projects_domain"."https",
       "projects_domain"."count",
       "projects_domain"."ssl_status",
       "projects_domain"."skip_validation",
       "projects_domain"."validation_process_start",
       "projects_domain"."hsts_max_age",
       "projects_domain"."hsts_include_subdomains",
       "projects_domain"."hsts_preload"
  FROM "projects_domain"
 WHERE ("projects_domain"."project_id" = 31 AND "projects_domain"."canonical")
 ORDER BY "projects_domain"."canonical" DESC,
          "projects_domain"."machine" DESC,
          "projects_domain"."domain" ASC
 LIMIT 1
SELECT ••• FROM "projects_domain" WHERE ("projects_domain"."project_id" = 31 AND "projects_domain"."canonical") ORDER BY "projects_domain"."canonical" DESC, "projects_domain"."machine" DESC, "projects_domain"."domain" ASC LIMIT 1
7 similar queries. Duplicated 7 times.
0.19

Connection: default

Transaction status: Idle

/usr/local/bin/gunicorn in <module>(8)
  sys.exit(run())

/usr/local/lib/python3.10/dist-packages/gunicorn/app/wsgiapp.py in run(67)
  WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(236)
  super().run()

/usr/local/lib/python3.10/dist-packages/gunicorn/app/base.py in run(72)
  Arbiter(self).run()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in run(202)
  self.manage_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in manage_workers(571)
  self.spawn_workers()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_workers(642)
  self.spawn_worker()

/usr/local/lib/python3.10/dist-packages/gunicorn/arbiter.py in spawn_worker(609)
  worker.init_process()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/base.py in init_process(142)
  self.run()

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run(126)
  self.run_for_one(timeout)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in run_for_one(70)
  self.accept(listener)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in accept(32)
  self.handle(listener, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle(135)
  self.handle_request(listener, req, client, addr)

/usr/local/lib/python3.10/dist-packages/gunicorn/workers/sync.py in handle_request(178)
  respiter = self.wsgi(environ, resp.start_response)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(238)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/corsheaders/middleware.py in __call__(56)
  result = self.get_response(request)

/usr/src/app/checkouts/readthedocs.org/readthedocs/core/middleware.py in __call__(205)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/middlewares/request.py in __call__(62)
  response = self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django_structlog/celery/middlewares.py in __call__(24)
  return self.get_response(request)

/usr/local/lib/python3.10/dist-packages/django/template/response.py in render(114)
  self.content = self.rendered_content

/usr/local/lib/python3.10/dist-packages/django/template/response.py in rendered_content(92)
  return template.render(context, self._request)

/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py in render(61)
  return self.template.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(175)
  return self._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/utils.py in instrumented_test_render(112)
  return self.nodelist.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in <listcomp>(1005)
  return SafeString("".join([node.render_annotated(context) for node in self]))

/usr/local/lib/python3.10/dist-packages/django/template/base.py in render_annotated(966)
  return self.render(context)

/usr/local/lib/python3.10/dist-packages/django/template/loader_tags.py in render(157)
  return compiled_parent._render(context)

/usr/local/lib/python3.10/dist-packages/django/test/