Files
ihrm/recruitment/apps.py

35 lines
874 B
Python

"""
apps.py
"""
from django.apps import AppConfig
class RecruitmentConfig(AppConfig):
"""
AppConfig for the 'recruitment' app.
This class represents the configuration for the 'recruitment' app. It provides
the necessary settings and metadata for the app.
Attributes:
default_auto_field (str): The default auto field to use for model field IDs.
name (str): The name of the app.
"""
default_auto_field = "django.db.models.BigAutoField"
name = "recruitment"
def ready(self):
from django.urls import include, path
from horilla.horilla_settings import APPS
from horilla.urls import urlpatterns
from recruitment import signals
APPS.append("recruitment")
urlpatterns.append(
path("recruitment/", include("recruitment.urls")),
)
super().ready()