Skip to content

Commit 3934c35

Browse files
xrmxagjohnson
authored andcommitted
Fixup DJANGO_SETTINGS_SKIP_LOCAL in tests (#3899)
The import path for the local_settings should be relative to the test module and not absolute otherwise the import will fail.
1 parent bf97bc5 commit 3934c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/settings/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ def LOGGING(self): # noqa - avoid pep8 N802
3535

3636
if not os.environ.get('DJANGO_SETTINGS_SKIP_LOCAL', False):
3737
try:
38-
from local_settings import * # noqa
38+
from .local_settings import * # noqa
3939
except ImportError:
4040
pass

0 commit comments

Comments
 (0)