Download web/server/exercise_correction/urls.py from amitesh11/pose: direct link, hf CLI and curl.
- Browser
- Download file 590 Bytes
-
https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/server/exercise_correction/urls.py
- Command line
-
hf download hf://spaces/amitesh11/pose/web/server/exercise_correction/urls.py
-
curl -L -o urls.py https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/server/exercise_correction/urls.py
590 Bytes
| from django.contrib import admin | |
| from django.urls import path, include, re_path | |
| from django.conf import settings | |
| from django.conf.urls.static import static | |
| from django.views.generic import TemplateView | |
| urlpatterns = [ | |
| path("admin/", admin.site.urls), | |
| path("api/", include("api.urls")), | |
| ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | |
| # Match all other routes for Frontend to handle | |
| urlpatterns += [ | |
| path("", TemplateView.as_view(template_name="index.html"), {"resource": ""}), | |
| path("<path:resource>", TemplateView.as_view(template_name="index.html")), | |
| ] | |