Skip to content

Commit

Permalink
Fixup DJANGO_SETTINGS_SKIP_LOCAL in tests (#3899)
Browse files Browse the repository at this point in the history
The import path for the local_settings should be relative to the
test module and not absolute otherwise the import will fail.
  • Loading branch information
xrmx authored and agjohnson committed Apr 17, 2018
1 parent bf97bc5 commit 3934c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def LOGGING(self): # noqa - avoid pep8 N802

if not os.environ.get('DJANGO_SETTINGS_SKIP_LOCAL', False):
try:
from local_settings import * # noqa
from .local_settings import * # noqa
except ImportError:
pass

0 comments on commit 3934c35

Please sign in to comment.