From e03a30a735e3800c0c368dd56236a2416372ff52 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 12 Jul 2025 04:32:01 +0530 Subject: [PATCH] Use RAILWAY_ENVIRONMENT to detect production MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Switch database config to use RAILWAY_ENVIRONMENT instead of DATABASE_URL for better local development with SQLite 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- netcop_hub/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netcop_hub/settings.py b/netcop_hub/settings.py index 193e695..8e9e8b2 100644 --- a/netcop_hub/settings.py +++ b/netcop_hub/settings.py @@ -87,7 +87,7 @@ WSGI_APPLICATION = 'netcop_hub.wsgi.application' # Database # https://docs.djangoproject.com/en/5.2/ref/settings/#databases -if config('DATABASE_URL', default=''): +if config('RAILWAY_ENVIRONMENT', default=''): DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql',