Skip to content

Commit 9d05c92

Browse files
authored
Import setting from django.conf instead of scancodeio module #1587 (#1609)
Signed-off-by: tdruez <[email protected]>
1 parent 41752cd commit 9d05c92

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scancodeio/context_processors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
# ScanCode.io is a free software code scanning tool from nexB Inc. and others.
2121
# Visit https://github.com/aboutcode-org/scancode.io for support and download.
2222

23+
from django.conf import settings
24+
2325
from scancode_config import __version__ as scancode_toolkit_version
2426

2527
from scancodeio import __version__ as scancodeio_version
26-
from scancodeio import settings
2728

2829

2930
def versions(request):

scanpipe/pipes/federatedcode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@
2828
from pathlib import Path
2929
from urllib.parse import urljoin
3030

31+
from django.conf import settings
32+
3133
import requests
3234
from git import Repo
3335
from packageurl import PackageURL
3436

3537
from aboutcode import hashid
3638
from scancodeio import VERSION
37-
from scancodeio import settings
3839
from scanpipe.pipes.output import JSONResultsGenerator
3940

4041
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)