feat: Add comprehensive Django user app with tests using model-bakery
- 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
This commit is contained in:
18
docker/postgres/init.sql
Normal file
18
docker/postgres/init.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- Инициализационный SQL файл для PostgreSQL
|
||||
-- Создает необходимые расширения и базовые настройки
|
||||
|
||||
-- Создание расширений
|
||||
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
||||
CREATE EXTENSION IF NOT EXISTS "pg_trgm";
|
||||
|
||||
-- Создание пользователей (если нужно)
|
||||
-- CREATE USER project_user WITH PASSWORD 'project_password';
|
||||
-- GRANT ALL PRIVILEGES ON DATABASE project_dev TO project_user;
|
||||
|
||||
-- Настройки для производительности
|
||||
ALTER SYSTEM SET shared_buffers = '256MB';
|
||||
ALTER SYSTEM SET effective_cache_size = '1GB';
|
||||
ALTER SYSTEM SET maintenance_work_mem = '64MB';
|
||||
ALTER SYSTEM SET checkpoint_completion_target = 0.9;
|
||||
ALTER SYSTEM SET wal_buffers = '16MB';
|
||||
ALTER SYSTEM SET default_statistics_target = 100;
|
||||
Reference in New Issue
Block a user