This commit is contained in:
Ross
2025-12-09 12:07:26 +00:00
parent eb95f5fa6d
commit c63d4d1585
5 changed files with 105 additions and 5 deletions
+8
View File
@@ -2,6 +2,14 @@
"""Django's command-line utility for administrative tasks."""
import os
import sys
import pathlib
# Ensure the repository root is on sys.path so top-level modules (e.g.
# `rota_generator` or `rota`) are importable when running Django from
# the `djangorota/` directory.
repo_root = pathlib.Path(__file__).resolve().parents[1]
if str(repo_root) not in sys.path:
sys.path.insert(0, str(repo_root))
def main():