* dev: remove len for empty comparison * dev: using in instead of multiple ors * dev: assign expression to empty variables * dev: use f-string * dev: remove list comprehension and use generators * dev: remove assert from paginator * dev: use is for identity comparison with singleton * dev: remove unnecessary else statements * dev: fix does not exists error for both project and workspace * dev: remove reimports * dev: iterate a dictionary * dev: remove unused commented code * dev: remove redefinition * dev: remove unused imports * dev: remove unused imports * dev: remove unnecessary f strings * dev: remove unused variables * dev: use literal structure to create the data structure * dev: add empty lines at the end of the file * dev: remove user middleware * dev: remove unnecessary default None
23 lines
479 B
Python
23 lines
479 B
Python
"""plane URL Configuration
|
|
|
|
"""
|
|
|
|
from django.urls import path, include, re_path
|
|
from django.views.generic import TemplateView
|
|
|
|
from django.conf import settings
|
|
|
|
|
|
urlpatterns = [
|
|
path("", TemplateView.as_view(template_name="index.html")),
|
|
path("api/", include("plane.api.urls")),
|
|
path("", include("plane.web.urls")),
|
|
]
|
|
|
|
|
|
if settings.DEBUG:
|
|
import debug_toolbar
|
|
|
|
urlpatterns = [
|
|
re_path(r"^__debug__/", include(debug_toolbar.urls)),
|
|
] + urlpatterns
|