2024-05-30 11:06:23 +05:30
|
|
|
"""
|
|
|
|
|
Django application configuration for the biometric app.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
from django.apps import AppConfig
|
2025-11-11 13:01:04 +05:30
|
|
|
from django.conf import settings
|
2024-05-30 11:06:23 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
class BiometricConfig(AppConfig):
|
|
|
|
|
"""
|
|
|
|
|
This class defines the configuration for the biometric Django app. It sets the
|
|
|
|
|
default auto field to use a BigAutoField for model primary keys.
|
|
|
|
|
|
|
|
|
|
Attributes:
|
|
|
|
|
default_auto_field (str): The default auto field to use for model primary keys.
|
|
|
|
|
name (str): The name of the Django app, which is 'biometric'.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
|
|
|
name = "biometric"
|
2024-05-31 09:11:29 +05:30
|
|
|
|
2024-05-30 11:06:23 +05:30
|
|
|
def ready(self):
|
|
|
|
|
from django.urls import include, path
|
2024-05-31 09:11:29 +05:30
|
|
|
|
2024-05-30 11:06:23 +05:30
|
|
|
from horilla.urls import urlpatterns
|
|
|
|
|
|
2025-11-11 13:01:04 +05:30
|
|
|
settings.APPS.append("biometric")
|
2024-05-30 11:06:23 +05:30
|
|
|
urlpatterns.append(
|
|
|
|
|
path("biometric/", include("biometric.urls")),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
from biometric import sidebar
|
2024-05-31 09:11:29 +05:30
|
|
|
|
2024-05-30 11:06:23 +05:30
|
|
|
super().ready()
|