Point frontend at backend on port 9001

8000/9000 were occupied by other local services; use 9001.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Your Name 2026-06-29 02:01:06 -04:00
parent 20cd3cc6e3
commit 0a842c8852
2 changed files with 4 additions and 4 deletions

View file

@ -17,10 +17,10 @@ python -m venv .venv && .venv/bin/pip install -r requirements.txt
.venv/bin/python manage.py migrate
DJANGO_SUPERUSER_PASSWORD=admin .venv/bin/python manage.py createsuperuser --noinput --username admin --email admin@example.com
.venv/bin/python manage.py seed_demo # demo project from tl/.../one_two_three.otio
.venv/bin/python manage.py runserver
.venv/bin/python manage.py runserver 9001
```
Admin: <http://127.0.0.1:8000/admin/> (admin / admin). Upload OTIO and inspect
Admin: <http://127.0.0.1:9001/admin/> (admin / admin). Upload OTIO and inspect
the scene JSON there.
### API (session auth; 401 if not logged in)

View file

@ -1,11 +1,11 @@
(ns tl.api
"Thin fetch wrapper around the Django backend. Functions dispatch re-frame
events on completion (qualified keywords, to avoid a require cycle with
tl.events). Same host as the page, port 8000, with the session cookie."
tl.events). Same host as the page, port 9001, with the session cookie."
(:require [re-frame.core :as rf]))
(def base
(str (.. js/window -location -protocol) "//" (.. js/window -location -hostname) ":8000"))
(str (.. js/window -location -protocol) "//" (.. js/window -location -hostname) ":9001"))
(defn- ->clj [x] (js->clj x :keywordize-keys true))