Add the Coulobre operator interface

Provide a responsive sign-in flow, hosting account management, and
Apache preview requests and status pages.
This commit is contained in:
parkel committed 2026-11-19 21:30:25 +01:00
1 parent 84d94f7efa
commit 64ee6ddcba
22 files changed
+1085 -14

No files matched your search

+8
View File
@@ -1,4 +1,5 @@
from django.db import models
from django.urls import reverse
from .fields import DomainNameField
@@ -8,6 +9,9 @@ class HostingAccount(models.Model):
primary_domain = DomainNameField(max_length=253, unique=True)
created_at = models.DateTimeField(auto_now_add=True)
def get_absolute_url(self):
return reverse("panel:account", kwargs={"pk": self.pk})
def __str__(self):
return str(self.primary_domain)
@@ -20,5 +24,9 @@ class WebProvisioningPlan(models.Model):
completed_at = models.DateTimeField(null=True, blank=True)
apache_config = models.TextField(blank=True)
@classmethod
def for_account(cls, account):
return cls(account=account, primary_domain=account.primary_domain)
def __str__(self):
return str(self.primary_domain)