devdb.surigaocity.gov.ph Open in urlscan Pro
120.28.194.48  Public Scan

URL: https://devdb.surigaocity.gov.ph/
Submission: On June 01 via api from US — Scanned from DE

Form analysis 1 forms found in the DOM

Name: pasteformPOST http://dpaste.com/

<form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">
  <div id="pastebinTraceback" class="pastebin" style="display: none;">
    <input type="hidden" name="language" value="PythonConsole">
    <input type="hidden" name="title" value="DisallowedHost at /">
    <input type="hidden" name="source" value="Django Dpaste Agent">
    <input type="hidden" name="poster" value="Django">
    <textarea name="content" id="traceback_area" cols="140" rows="25">Environment:


Request Method: GET
Request URL: http://devdb.surigaocity.gov.ph/

Django Version: 3.1
Python Version: 3.9.7
Installed Applications:
['channels',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.sites',
 'django_filters',
 'corsheaders',
 'rest_framework',
 'rest_framework.authtoken',
 'knox',
 'abc_app',
 'account_app',
 'assistance_app',
 'web_app',
 'jobnet_app',
 'events',
 'docsms_app',
 'hrms_app',
 'profile_app',
 'rptass_app',
 'sms_app',
 'system_app',
 'public_scout_app',
 'commservice_app',
 'sos_app',
 'queue_app',
 'unit2_app',
 'treebeard',
 'django_summernote',
 'django_extensions',
 'phonenumber_field',
 'sslserver',
 'rest_framework_swagger',
 'celery']
