Integrate With Django Computing API¶
Use this page after your computation already works locally.
The goal here is modest:
- add a route
- keep the handler thin
- pass work into a callable computation boundary
The Files That Matter¶
- computing/urls.py
- computing/api.py
- the pipeline module under
computing/
The Recommended Shape¶
- Normalize and validate only what the entry layer truly owns.
- Push real work into a task or callable boundary.
- Return a small response quickly.
This is why Local Pipeline First exists: the handler should not be where the science becomes debuggable for the first time.
Route Wiring Checklist¶
- add the route in
computing/urls.py - add the handler in
computing/api.py - call a stable computation boundary
- keep request parsing shallow
- make the next page decide whether Celery, auth, or retries need to become stricter
What Not To Do Here¶
- do not bury analytical logic inside the request handler
- do not make this the first place the computation is ever run
- do not mix publication, validation, and route parsing into one large function
Bridge To The Computing Surface¶
Once a computation has a route, it becomes part of the broader Computing API surface.
That means it should appear clearly in:
Only after this step should you continue into Add Celery / Auth / Task Integration.