modern-django-starter/django_project/settings
Django Template 2c277d13f6 Fix Django logging configuration for Docker containers
## Issue Fixed:
- Django production logging was trying to write to `/var/log/django/django.log`
- This directory doesn't exist in Docker containers, causing deployment failures
- Error: `FileNotFoundError: [Errno 2] No such file or directory: '/var/log/django/django.log'`

## Solution:
- **Modified production.py**: Switched from file-based to console-only logging
- **Docker-friendly logging**: All logs now go to stdout/stderr for container compatibility
- **Dokploy integration**: Logs are now visible in Dokploy's log viewer
- **Added troubleshooting**: Updated DOKPLOY.md with this specific error and solution

## Benefits:
-  Works seamlessly with Docker containers
-  Integrates with Dokploy log viewing system
-  No file permissions or directory creation issues
-  Standard practice for containerized applications

This fixes the deployment failure identified in the Dokploy logs.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-11 16:19:38 +05:30
..
__init__.py Initial commit: Django boilerplate with authentication, Docker, and Dokploy support 2025-09-11 09:36:55 +05:30
base.py Migrate from Bootstrap to Tailwind CSS with comprehensive UI improvements 2025-09-11 15:10:35 +05:30
development.py Migrate from Bootstrap to Tailwind CSS with comprehensive UI improvements 2025-09-11 15:10:35 +05:30
production.py Fix Django logging configuration for Docker containers 2025-09-11 16:19:38 +05:30