from django.conf import settings
from django.urls import re_path

from .views import ScannerResultView


urlpatterns = (
    [re_path(r'^results/$', ScannerResultView.as_view(), name='scanner-results')]
    if settings.INTERNAL_ROUTES_ALLOWED
    else []
)

92ee6fd0942d5f57873d2c71ca085dd4a4df1572
<mask token>

<mask token>
urlpatterns = [re_path('^results/$', ScannerResultView.as_view(), name=
    'scanner-results')] if settings.INTERNAL_ROUTES_ALLOWED else []

from django.conf import settings
from django.urls import re_path
from .views import ScannerResultView
urlpatterns = [re_path('^results/$', ScannerResultView.as_view(), name=
    'scanner-results')] if settings.INTERNAL_ROUTES_ALLOWED else []

from django.conf import settings
from django.urls import re_path

from .views import ScannerResultView


urlpatterns = (
    [re_path(r'^results/$', ScannerResultView.as_view(), name='scanner-results')]
    if settings.INTERNAL_ROUTES_ALLOWED
    else []
)
