Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
django /
core /
checks /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
compatibility
[ DIR ]
drwxr-xr-x
security
[ DIR ]
drwxr-xr-x
__init__.py
994
B
-rw-r--r--
async_checks.py
403
B
-rw-r--r--
caches.py
2.49
KB
-rw-r--r--
database.py
341
B
-rw-r--r--
messages.py
2.11
KB
-rw-r--r--
model_checks.py
8.4
KB
-rw-r--r--
registry.py
3.16
KB
-rw-r--r--
templates.py
1.07
KB
-rw-r--r--
translation.py
1.93
KB
-rw-r--r--
urls.py
3.17
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : translation.py
from django.conf import settings from django.utils.translation import get_supported_language_variant from django.utils.translation.trans_real import language_code_re from . import Error, Tags, register E001 = Error( 'You have provided an invalid value for the LANGUAGE_CODE setting: {!r}.', id='translation.E001', ) E002 = Error( 'You have provided an invalid language code in the LANGUAGES setting: {!r}.', id='translation.E002', ) E003 = Error( 'You have provided an invalid language code in the LANGUAGES_BIDI setting: {!r}.', id='translation.E003', ) E004 = Error( 'You have provided a value for the LANGUAGE_CODE setting that is not in ' 'the LANGUAGES setting.', id='translation.E004', ) @register(Tags.translation) def check_setting_language_code(app_configs, **kwargs): """Error if LANGUAGE_CODE setting is invalid.""" tag = settings.LANGUAGE_CODE if not isinstance(tag, str) or not language_code_re.match(tag): return [Error(E001.msg.format(tag), id=E001.id)] return [] @register(Tags.translation) def check_setting_languages(app_configs, **kwargs): """Error if LANGUAGES setting is invalid.""" return [ Error(E002.msg.format(tag), id=E002.id) for tag, _ in settings.LANGUAGES if not isinstance(tag, str) or not language_code_re.match(tag) ] @register(Tags.translation) def check_setting_languages_bidi(app_configs, **kwargs): """Error if LANGUAGES_BIDI setting is invalid.""" return [ Error(E003.msg.format(tag), id=E003.id) for tag in settings.LANGUAGES_BIDI if not isinstance(tag, str) or not language_code_re.match(tag) ] @register(Tags.translation) def check_language_settings_consistent(app_configs, **kwargs): """Error if language settings are not consistent with each other.""" try: get_supported_language_variant(settings.LANGUAGE_CODE) except LookupError: return [E004] else: return []
Close