Skip to content

Commit 058d0cc

Browse files
committed
fix: missing DjDT in development
1 parent 4e884a2 commit 058d0cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bullet/bullet/settings.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ def silky_intercept(request):
218218

219219
if DEBUG:
220220
SILENCED_SYSTEM_CHECKS = ["django_recaptcha.recaptcha_test_key_error"]
221+
222+
import socket
223+
224+
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
225+
INTERNAL_IPS = [ip[: ip.rfind(".")] + ".1" for ip in ips] + ["127.0.0.1"]
221226
else:
222227
SESSION_COOKIE_DOMAIN = env("PARENT_HOST", default="naboj.org")
223228
SESSION_COOKIE_SECURE = True

0 commit comments

Comments
 (0)