setup#
- ADR.setup(collect_static: bool = False) None#
Configure Django and perform ADR initialization.
This method:
Optionally locates and imports the
envemodule for geometry.Adds the Nexus Django directory to
sys.pathand imports the serverless settings module.Builds an overrides dict and calls
django.conf.settings.configure().Runs Django migrations for all configured databases.
Runs geometry migration/update checks.
Optionally collects static files to
_static_directory.Creates a default
SessionandDataset.
- Parameters:
- collect_staticbool,
optional If
True, runcollectstaticinto_static_directory.
- collect_staticbool,
- Raises:
ImportErrorIf the Nexus Django settings could not be imported.
DatabaseMigrationErrorIf migrations fail on any database.
GeometryMigrationErrorIf geometry update checks fail.
ImproperlyConfiguredErrorIf settings or required paths are invalid.
StaticFilesCollectionErrorIf
collectstaticfails.