fix: Integrate official aCAPTCHA v1.1 Web Component in GuestSignupModal and disable seed_data execution in production docker-compose
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.conf import settings
|
||||
from apps.users.models import User, RegistrationDomainRule, RegistrationRestrictionSetting
|
||||
from apps.events.models import Skill, Event, TaskArea, Shift, ShiftSignup, EventTemplate
|
||||
from apps.branding.models import BrandingSetting
|
||||
@@ -7,6 +8,10 @@ class Command(BaseCommand):
|
||||
help = "Populate database with initial demo data including Demo Admin & Demo User"
|
||||
|
||||
def handle(self, *args, **options):
|
||||
if not settings.DEBUG:
|
||||
self.stdout.write(self.style.WARNING("seed_data wird im Produktionsmodus (DEBUG=False) übersprungen."))
|
||||
return
|
||||
|
||||
# 1. Branding
|
||||
branding = BrandingSetting.get_solo()
|
||||
branding.app_name = "Veranstaltungsschichtplaner (Dev)"
|
||||
|
||||
Reference in New Issue
Block a user