mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 17:52:57 +00:00
Use RAILWAY_ENVIRONMENT to detect production
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 <noreply@anthropic.com>
This commit is contained in:
parent
338de02bbb
commit
e03a30a735
@ -87,7 +87,7 @@ WSGI_APPLICATION = 'netcop_hub.wsgi.application'
|
|||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/5.2/ref/settings/#databases
|
# https://docs.djangoproject.com/en/5.2/ref/settings/#databases
|
||||||
|
|
||||||
if config('DATABASE_URL', default=''):
|
if config('RAILWAY_ENVIRONMENT', default=''):
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.postgresql',
|
'ENGINE': 'django.db.backends.postgresql',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user