Skip to content

Commit 3ff3d3a

Browse files
committed
add settings.DJANGO_CRYPTO_FIELDS_KEY_PATH_IN_APP_FOLDER
1 parent 4617ac0 commit 3ff3d3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/django_crypto_fields/key_path/key_path.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def __post_init__(self):
5454
KEY_PATH_DOES_NOT_EXIST.format(invalid_path=str(path))
5555
)
5656
if (
57-
not settings.DEBUG
57+
not getattr(settings, "DJANGO_CRYPTO_FIELDS_KEY_PATH_IN_APP_FOLDER", False)
58+
and not settings.DEBUG
5859
and (
5960
get_test_module_from_settings()
6061
not in list(itertools.chain(*[x.split("/") for x in sys.argv]))

0 commit comments

Comments
 (0)