Fix: Resolve Django settings import error and fix quick login API endpoint
Settings Refactoring Fixes: - Add minimal LOGGING structure to base.py for multitenancy.py to extend - Restore LOGGING import in multitenancy.py - Add development LOGGING configuration to local.py - This allows multitenancy.py to extend LOGGING configuration properly Quick Login Fix: - Update frontend .env.development to use VITE_API_URL=http://localhost:8000 - Previous configuration tried to access api.lvh.me which failed due to django-tenants not recognizing that hostname - Using localhost:8000 directly bypasses subdomain routing and accesses the public schema where auth endpoints are available Both fixes restore full functionality: - Django now starts without import errors in local development - Quick login API calls now succeed and return authentication tokens - Frontend can authenticate users for development/testing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ This file extends base.py and adds django-tenants configuration
|
||||
"""
|
||||
|
||||
from .base import * # noqa
|
||||
from .base import INSTALLED_APPS, MIDDLEWARE, DATABASES, env
|
||||
from .base import INSTALLED_APPS, MIDDLEWARE, DATABASES, LOGGING, env
|
||||
|
||||
# =============================================================================
|
||||
# MULTI-TENANCY CONFIGURATION (django-tenants)
|
||||
|
||||
Reference in New Issue
Block a user