- Implemented user authentication with JWT tokens - Added user and profile models with OneToOne relationship - Created service layer for business logic separation - Implemented DRF serializers and views - Added comprehensive test suite with model-bakery factories - Fixed ipdb/pdbpp dependency conflicts with custom test runner - Configured development and production environments - Added deployment configurations for Apache, systemd, and Docker
25 lines
633 B
Plaintext
25 lines
633 B
Plaintext
# Test environment for user app
|
|
DEBUG=True
|
|
SECRET_KEY=test-secret-key-for-development
|
|
ALLOWED_HOSTS=localhost,127.0.0.1
|
|
|
|
# Database Settings - using existing tenant_db container
|
|
POSTGRES_DB=project_dev
|
|
POSTGRES_USER=postgres
|
|
POSTGRES_PASSWORD=postgres
|
|
POSTGRES_HOST=localhost
|
|
POSTGRES_PORT=8432 # social_db container port
|
|
|
|
# Redis Settings
|
|
REDIS_URL=redis://localhost:6379/0
|
|
REDIS_CACHE_URL=redis://localhost:6379/1
|
|
|
|
# Celery Settings
|
|
CELERY_BROKER_URL=redis://localhost:6379/0
|
|
CELERY_RESULT_BACKEND=redis://localhost:6379/0
|
|
|
|
# CORS Settings
|
|
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO |