Skip to content

asgiref 3.9.0 breaks django-hosts #522

@phihag

Description

@phihag

asgiref 3.9.0 in conjunction with django-hosts 7.0.0 (their latest version) makes between 10% and 20% of requests to our admin host fail with

NoReverseMatch: 'admin' is not a registered namespace

These requests are calling something like reverse('admin:login'), but the django-hosts configuration is the fallback one for their thread.

Reverting to asgiref 3.8.1 fixes the problem.

I suspect this code change, which uses a normal dictionary for thread-local access: 85d2445#r161477713

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions