2023-08-21 17:25:49 +05:30
|
|
|
"""
|
|
|
|
|
Module: apps.py
|
|
|
|
|
Description: Configuration for the 'asset' app.
|
|
|
|
|
"""
|
2024-03-10 19:37:46 +05:30
|
|
|
|
2023-05-10 15:06:57 +05:30
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AssetConfig(AppConfig):
|
2023-08-21 17:25:49 +05:30
|
|
|
"""
|
|
|
|
|
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"
|
2024-08-05 14:22:44 +05:30
|
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
|
from django.urls import include, path
|
|
|
|
|
|
|
|
|
|
from horilla.urls import urlpatterns
|
|
|
|
|
|
|
|
|
|
urlpatterns.append(
|
|
|
|
|
path("asset/", include("asset.urls")),
|
|
|
|
|
)
|
|
|
|
|
super().ready()
|