Skip to content

fix(sentry#6931306293): fix issue with url context resolver#2791

Merged
JacobCoffee merged 4 commits intomainfrom
sentry-6931306293
Feb 5, 2026
Merged

fix(sentry#6931306293): fix issue with url context resolver#2791
JacobCoffee merged 4 commits intomainfrom
sentry-6931306293

Conversation

@JacobCoffee
Copy link
Member

@JacobCoffee JacobCoffee commented Oct 8, 2025

Description

image which fails loading JS and the title bar is also funky: image
(InteractiveConsole)
>>> from django.test import RequestFactory
>>> 
>>> from pydotorg import context_processors
>>> 
>>>   factory = RequestFactory()
  File "<console>", line 1
    factory = RequestFactory()
IndentationError: unexpected indent
>>> factory = RequestFactory()
>>> request = factory.get('/this-does-not-exist/')
>>> result = context_processors.url_name(request)
>>> print(result)
{'URL_NAMESPACE': None, 'URL_NAME': None}
>>> request = factory.get('/about/')
>>> result = context_processors.url_name(request)
>>> 
>>> print(result)
{'URL_NAMESPACE': '', 'URL_NAME': 'about'}
>>> 

testing locally we get the right context:
image

Closes

@JacobCoffee JacobCoffee requested a review from ewdurbin as a code owner October 8, 2025 16:48
@JacobCoffee JacobCoffee requested review from hugovk and removed request for ewdurbin February 5, 2026 18:35
@JacobCoffee JacobCoffee enabled auto-merge (squash) February 5, 2026 18:35
@JacobCoffee JacobCoffee merged commit ed5906c into main Feb 5, 2026
10 checks passed
@JacobCoffee JacobCoffee deleted the sentry-6931306293 branch February 5, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: 'NoneType' object has no attribute 'engine'

3 participants