This commit is contained in:
ilkeral
2025-07-21 13:49:36 +03:00
commit 342f1314c7
57 changed files with 9297 additions and 0 deletions

View File

@ -0,0 +1,20 @@
from django.db import migrations
def create_default_ssh_credential(apps, schema_editor):
SSHCredential = apps.get_model('ssh_manager', 'SSHCredential')
if not SSHCredential.objects.exists():
SSHCredential.objects.create(
hostname='localhost', # Varsayılan sunucu bilgileri
username='root',
password='password',
port=22
)
class Migration(migrations.Migration):
dependencies = [
('ssh_manager', '0001_initial'),
]
operations = [
migrations.RunPython(create_default_ssh_credential),
]