"""
Django AdminLTE2 Default URL Configuration
"""

# Third-Party Imports.
from django.conf import settings
from django.urls import path
from django.views.generic import RedirectView

# Internal Imports.
from . import views


app_name = "adminlte2_pdq"
urlpatterns = [
    # Redirects to the home page
    path(
        "",
        RedirectView.as_view(
            pattern_name=getattr(settings, "ADMINLTE2_HOME_ROUTE", "adminlte2_pdq:home"),
            permanent=False,
        ),
    ),
    # Sample pages
    path("home/", views.home, name="home"),
    path("accounts/register/", views.register, name="register"),
    path("sample_form/", views.sample_form, name="sample_form"),
    path("sample1/", views.sample1, name="sample1"),
    path("sample2/", views.sample2, name="sample2"),
    path("demo-css/", views.demo_css, name="demo-css"),
]
