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:
parent
20cd3cc6e3
commit
0a842c8852
2 changed files with 4 additions and 4 deletions
|
|
@ -17,10 +17,10 @@ python -m venv .venv && .venv/bin/pip install -r requirements.txt
|
||||||
.venv/bin/python manage.py migrate
|
.venv/bin/python manage.py migrate
|
||||||
DJANGO_SUPERUSER_PASSWORD=admin .venv/bin/python manage.py createsuperuser --noinput --username admin --email admin@example.com
|
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 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.
|
the scene JSON there.
|
||||||
|
|
||||||
### API (session auth; 401 if not logged in)
|
### API (session auth; 401 if not logged in)
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
(ns tl.api
|
(ns tl.api
|
||||||
"Thin fetch wrapper around the Django backend. Functions dispatch re-frame
|
"Thin fetch wrapper around the Django backend. Functions dispatch re-frame
|
||||||
events on completion (qualified keywords, to avoid a require cycle with
|
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]))
|
(:require [re-frame.core :as rf]))
|
||||||
|
|
||||||
(def base
|
(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))
|
(defn- ->clj [x] (js->clj x :keywordize-keys true))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue