diff --git a/chicago/settings.py b/chicago/settings.py index a1f84b9..e67b369 100644 --- a/chicago/settings.py +++ b/chicago/settings.py @@ -12,7 +12,6 @@ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os -import socket import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration @@ -26,12 +25,6 @@ ALLOWED_HOSTS = allowed_hosts.split(",") if allowed_hosts else [] GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY", "") -if DEBUG: - # Add dynamically generated Docker IP - # Don't do this in production! - hostname, _, ips = socket.gethostbyname_ex(socket.gethostname()) - INTERNAL_IPS = [ip[:-1] + "1" for ip in ips] + ["127.0.0.1"] - # Configure Sentry for error logging if os.getenv("SENTRY_DSN"): sentry_sdk.init( @@ -93,11 +86,6 @@ "opencivicdata.legislative", ) -try: - INSTALLED_APPS += EXTRA_APPS -except NameError: - pass - MIDDLEWARE = ( "django.middleware.security.SecurityMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware", @@ -176,16 +164,6 @@ } -RQ_QUEUES = { - "default": { - "HOST": "localhost", - "PORT": 6379, - "DB": 1, - "PASSWORD": "", - "DEFAULT_TIMEOUT": 360, - } -} - # Enforce SSL in production if DEBUG is False: SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")