mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
30 lines
752 B
Python
30 lines
752 B
Python
"""plane URL Configuration
|
|
|
|
"""
|
|
|
|
# from django.contrib import admin
|
|
from django.urls import path
|
|
from django.views.generic import TemplateView
|
|
|
|
from django.conf import settings
|
|
from django.conf.urls import include, url
|
|
|
|
# from django.conf.urls.static import static
|
|
|
|
urlpatterns = [
|
|
# path("admin/", admin.site.urls),
|
|
path("", TemplateView.as_view(template_name="index.html")),
|
|
path("api/", include("plane.api.urls")),
|
|
path("", include("plane.web.urls")),
|
|
]
|
|
# + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
|
# + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
|
|
|
|
|
if settings.DEBUG:
|
|
import debug_toolbar
|
|
|
|
urlpatterns = [
|
|
url(r"^__debug__/", include(debug_toolbar.urls)),
|
|
] + urlpatterns
|