refactor python package structure

This commit is contained in:
Tobias Brunner 2025-01-30 11:23:25 +01:00
parent 9eff769622
commit 8c9671602b
No known key found for this signature in database
19 changed files with 56 additions and 49 deletions

View file

@ -3,4 +3,4 @@ from django.apps import AppConfig
class ServicesConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "services"
name = "hub.services"

View file

@ -1,7 +1,7 @@
# Generated by Django 5.1.5 on 2025-01-29 08:34
import django.db.models.deletion
import services.models
import hub.services.models
from django.db import migrations, models
@ -67,7 +67,7 @@ class Migration(migrations.Migration):
blank=True,
null=True,
upload_to="cloud_provider_logos/",
validators=[services.models.validate_image_size],
validators=[hub.services.models.validate_image_size],
),
),
],
@ -190,7 +190,7 @@ class Migration(migrations.Migration):
blank=True,
null=True,
upload_to="service_logos/",
validators=[services.models.validate_image_size],
validators=[hub.services.models.validate_image_size],
),
),
("features", models.TextField()),
@ -293,7 +293,7 @@ class Migration(migrations.Migration):
blank=True,
null=True,
upload_to="partner_logos/",
validators=[services.models.validate_image_size],
validators=[hub.services.models.validate_image_size],
),
),
("website", models.URLField(blank=True)),

View file

@ -3,13 +3,13 @@ from django.conf import settings
from django.shortcuts import render, get_object_or_404, redirect
from django.contrib import messages
from django.urls import reverse
from services.models import (
from hub.services.models import (
Service,
ServiceOffering,
Plan,
)
from services.forms import LeadForm
from services.odoo import OdooAPI
from hub.services.forms import LeadForm
from hub.services.odoo import OdooAPI
logger = logging.getLogger(__name__)

View file

@ -1,6 +1,6 @@
from django.shortcuts import render, get_object_or_404
from django.db.models import Q
from services.models import (
from hub.services.models import (
ServiceOffering,
CloudProvider,
Category,

View file

@ -1,6 +1,6 @@
from django.shortcuts import render, get_object_or_404
from django.db.models import Q
from services.models import (
from hub.services.models import (
ConsultingPartner,
CloudProvider,
)

View file

@ -1,6 +1,6 @@
from django.shortcuts import render, get_object_or_404
from django.db.models import Q
from services.models import (
from hub.services.models import (
Service,
CloudProvider,
)

View file

@ -1,6 +1,6 @@
from django.shortcuts import render, get_object_or_404
from django.db.models import Q
from services.models import (
from hub.services.models import (
Service,
ConsultingPartner,
CloudProvider,