Очистка репозитория: удалены тестовые и служебные файлы

Удалены из git:
- Скрипты активации и диагностики тенантов
- Тестовые файлы (test_*.py, test_*.txt)
- SQL скрипты для отладки
- Backup файлы (*.backup, *.old)
- Дубликат .gitignore из myproject/

Файлы остались на диске, но теперь игнорируются git.
В репозитории остались только:
- myproject/ (основной код проекта)
- requirements.txt
- .gitignore

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-02 15:13:51 +03:00
parent 384f3c22f8
commit eaa0b5bd3c
38 changed files with 0 additions and 4308 deletions

View File

@@ -1,44 +0,0 @@
docker run -d `
--name postgres17 `
-e POSTGRES_PASSWORD=postgres `
-e POSTGRES_USER=postgres `
-e POSTGRES_DB=inventory_db `
-p 5432:5432 `
-v postgres17-data:/var/lib/postgresql/data `
postgres:17
# 2. Создаем миграции с нуля
python manage.py makemigrations
# 3. Применяем все миграции
python manage.py migrate
# 4. Создаем главного тенанта (если нужно)
python manage.py shell
# Внутри shell:
from tenants.models import Client, Domain
client = Client.objects.create(
name='Main',
schema_name='public'
)
Domain.objects.create(
domain='localhost',
tenant=client,
is_primary=True
)
exit()
# 5. Создаем суперпользователя для public схемы
python manage.py createsuperuser
# 6. Создаем суперпользователя для конкретного тенанта (опционально)
python manage.py shell
# Внутри:
from tenants.models import Client
from django.core.management import call_command
from django_tenants.utils import schema_context
client = Client.objects.get(schema_name='public')
with schema_context(client):
call_command('createsuperuser')
exit()