Files
ihrm/asset/apps.py
aditya singh rawat 399c6beefa Fixed the breadcrumbs for asset module (#581)
* Fixed the breadcrumbs for asset module

* Added the APP_URLS inside the ready method
2025-03-12 16:40:32 +05:30

34 lines
851 B
Python

"""
Module: apps.py
Description: Configuration for the 'asset' app.
"""
from django.apps import AppConfig
class AssetConfig(AppConfig):
"""
Class: AssetConfig
Description: Configuration class for the 'asset' app.
Attributes:
default_auto_field (str): Default auto-generated field type for primary keys.
name (str): Name of the app.
"""
default_auto_field = "django.db.models.BigAutoField"
name = "asset"
def ready(self):
from django.urls import include, path
from horilla.horilla_settings import APPS
from horilla.urls import urlpatterns
from horilla.horilla_settings import APP_URLS
APPS.append("asset")
urlpatterns.append(
path("asset/", include("asset.urls")),
)
APP_URLS.append("asset.urls")
super().ready()