""" URL configuration for config project. The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/5.2/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.shortcuts import redirect urlpatterns = [ path('', lambda request: redirect('gyber:dashboard', permanent=False), name='index'), path('admin/', admin.site.urls), # 예: 웹 주소가 'gyber/' 로 시작하면, gyber 앱의 urls.py 파일을 참조하도록 설정 # path('gyber/', include('gyber.urls')), # 다른 앱이 있다면 여기에 추가... path('', include('gyber.urls')), # 예: 루트 URL 처리 # --- OIDC 관련 URL 추가 --- # 'oidc/' 경로 아래에 mozilla-django-oidc 가 제공하는 URL 들을 포함시킴 # 예: /oidc/authenticate/, /oidc/callback/, /oidc/logout/ 등 path('oidc/', include('mozilla_django_oidc.urls')), # --- 추가 끝 --- # path('', include('gyber.urls')), # 필요하다면 루트 URL 설정 ]