﻿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
24978	Can't load fixtures with '[' and ']' in path	Michał Kowalczyk	Moritz Sichert	"It's not possible to load a fixture from a path containing `[` or `]`. The problem is in `django/core/management/commands/loaddata.py:206`
{{{
for candidate in glob.iglob(os.path.join(fixture_dir, fixture_name + '*')):
}}}
fixture_dir and fixture_name should be escaped prior to passing it to iglob(), because it interprets some characters as wildcards (see [https://docs.python.org/2/library/glob.html]).

Note that square brackets are valid characters in filenames in majority of filesystems (including ext and ntfs).

Steps to reproduce:
Set FIXTURE_DIRS in settings.py to anything containing square brackets, e.g. `/home/user/test[123]`. Try to load any fixture from that directory in your tests.py. It won't find it and will print a warning: `No fixture named 'your_fixture_name' found.`"	Bug	closed	Core (Management commands)	1.8	Normal	fixed	square brackets fixture path not found		Accepted	0	0	0	0	0	0
