Skip to content

Commit

Permalink
Fix INTERNAL_IPS to support container
Browse files Browse the repository at this point in the history
  • Loading branch information
retroinspect committed Mar 30, 2023
1 parent 5827149 commit a051c65
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ara/settings/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

from django.utils.translation import ugettext_lazy

from ara.settings import DEBUG

from .env import env, root

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
Expand Down Expand Up @@ -123,9 +125,9 @@


# https://django-debug-toolbar.readthedocs.io/

INTERNAL_IPS = ("127.0.0.1",)

INTERNAL_IPS = (
type(str("c"), (), {"__contains__": lambda *a: True})() if DEBUG else ("127.0.0.1",)
)

SESSION_ENGINE = "django.contrib.sessions.backends.db"
SESSION_COOKIE_HTTPONLY = True
Expand Down

0 comments on commit a051c65

Please sign in to comment.