feat: serve isolated companies below a fixed product path
All checks were successful
All checks were successful
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
parent
09e2239bc6
commit
9345a1bb1a
28 changed files with 350 additions and 117 deletions
12
vergabe_teilnahme/settings/paths.py
Normal file
12
vergabe_teilnahme/settings/paths.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import re
|
||||
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
|
||||
|
||||
def application_path(value):
|
||||
"""A deployment-owned tenant path, never a value taken from request headers."""
|
||||
if value in ('', '/'):
|
||||
return ''
|
||||
if not re.fullmatch(r'/[a-z0-9]+(?:-[a-z0-9]+)*', value):
|
||||
raise ImproperlyConfigured('APP_BASE_PATH must be empty or /lowercase-tenant-slug')
|
||||
return value
|
||||
Loading…
Add table
Add a link
Reference in a new issue