Backend: POST /api/projects/<id>/script/ (owner/collaborator) saves the script FileField and returns the refreshed detail. Frontend: when a project has no script, the script pane shows a PDF file picker that uploads on selection; the returned detail carries the new URL so the pane renders it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
14 lines
423 B
Python
14 lines
423 B
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path("me/", views.me),
|
|
path("login/", views.login_view),
|
|
path("logout/", views.logout_view),
|
|
path("projects/", views.projects),
|
|
path("projects/<int:pk>/", views.project),
|
|
path("projects/<int:pk>/scene/", views.scene),
|
|
path("projects/<int:pk>/script/", views.script),
|
|
path("projects/<int:pk>/revisions/", views.revisions),
|
|
]
|