Installed Middleware:
['django.middleware.csrf.CsrfViewMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'corsheaders.middleware.CorsMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback (most recent call last):
  File "/home/backend/system-requirements/lib/python3.9/site-packages/asgiref/sync.py", line 330, in thread_handler
    raise exc_info[1]
  File "/home/backend/system-requirements/lib/python3.9/site-packages/django/core/handlers/exception.py", line 38, in inner
    response = await get_response(request)
  File "/home/backend/system-requirements/lib/python3.9/site-packages/django/utils/deprecation.py", line 126, in __acall__
    response = await sync_to_async(self.process_request)(request)
  File "/home/backend/system-requirements/lib/python3.9/site-packages/asgiref/sync.py", line 296, in __call__
    ret = await asyncio.wait_for(future, timeout=None)
  File "/usr/local/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
    return await fut
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/backend/system-requirements/lib/python3.9/site-packages/asgiref/sync.py", line 334, in thread_handler
    return func(*args, **kwargs)
  File "/home/backend/system-requirements/lib/python3.9/site-packages/django/middleware/common.py", line 48, in process_request
    host = request.get_host()
  File "/home/backend/system-requirements/lib/python3.9/site-packages/django/http/request.py", line 137, in get_host
    raise DisallowedHost(msg)

Exception Type: DisallowedHost at /
Exception Value: Invalid HTTP_HOST header: 'devdb.surigaocity.gov.ph'. You may need to add 'devdb.surigaocity.gov.ph' to ALLOWED_HOSTS.
</textarea>
    <br><br>
    <input type="submit" value="Share this traceback on a public website">
  </div>
</form>

Text Content

DISALLOWEDHOST AT /

Invalid HTTP_HOST header: 'devdb.surigaocity.gov.ph'. You may need to add 'devdb.surigaocity.gov.ph' to ALLOWED_HOSTS.

Request Method: GET Request URL: http://devdb.surigaocity.gov.ph/ Django
Version: 3.1 Exception Type: DisallowedHost Exception Value:

Invalid HTTP_HOST header: 'devdb.surigaocity.gov.ph'. You may need to add 'devdb.surigaocity.gov.ph' to ALLOWED_HOSTS.

Exception Location:
/home/backend/system-requirements/lib/python3.9/site-packages/django/http/request.py,
line 137, in get_host Python Executable:
/home/backend/system-requirements/bin/python3.9 Python Version: 3.9.7 Python
Path:

['/home/backend/backend.system.gov.ph/backend',
 '/home/backend/system-requirements/bin',
 '/home/backend/backend.system.gov.ph/backend',
 '/usr/local/lib/python39.zip',
 '/usr/local/lib/python3.9',
 '/usr/local/lib/python3.9/lib-dynload',
 '/home/backend/system-requirements/lib/python3.9/site-packages']

Server time: Sat, 01 Jun 2024 08:33:28 +0000


TRACEBACK SWITCH TO COPY-AND-PASTE VIEW

 * /home/backend/system-requirements/lib/python3.9/site-packages/asgiref/sync.py,
   line 330, in thread_handler
   
    323.             parent_set = True
   
    324.         # Run the function
   
    325.         try:
   
    326.             # If we have an exception, run the function inside the except block
   
    327.             # after raising it so exc_info is correctly populated.
   
    328.             if exc_info[1]:
   
    329.                 try:
   
    330.                     raise exc_info[1]
         
         …
   
    331.                 except:
   
    332.                     return func(*args, **kwargs)
   
    333.             else:
   
    334.                 return func(*args, **kwargs)
   
    335.         finally:
   
    336.             # Only delete the launch_map parent if we set it, otherwise it is
   
   ▶ Local vars
   
   Variable Value args
   
   (functools.partial(<function response_for_exception at 0x7f29cbbcfe50>, <ASGIRequest: GET '/'>, DisallowedHost("Invalid HTTP_HOST header: 'devdb.surigaocity.gov.ph'. You may need to add 'devdb.surigaocity.gov.ph' to ALLOWED_HOSTS.")),)
   
   current_thread
   
   <Thread(asyncio_0, started 139817390171840)>
   
   exc_info
   
   (<class 'django.core.exceptions.DisallowedHost'>,
    DisallowedHost("Invalid HTTP_HOST header: 'devdb.surigaocity.gov.ph'. You may need to add 'devdb.surigaocity.gov.ph' to ALLOWED_HOSTS."),
    <traceback object at 0x7f29b6288440>)
   
   func
   
   <built-in method run of Context object at 0x7f29b6288b40>
   
   kwargs
   
   {}
   
   loop
   
   <_UnixSelectorEventLoop running=True closed=False debug=False>
   
   parent_set
   
   True
   
   self
   
   <asgiref.sync.SyncToAsync object at 0x7f29b6268190>
   
   source_task
   
   <Task pending name='Task-3358' coro=<RequestResponseCycle.run_asgi() running at /home/backend/system-requirements/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py:407> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.9/asyncio/futures.py:384, <TaskWakeupMethWrapper object at 0x7f29b612aca0>()]> cb=[set.discard()]>

 * /home/backend/system-requirements/lib/python3.9/site-packages/django/core/handlers/exception.py,
   line 38, in inner
   
    31.     no middleware leaks an exception and that the next middleware in the stack
   
    32.     can rely on getting a response instead of an exception.
   
    33.     """
   
    34.     if asyncio.iscoroutinefunction(get_response):
   
    35.         @wraps(get_response)
   
    36.         async def inner(request):
   
    37.             try:
   
    38.                 response = await get_response(request)
        
        …
   
    39.             except Exception as exc:
   
    40.                 response = await sync_to_async(response_for_exception)(request, exc)
   
    41.             return response
   
    42.         return inner
   
    43.     else:
   
    44.         @wraps(get_response)
   
   ▶ Local vars
   
   Variable Value exc
   
   DisallowedHost("Invalid HTTP_HOST header: 'devdb.surigaocity.gov.ph'. You may need to add 'devdb.surigaocity.gov.ph' to ALLOWED_HOSTS.")
   
   get_response
   
   <django.middleware.common.CommonMiddleware object at 0x7f29c7b86d60>
   
   request
   
   <ASGIRequest: GET '/'>

 * /home/backend/system-requirements/lib/python3.9/site-packages/django/utils/deprecation.py,
   line 126, in __acall__
   
    119.     async def __acall__(self, request):
   
    120.         """
   
    121.         Async version of __call__ that is swapped in when an async request
   
    122.         is running.
   
    123.         """
   
    124.         response = None
   
    125.         if hasattr(self, 'process_request'):
   
    126.             response = await sync_to_async(self.process_request)(request)
         
         …
   
    127.         response = response or await self.get_response(request)
   
    128.         if hasattr(self, 'process_response'):
   
    129.             response = await sync_to_async(self.process_response)(request, response)
   
    130.         return response
   
    131. 
   
    132.     def _get_response_none_deprecation(self, get_response):
   
   ▶ Local vars
   
   Variable Value request
   
   <ASGIRequest: GET '/'>
   
   response
   
   None
   
   self
   
   <django.middleware.common.CommonMiddleware object at 0x7f29c7b86d60>

 * /home/backend/system-requirements/lib/python3.9/site-packages/asgiref/sync.py,
   line 296, in __call__
   
    289.                 self.get_current_task(),
   
    290.                 sys.exc_info(),
   
    291.                 func,
   
    292.                 *args,
   
    293.                 **kwargs
   
    294.             ),
   
    295.         )
   
    296.         ret = await asyncio.wait_for(future, timeout=None)
         
         …
   
    297. 
   
    298.         if contextvars is not None:
   
    299.             _restore_context(context)
   
    300. 
   
    301.         return ret
   
    302. 
   
   ▶ Local vars
   
   Variable Value args
   
   (functools.partial(<bound method CommonMiddleware.process_request of <django.middleware.common.CommonMiddleware object at 0x7f29c7b86d60>>, <ASGIRequest: GET '/'>),)
   
   child
   
   functools.partial(<bound method CommonMiddleware.process_request of <django.middleware.common.CommonMiddleware object at 0x7f29c7b86d60>>, <ASGIRequest: GET '/'>)
   
   context
   
   <Context object at 0x7f29b6525940>
   
   executor
   
   None
   
   func
   
   <built-in method run of Context object at 0x7f29b6525940>
   
   future
   
   <Future finished exception=DisallowedHost("Invalid HTTP_HOST header: 'devdb.surigaocity.gov.ph'. You may need to add 'devdb.surigaocity.gov.ph' to ALLOWED_HOSTS.")>
   
   kwargs
   
   {}
   
   loop
   
   <_UnixSelectorEventLoop running=True closed=False debug=False>
   
   self
   
   <asgiref.sync.SyncToAsync object at 0x7f29b6268490>

 * /usr/local/lib/python3.9/asyncio/tasks.py, line 442, in wait_for
   
    435.         loop = events.get_running_loop()
   
    436.     else:
   
    437.         warnings.warn("The loop argument is deprecated since Python 3.8, "
   
    438.                       "and scheduled for removal in Python 3.10.",
   
    439.                       DeprecationWarning, stacklevel=2)
   
    440. 
   
    441.     if timeout is None:
   
    442.         return await fut
         
         …
   
    443. 
   
    444.     if timeout <= 0:
   
    445.         fut = ensure_future(fut, loop=loop)
   
    446. 
   
    447.         if fut.done():
   
    448.             return fut.result()
   
   ▶ Local vars
   
   Variable Value fut
   
   <Future finished exception=DisallowedHost("Invalid HTTP_HOST header: 'devdb.surigaocity.gov.ph'. You may need to add 'devdb.surigaocity.gov.ph' to ALLOWED_HOSTS.")>
   
   loop
   
   <_UnixSelectorEventLoop running=True closed=False debug=False>
   
   timeout
   
   None

 * /usr/local/lib/python3.9/concurrent/futures/thread.py, line 52, in run
   
    45.         self.kwargs = kwargs
   
    46. 
   
    47.     def run(self):
   
    48.         if not self.future.set_running_or_notify_cancel():
   
    49.             return
   
    50. 
   
    51.         try:
   
    52.             result = self.fn(*self.args, **self.kwargs)
        
        …
   
    53.         except BaseException as exc:
   
    54.             self.future.set_exception(exc)
   
    55.             # Break a reference cycle with the exception 'exc'
   
    56.             self = None
   
    57.         else:
   
    58.             self.future.set_result(result)
   
   ▶ Local vars
   
   Variable Value self
   
   None

 * /home/backend/system-requirements/lib/python3.9/site-packages/asgiref/sync.py,
   line 334, in thread_handler
   
    327.             # after raising it so exc_info is correctly populated.
   
    328.             if exc_info[1]:
   
    329.                 try:
   
    330.                     raise exc_info[1]
   
    331.                 except:
   
    332.                     return func(*args, **kwargs)
   
    333.             else:
   
    334.                 return func(*args, **kwargs)
         
         …
   
    335.         finally:
   
    336.             # Only delete the launch_map parent if we set it, otherwise it is
   
    337.             # from someone else.
   
    338.             if parent_set:
   
    339.                 del self.launch_map[current_thread]
   
    340. 
   
   ▶ Local vars
   
   Variable Value args
   
   (functools.partial(<bound method CommonMiddleware.process_request of <django.middleware.common.CommonMiddleware object at 0x7f29c7b86d60>>, <ASGIRequest: GET '/'>),)
   
   current_thread
   
   <Thread(asyncio_1, started 139817381779136)>
   
   exc_info
   
   (None, None, None)
   
   func
   
   <built-in method run of Context object at 0x7f29b6525940>
   
   kwargs
   
   {}
   
   loop
   
   <_UnixSelectorEventLoop running=True closed=False debug=False>
   
   parent_set
   
   True
   
   self
   
   <asgiref.sync.SyncToAsync object at 0x7f29b6268490>
   
   source_task
   
   <Task pending name='Task-3358' coro=<RequestResponseCycle.run_asgi() running at /home/backend/system-requirements/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py:407> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.9/asyncio/futures.py:384, <TaskWakeupMethWrapper object at 0x7f29b612aca0>()]> cb=[set.discard()]>

 * /home/backend/system-requirements/lib/python3.9/site-packages/django/middleware/common.py,
   line 48, in process_request
   
    41.         user_agent = request.META.get('HTTP_USER_AGENT')
   
    42.         if user_agent is not None:
   
    43.             for user_agent_regex in settings.DISALLOWED_USER_AGENTS:
   
    44.                 if user_agent_regex.search(user_agent):
   
    45.                     raise PermissionDenied('Forbidden user agent')
   
    46. 
   
    47.         # Check for a redirect based on settings.PREPEND_WWW
   
    48.         host = request.get_host()
        
        …
   
    49.         must_prepend = settings.PREPEND_WWW and host and not host.startswith('www.')
   
    50.         redirect_url = ('%s://www.%s' % (request.scheme, host)) if must_prepend else ''
   
    51. 
   
    52.         # Check if a slash should be appended
   
    53.         if self.should_redirect_with_slash(request):
   
    54.             path = self.get_full_path_with_slash(request)
   
   ▶ Local vars
   
   Variable Value request
   
   <ASGIRequest: GET '/'>
   
   self
   
   <django.middleware.common.CommonMiddleware object at 0x7f29c7b86d60>
   
   user_agent
   
   ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like '
    'Gecko) Chrome/125.0.0.0 Safari/537.36')

 * /home/backend/system-requirements/lib/python3.9/site-packages/django/http/request.py,
   line 137, in get_host
   
    130.             return host
   
    131.         else:
   
    132.             msg = "Invalid HTTP_HOST header: %r." % host
   
    133.             if domain:
   
    134.                 msg += " You may need to add %r to ALLOWED_HOSTS." % domain
   
    135.             else:
   
    136.                 msg += " The domain name provided is not valid according to RFC 1034/1035."
   
    137.             raise DisallowedHost(msg)
         
         …
   
    138. 
   
    139.     def get_port(self):
   
    140.         """Return the port number for the request as a string."""
   
    141.         if settings.USE_X_FORWARDED_PORT and 'HTTP_X_FORWARDED_PORT' in self.META:
   
    142.             port = self.META['HTTP_X_FORWARDED_PORT']
   
    143.         else:
   
   ▶ Local vars
   
   Variable Value allowed_hosts
   
   ['127.0.0.1',
    'localhost',
    '192.168.200.101',
    'surigaocity.gov.ph',
    '192.168.200.2',
    '192.168.160.64',
    '192.168.160.32',
    'betafe.surigaocity.gov.ph',
    'betaapi.surigaocity.gov.ph',
    '192.168.200.105',
    '192.168.200.103',
    '192.168.200.102',
    '120.28.194.48']
   
   domain
   
   'devdb.surigaocity.gov.ph'
   
   host
   
   'devdb.surigaocity.gov.ph'
   
   msg
   
   ("Invalid HTTP_HOST header: 'devdb.surigaocity.gov.ph'. You may need to add "
    "'devdb.surigaocity.gov.ph' to ALLOWED_HOSTS.")
   
   port
   
   ''
   
   self
   
   <ASGIRequest: GET '/'>

Environment: Request Method: GET Request URL: http://devdb.surigaocity.gov.ph/
Django Version: 3.1 Python Version: 3.9.7 Installed Applications: ['channels',
'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.sites', 'django_filters',
'corsheaders', 'rest_framework', 'rest_framework.authtoken', 'knox', 'abc_app',
'account_app', 'assistance_app', 'web_app', 'jobnet_app', 'events',
'docsms_app', 'hrms_app', 'profile_app', 'rptass_app', 'sms_app', 'system_app',
'public_scout_app', 'commservice_app', 'sos_app', 'queue_app', 'unit2_app',
'treebeard', 'django_summernote', 'django_extensions', 'phonenumber_field',
'sslserver', 'rest_framework_swagger', 'celery'] Installed Middleware:
['django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware'] Traceback (most recent
call last): File
"/home/backend/system-requirements/lib/python3.9/site-packages/asgiref/sync.py",
line 330, in thread_handler raise exc_info[1] File
"/home/backend/system-requirements/lib/python3.9/site-packages/django/core/handlers/exception.py",
line 38, in inner response = await get_response(request) File
"/home/backend/system-requirements/lib/python3.9/site-packages/django/utils/deprecation.py",
line 126, in __acall__ response = await
sync_to_async(self.process_request)(request) File
"/home/backend/system-requirements/lib/python3.9/site-packages/asgiref/sync.py",
line 296, in __call__ ret = await asyncio.wait_for(future, timeout=None) File
"/usr/local/lib/python3.9/asyncio/tasks.py", line 442, in wait_for return await
fut File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in
run result = self.fn(*self.args, **self.kwargs) File
"/home/backend/system-requirements/lib/python3.9/site-packages/asgiref/sync.py",
line 334, in thread_handler return func(*args, **kwargs) File
"/home/backend/system-requirements/lib/python3.9/site-packages/django/middleware/common.py",
line 48, in process_request host = request.get_host() File
"/home/backend/system-requirements/lib/python3.9/site-packages/django/http/request.py",
line 137, in get_host raise DisallowedHost(msg) Exception Type: DisallowedHost
at / Exception Value: Invalid HTTP_HOST header: 'devdb.surigaocity.gov.ph'. You
may need to add 'devdb.surigaocity.gov.ph' to ALLOWED_HOSTS.




REQUEST INFORMATION


USER

[unable to retrieve the current user]


GET

No GET data


POST

No POST data


FILES

No FILES data


COOKIES

No cookie data


META

Variable Value HTTP_ACCEPT

'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7'

HTTP_ACCEPT_ENCODING

'gzip, deflate, br, zstd'

HTTP_ACCEPT_LANGUAGE

'de-DE,de;q=0.9;q=0.9'

HTTP_CONNECTION

'close'

HTTP_HOST

'devdb.surigaocity.gov.ph'

HTTP_PRIORITY

'u=0, i'

HTTP_SEC_CH_UA

'"Google Chrome";v="125", "Not:A-Brand";v="8", "Chromium";v="125"'

HTTP_SEC_CH_UA_MOBILE

'?0'

HTTP_SEC_CH_UA_PLATFORM

'"Win32"'

HTTP_SEC_FETCH_DEST

'document'

HTTP_SEC_FETCH_MODE

'navigate'

HTTP_SEC_FETCH_SITE

'none'

HTTP_SEC_FETCH_USER

'?1'

HTTP_UPGRADE_INSECURE_REQUESTS

'1'

HTTP_USER_AGENT

('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like '
 'Gecko) Chrome/125.0.0.0 Safari/537.36')

HTTP_X_FORWARDED_FOR

'45.141.152.77'

HTTP_X_FORWARDED_PROTO

'https'

HTTP_X_REAL_IP

'45.141.152.77'

PATH_INFO

'/'

QUERY_STRING

''

REMOTE_ADDR

'192.168.200.2'

REMOTE_HOST

'192.168.200.2'

REMOTE_PORT

25940

REQUEST_METHOD

'GET'

SCRIPT_NAME

''

SERVER_NAME

'192.168.200.101'

SERVER_PORT

'8000'

wsgi.multiprocess

True

wsgi.multithread

True


SETTINGS

USING SETTINGS MODULE CONFIG.SETTINGS

Setting Value ABSOLUTE_URL_OVERRIDES

{}

ADMINS

(('City Government of Surigao | Management Information Systems Division (MISD)',
  'mis.cpdo@surigaocity.gov.ph'),
 ('Surigao City | Human Resource and Management Office',
  'phrmo@surigaocity.gov.ph'))

ALLOWED_HOSTS

['127.0.0.1',
 'localhost',
 '192.168.200.101',
 'surigaocity.gov.ph',
 '192.168.200.2',
 '192.168.160.64',
 '192.168.160.32',
 'betafe.surigaocity.gov.ph',
 'betaapi.surigaocity.gov.ph',
 '192.168.200.105',
 '192.168.200.103',
 '192.168.200.102',
 '120.28.194.48']

APPEND_SLASH

True

ASGI_APPLICATION

'config.asgi.application'

AUTHENTICATION_BACKENDS

('account_app.utils.email.EmailOrUsernameModelBackend',
 'django.contrib.auth.backends.ModelBackend')

AUTH_HEADER_PREFIX

'Knox'

AUTH_LDAP_BIND_DN

'Manager'

AUTH_LDAP_BIND_PASSWORD

'********************'

AUTH_LDAP_SERVER_URI

'ldaps://192.168.200.4:636'

AUTH_LDAP_USER_SEARCH

<LDAPSearch: ou=employee,ou=City Government of Surigao,dc=surigaocity,dc=gov,dc=ph>

AUTH_PASSWORD_VALIDATORS

'********************'

AUTH_USER_MODEL

'auth.User'

AUTO_REFRESH

True

BASE_DIR

'/home/backend/backend.system.gov.ph/backend'

CACHES

{'default': {'BACKEND': 'django_redis.cache.RedisCache',
             'LOCATION': 'redis://127.0.0.1:6379/',
             'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}}}

CACHE_MIDDLEWARE_ALIAS

'default'

CACHE_MIDDLEWARE_KEY_PREFIX

'********************'

CACHE_MIDDLEWARE_SECONDS

600

CACHE_TTL

<object object at 0x7f29cc7d7950>

CELERY_BROKER_URL

'redis://127.0.0.1:6379'

CELERY_RESULT_BACKEND

'redis://127.0.0.1:6379'

CHANNEL_LAYERS

{'default': {'BACKEND': 'channels.layers.InMemoryChannelLayer'}}

CORS_ALLOW_CREDENTIALS

False

CORS_ALLOW_HEADERS

['accept',
 'accept-encoding',
 'authorization',
 'content-type',
 'dnt',
 'origin',
 'user-agent',
 'x-csrftoken',
 'x-requested-with',
 'Unifiedid',
 'Employeeid',
 'X-Client-Key',
 'X-Client-Secret']

CORS_ALLOW_METHODS

('OPTIONS', 'GET', 'POST', 'PATCH', 'PUT', 'DELETE')

CORS_ORIGIN_ALLOW_ALL

True

CSRF_COOKIE_AGE

31449600

CSRF_COOKIE_DOMAIN

None

CSRF_COOKIE_HTTPONLY

False

CSRF_COOKIE_NAME

'csrftoken'

CSRF_COOKIE_PATH

'/'

CSRF_COOKIE_SAMESITE

'Lax'

CSRF_COOKIE_SECURE

False

CSRF_FAILURE_VIEW

'django.views.csrf.csrf_failure'

CSRF_HEADER_NAME

'HTTP_X_CSRFTOKEN'

CSRF_TRUSTED_ORIGINS

[]

CSRF_USE_SESSIONS

False

DATABASES

{'adnsystem_master': {'ATOMIC_REQUESTS': False,
                      'AUTOCOMMIT': True,
                      'CONN_MAX_AGE': 0,
                      'ENGINE': 'django.db.backends.postgresql',
                      'HOST': '192.168.200.100',
                      'NAME': 'govph',
                      'OPTIONS': {},
                      'PASSWORD': '********************',
                      'PORT': '5432',
                      'TEST': {'CHARSET': None,
                               'COLLATION': None,
                               'MIGRATE': True,
                               'MIRROR': None,
                               'NAME': None},
                      'TIME_ZONE': None,
                      'USER': 'citysdn'},
 'adnsystem_slave': {'ATOMIC_REQUESTS': False,
                     'AUTOCOMMIT': True,
                     'CONN_MAX_AGE': 0,
                     'ENGINE': 'django.db.backends.postgresql',
                     'HOST': '192.168.200.100',
                     'NAME': 'govph',
                     'OPTIONS': {},
                     'PASSWORD': '********************',
                     'PORT': '5432',
                     'TEST': {'CHARSET': None,
                              'COLLATION': None,
                              'MIGRATE': True,
                              'MIRROR': None,
                              'NAME': None},
                     'TIME_ZONE': None,
                     'USER': 'citysdn'},
 'conn_read_profile': {'ATOMIC_REQUESTS': False,
                       'AUTOCOMMIT': True,
                       'CONN_MAX_AGE': 0,
                       'ENGINE': 'django.db.backends.postgresql',
                       'HOST': '192.168.200.100',
                       'NAME': 'govph',
                       'OPTIONS': {},
                       'PASSWORD': '********************',
                       'PORT': '5432',
                       'TEST': {'CHARSET': None,
                                'COLLATION': None,
                                'MIGRATE': True,
                                'MIRROR': None,
                                'NAME': None},
                       'TIME_ZONE': None,
                       'USER': 'citysdn'},
 'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.postgresql',
             'HOST': '192.168.200.100',
             'NAME': 'govph',
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '5432',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIGRATE': True,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': 'citysdn'},
 'website_master': {'ATOMIC_REQUESTS': False,
                    'AUTOCOMMIT': True,
                    'CONN_MAX_AGE': 0,
                    'ENGINE': 'django.db.backends.postgresql',
                    'HOST': '192.168.200.100',
                    'NAME': 'govph',
                    'OPTIONS': {},
                    'PASSWORD': '********************',
                    'PORT': '5432',
                    'TEST': {'CHARSET': None,
                             'COLLATION': None,
                             'MIGRATE': True,
                             'MIRROR': None,
                             'NAME': None},
                    'TIME_ZONE': None,
                    'USER': 'citysdn'},
 'website_slave': {'ATOMIC_REQUESTS': False,
                   'AUTOCOMMIT': True,
                   'CONN_MAX_AGE': 0,
                   'ENGINE': 'django.db.backends.postgresql',
                   'HOST': '192.168.200.100',
                   'NAME': 'govph',
                   'OPTIONS': {},
                   'PASSWORD': '********************',
                   'PORT': '5432',
                   'TEST': {'CHARSET': None,
                            'COLLATION': None,
                            'MIGRATE': True,
                            'MIRROR': None,
                            'NAME': None},
                   'TIME_ZONE': None,
                   'USER': 'citysdn'}}

DATABASE_ROUTERS

('jobnet_app.dbrouters.DBRouter.DBRouter',
 'web_app.dbrouters.DBRouter.DBRouter',
 'docsms_app.dbrouters.DBRouter.DBRouter')

DATA_DIR

'/home/backend/backend.system.gov.ph/backend'

DATA_UPLOAD_MAX_MEMORY_SIZE

2621440

DATA_UPLOAD_MAX_NUMBER_FIELDS

1000

DATETIME_FORMAT

'N j, Y, P'

DATETIME_INPUT_FORMATS

['%Y-%m-%d %H:%M:%S',
 '%Y-%m-%d %H:%M:%S.%f',
 '%Y-%m-%d %H:%M',
 '%m/%d/%Y %H:%M:%S',
 '%m/%d/%Y %H:%M:%S.%f',
 '%m/%d/%Y %H:%M',
 '%m/%d/%y %H:%M:%S',
 '%m/%d/%y %H:%M:%S.%f',
 '%m/%d/%y %H:%M']

DATE_FORMAT

'N j, Y'

DATE_INPUT_FORMATS

['%Y-%m-%d',
 '%m/%d/%Y',
 '%m/%d/%y',
 '%b %d %Y',
 '%b %d, %Y',
 '%d %b %Y',
 '%d %b, %Y',
 '%B %d %Y',
 '%B %d, %Y',
 '%d %B %Y',
 '%d %B, %Y']

DEBUG

True

DEBUG_PROPAGATE_EXCEPTIONS

False

DECIMAL_SEPARATOR

'.'

DEFAULT_CHARSET

'utf-8'

DEFAULT_EXCEPTION_REPORTER

'django.views.debug.ExceptionReporter'

DEFAULT_EXCEPTION_REPORTER_FILTER

'django.views.debug.SafeExceptionReporterFilter'

DEFAULT_FILE_STORAGE

'utils.storage.custom.sftp.SFTPStorage'

DEFAULT_FROM_EMAIL

'webmaster@localhost'

DEFAULT_HASHING_ALGORITHM

'sha256'

DEFAULT_INDEX_TABLESPACE

''

DEFAULT_TABLESPACE

''

DEFAULT_TIMEOUT

<object object at 0x7f29cc7d7950>

DISALLOWED_USER_AGENTS

[]

EMAIL_BACKEND

'django.core.mail.backends.smtp.EmailBackend'

EMAIL_HOST

'localhost'

EMAIL_HOST_PASSWORD

'********************'

EMAIL_HOST_USER

''

EMAIL_PORT

25

EMAIL_SSL_CERTFILE

None

EMAIL_SSL_KEYFILE

'********************'

EMAIL_SUBJECT_PREFIX

'[Django] '

EMAIL_TIMEOUT

None

EMAIL_USE_LOCALTIME

False

EMAIL_USE_SSL

False

EMAIL_USE_TLS

False

ENCODING

'utf-8'

FILE_CHARSET

'utf-8'

FILE_STORAGE_ROOT

'/scout/'

FILE_UPLOAD_DIRECTORY_PERMISSIONS

None

FILE_UPLOAD_HANDLERS

['django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler']

FILE_UPLOAD_MAX_MEMORY_SIZE

2621440

FILE_UPLOAD_PERMISSIONS

420

FILE_UPLOAD_TEMP_DIR

None

FIRST_DAY_OF_WEEK

0

FIXTURE_DIRS

[]

FORCE_SCRIPT_NAME

None

FORMAT_MODULE_PATH

None

FORM_RENDERER

'django.forms.renderers.DjangoTemplates'

FTP_STORAGE_LOCATION

'ftp://scout:$c0ut_DC@2024@192.168.200.104:21'

GENERIC_EMAIL_HOST_MISD

'smtp.gmail.com'

GENERIC_EMAIL_HOST_PASSWORD_MISD

'********************'

GENERIC_EMAIL_HOST_USER_MISD

'mis.cpdo@surigaocity.gov.ph'

GENERIC_EMAIL_PORT_MISD

'587'

GENERIC_EMAIL_SUBJECT_PREFIX_MISD

'City Government of Surigao | Management Information Systems Division (MISD)'

GENERIC_EMAIL_TLS_MISD

True

GENERIC_FROM_EMAIL_MISD

'mis.cpdo@surigaocity.gov.ph'

IGNORABLE_404_URLS

[]

INSTALLED_APPS

['channels',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.sites',
 'django_filters',
 'corsheaders',
 'rest_framework',
 'rest_framework.authtoken',
 'knox',
 'abc_app',
 'account_app',
 'assistance_app',
 'web_app',
 'jobnet_app',
 'events',
 'docsms_app',
 'hrms_app',
 'profile_app',
 'rptass_app',
 'sms_app',
 'system_app',
 'public_scout_app',
 'commservice_app',
 'sos_app',
 'queue_app',
 'unit2_app',
 'treebeard',
 'django_summernote',
 'django_extensions',
 'phonenumber_field',
 'sslserver',
 'rest_framework_swagger',
 'celery']

INTERNAL_IPS

[]

JOBNET_EMAIL_HOST_HRMO

'smtp.gmail.com'

JOBNET_EMAIL_HOST_PASSWORD_HRMO

'********************'

JOBNET_EMAIL_HOST_USER_HRMO

'phrmo@surigaocity.gov.ph'

JOBNET_EMAIL_PORT_HRMO

'587'

JOBNET_EMAIL_SUBJECT_PREFIX_HRMO

'Surigao City | Human Resource and Management Office'

JOBNET_EMAIL_TLS_HRMO

True

JOBNET_FROM_EMAIL_HRMO

'phrmo@surigaocity.gov.ph'

LANGUAGES

(('en', 'en'),)

LANGUAGES_BIDI

['he', 'ar', 'ar-dz', 'fa', 'ur']

LANGUAGE_CODE

'en'

LANGUAGE_COOKIE_AGE

None

LANGUAGE_COOKIE_DOMAIN

None

LANGUAGE_COOKIE_HTTPONLY

False

LANGUAGE_COOKIE_NAME

'django_language'

LANGUAGE_COOKIE_PATH

'/'

LANGUAGE_COOKIE_SAMESITE

None

LANGUAGE_COOKIE_SECURE

False

LOCALE_PATHS

[]

LOGGING

{}

LOGGING_CONFIG

'logging.config.dictConfig'

LOGIN_REDIRECT_URL

'/accounts/profile/'

LOGIN_URL

'/accounts/login/'

LOGOUT_REDIRECT_URL

None

MAILER_EMAIL_BACKEND

'django_libs.test_email_backend.EmailBackend'

MANAGERS

(('City Government of Surigao | Management Information Systems Division (MISD)',
  'mis.cpdo@surigaocity.gov.ph'),
 ('Surigao City | Human Resource and Management Office',
  'phrmo@surigaocity.gov.ph'))

MEDIA_ROOT

'/home/backend/backend.system.gov.ph/backend/media-cdn-local'

MEDIA_URL

'/media/'

MESSAGE_STORAGE

'django.contrib.messages.storage.fallback.FallbackStorage'

MIDDLEWARE

['django.middleware.csrf.CsrfViewMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'corsheaders.middleware.CorsMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']

MIGRATION_MODULES

{}

MIN_REFRESH_INTERVAL

9900

MONTH_DAY_FORMAT

'F j'

NUMBER_GROUPING

0

PASSWORD_HASHERS

'********************'

PASSWORD_RESET_TIMEOUT

'********************'

PASSWORD_RESET_TIMEOUT_DAYS

'********************'

PREPEND_WWW

False

REST_FRAMEWORK

{'DATETIME_FORMAT': 'iso-8601',
 'DEFAULT_AUTHENTICATION_CLASSES': ('knox.auth.TokenAuthentication',),
 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',
                                'rest_framework.permissions.IsAuthenticatedOrReadOnly'),
 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',
 'EXCEPTION_HANDLER': 'config.exceptions.custom.custom_exception_handler',
 'NUM_PROXIES': 0}

ROOT_URLCONF

'config.urls'

SECRET_KEY

'********************'

SECURE_BROWSER_XSS_FILTER

False

SECURE_CONTENT_TYPE_NOSNIFF

True

SECURE_HSTS_INCLUDE_SUBDOMAINS

False

SECURE_HSTS_PRELOAD

False

SECURE_HSTS_SECONDS

0

SECURE_PROXY_SSL_HEADER

None

SECURE_REDIRECT_EXEMPT

[]

SECURE_REFERRER_POLICY

'same-origin'

SECURE_SSL_HOST

None

SECURE_SSL_REDIRECT

False

SERVER_EMAIL

'root@localhost'

SESSION_CACHE_ALIAS

'default'

SESSION_COOKIE_AGE

1209600

SESSION_COOKIE_DOMAIN

None

SESSION_COOKIE_HTTPONLY

True

SESSION_COOKIE_NAME

'sessionid'

SESSION_COOKIE_PATH

'/'

SESSION_COOKIE_SAMESITE

'Lax'

SESSION_COOKIE_SECURE

False

SESSION_ENGINE

'django.contrib.sessions.backends.db'

SESSION_EXPIRE_AT_BROWSER_CLOSE

False

SESSION_FILE_PATH

None

SESSION_SAVE_EVERY_REQUEST

False

SESSION_SERIALIZER

'django.contrib.sessions.serializers.JSONSerializer'

SETTINGS_MODULE

'config.settings'

SFTP_STORAGE_HOST

'192.168.200.104'

SFTP_STORAGE_INTERACTIVE

False

SFTP_STORAGE_PARAMS

{'allow_agent': False,
 'look_for_keys': '********************',
 'password': '********************',
 'username': 'scout'}

SFTP_STORAGE_ROOT

'/scout/'

SHORT_DATETIME_FORMAT

'm/d/Y P'

SHORT_DATE_FORMAT

'm/d/Y'

SIGNING_BACKEND

'django.core.signing.TimestampSigner'

SILENCED_SYSTEM_CHECKS

['urls.W001']

SITE_ID

1

SMS_BROADCASTING_CREDENTIALS

{}

SMS_BROADCASTING_DB_PERSIST

False

STATICFILES_DIRS

['/home/backend/backend.system.gov.ph/backend/staticfiles']

STATICFILES_FINDERS

['django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder']

STATICFILES_STORAGE

'django.contrib.staticfiles.storage.StaticFilesStorage'

STATIC_ROOT

'/home/backend/backend.system.gov.ph/backend/static-cdn-local'

STATIC_URL

'/static/'

TELCOS

{}

TEMPLATES

[{'APP_DIRS': False,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': ['/home/backend/backend.system.gov.ph/backend/templates'],
  'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth',
                                     'django.contrib.messages.context_processors.messages',
                                     'django.template.context_processors.debug',
                                     'django.template.context_processors.request',
                                     'django.template.context_processors.media',
                                     'django.template.context_processors.csrf',
                                     'django.template.context_processors.tz'],
              'loaders': ['django.template.loaders.filesystem.Loader',
                          'django.template.loaders.app_directories.Loader']}}]

TEST_NON_SERIALIZED_APPS

[]

TEST_RUNNER

'django.test.runner.DiscoverRunner'

THOUSAND_SEPARATOR

','

TIME_FORMAT

'P'

TIME_INPUT_FORMATS

['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']

TIME_ZONE

'UTC'

TOKEN_LIMIT_PER_USER

'********************'

TOKEN_TTL

'********************'

USE_I18N

True

USE_L10N

True

USE_THOUSAND_SEPARATOR

False

USE_TZ

True

USE_X_FORWARDED_HOST

False

USE_X_FORWARDED_PORT

False

VALID_MERGE_DOC_EXTENSIONS

['.PDF']

VALID_MERGE_IMG_EXTENSIONS

['.JPG', '.JPEG', '.PNG']

WEBSOCKET_ALLOWED_ORIGINS

{'http://192.168.10.188:3003',
 'http://192.168.10.190:3003',
 'http://localhost:3003'}

WSGI_APPLICATION

None

X_FRAME_OPTIONS

'SAMEORIGIN'

YEAR_MONTH_FORMAT

'F Y'

You're seeing this error because you have DEBUG = True in your Django settings
file. Change that to False, and Django will display a standard page generated by
the handler for this status code.