﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29673	Thread urlconf isn't reset after response complete	tpict	Matthew Power	"When setting the urlconf on a request (e.g. in middleware for handling multiple domains pointing to the same Django app), it's not reset until the start of the next request. Since urlconf is threadlocal, this causes problems when running a suite of tests, even if the tests pass when ran individually. For example:
- Django test client makes a request that triggers a middleware to change the urlconf
-  `reverse` is called with no `urlconf` kwarg, expecting to be given the urlconf specified by `ROOT_URLCONF`
- test throws `NoReverseMatch`

I took this problem to the IRC and found that another person recently messaged about the same thing: https://botbot.me/freenode/django/2018-08-07/?msg=103000008&page=3"	Bug	closed	Core (URLs)	dev	Normal	fixed		Keryn Knight Herbert Fortes Adam Johnson	Accepted	1	0	0	0	0	0
