bfd67241c4
- ad_connector: restrict provisioning to office employees (user_location_type='office') in sync service, signals and command; disable AD account on transfer out of office, re-enable on return - ad_connector: /ad-mapping/ page (staff only) — match office employees to AD accounts with suggestions by email/login/full name, link/unlink/ create actions, list of unmatched domain accounts; sidebar nav item - core: auto-rebuild treenode Directory tree (_path/_depth) after import-export imports and post_migrate; "rebuild tree" button in DirectoryAdmin and rebuild_directory_tree management command Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
49 lines
2.1 KiB
Python
49 lines
2.1 KiB
Python
"""
|
|
URL configuration for acore project.
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
https://docs.djangoproject.com/en/6.0/topics/http/urls/
|
|
Examples:
|
|
Function views
|
|
1. Add an import: from my_app import views
|
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
Class-based views
|
|
1. Add an import: from other_app.views import Home
|
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
Including another URLconf
|
|
1. Import the include() function: from django.urls import include, path
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
"""
|
|
from django.contrib import admin
|
|
from django.urls import path, include
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
|
from core import views
|
|
|
|
urlpatterns = [
|
|
path('admin/', admin.site.urls),
|
|
path('api/attendance/', include('apps.visit_manager.api.urls')),
|
|
path('', include('apps.employees.urls')),
|
|
path('', include('apps.ad_connector.urls')),
|
|
path('', views.index_view, name='index'),
|
|
path('accounts/login/', views.login_view, name='login'),
|
|
path('login/', views.login_view, name='login'),
|
|
path('logout/', views.logout_view, name='logout'),
|
|
path('dashboard/', views.dashboard_view, name='dashboard'),
|
|
path('employees/', views.employees_view, name='employees'),
|
|
path('pharmacies/', views.pharmacies_view, name='pharmacies'),
|
|
path('calendar/', views.calendar_view, name='calendar'),
|
|
path('timetrack/', views.timetrack_view, name='timetrack'),
|
|
path('reports/', views.reports_view, name='reports'),
|
|
path('documents/', views.documents_view, name='documents'),
|
|
path('recruiting/', views.recruiting_view, name='recruiting'),
|
|
path('structure/', views.structure_view, name='structure'),
|
|
path('settings/', views.settings_view, name='settings'),
|
|
path('modal-add-employee/', views.modal_add_employee_view, name='modal_add_employee'),
|
|
]
|
|
|
|
if settings.DEBUG:
|
|
urlpatterns += staticfiles_urlpatterns()
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|