Upload backend/hue_portal/urls.py with huggingface_hub
Browse files- backend/hue_portal/urls.py +14 -0
backend/hue_portal/urls.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.contrib import admin
|
| 2 |
+
from django.urls import path, include
|
| 3 |
+
from django.conf import settings
|
| 4 |
+
from django.conf.urls.static import static
|
| 5 |
+
|
| 6 |
+
urlpatterns = [
|
| 7 |
+
path("admin/", admin.site.urls),
|
| 8 |
+
path("api/", include("hue_portal.core.urls")),
|
| 9 |
+
path("api/chatbot/", include("hue_portal.chatbot.urls")),
|
| 10 |
+
]
|
| 11 |
+
|
| 12 |
+
if settings.MEDIA_ROOT:
|
| 13 |
+
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
| 14 |
+
|