4 months ago
Hi Railway Support,
I'm experiencing issues with my Django application deployment:
Database Connection:
Application fails with "ImproperlyConfigured: settings.DATABASES is improperly configured"
Database configuration appears correct in logs but Django can't access it
Using postgres.railway.internal as host
Health Check:
Health check failing at /health/
Application shows correct configuration but fails to start
Relevant Information:
Using Django 5.1.6 with PostgreSQL
Database and application services are linked in Railway dashboard
All required environment variables are set in Railway dashboard
Logs show environment variables are present but not accessible during Django initialization.
Could this be related to the order of environment variable loading or service initialization?
Any guidance would be greatly appreciated.
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
4 months ago
Hello,
I think you need this docs section -
https://docs.railway.com/guides/healthchecks-and-restarts#configure-healthcheck-port