cannot access local variable 'module_id' where it is not associated with a value
Request Method: | GET |
---|---|
Request URL: | http://www.cyfinex.com/courses/certificate-1-in-beers.html/ |
Django Version: | 4.1.5 |
Exception Type: | UnboundLocalError |
Exception Value: | cannot access local variable 'module_id' where it is not associated with a value |
Exception Location: | /home/production/cyfinex/course/views.py, line 365, in all_courses |
Raised during: | course.views.all_courses |
Python Executable: | /usr/bin/python3.11 |
Python Version: | 3.11.5 |
Python Path: | ['/home/production/cyfinex', '.', '/usr/local/bin', '/usr/lib/python311.zip', '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', '/usr/local/lib/python3.11/dist-packages', '/usr/lib/python3/dist-packages'] |
Server time: | Fri, 29 Mar 2024 20:12:05 +0530 |
/usr/local/lib/python3.11/dist-packages/asgiref/sync.py
, line 486, in thread_handler
parent_set = True
# Run the function
try:
# If we have an exception, run the function inside the except block
# after raising it so exc_info is correctly populated.
if exc_info[1]:
try:
raise exc_info[1]…
except BaseException:
return func(*args, **kwargs)
else:
return func(*args, **kwargs)
finally:
# Only delete the launch_map parent if we set it, otherwise it is
Variable | Value |
---|---|
args | (functools.partial(<function response_for_exception at 0x7f1c26aa1ee0>, <ASGIRequest: GET '/courses/certificate-1-in-beers.html/'>, UnboundLocalError("cannot access local variable 'module_id' where it is not associated with a value")),) |
current_thread | <Thread(asyncio_0, started 139758286132992)> |
exc_info | (<class 'UnboundLocalError'>, UnboundLocalError("cannot access local variable 'module_id' where it is not associated with a value"), <traceback object at 0x7f1c1fe48300>) |
func | <built-in method run of _contextvars.Context object at 0x7f1c1fd92100> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
parent_set | True |
self | <asgiref.sync.SyncToAsync object at 0x7f1c1fe4a6d0> |
source_task | <Task pending name='Task-91649' coro=<AsyncToSync.main_wrap() running at /usr/local/lib/python3.11/dist-packages/asgiref/sync.py:306> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.11/asyncio/futures.py:387, Task.task_wakeup()]> cb=[_run_until_complete_cb() at /usr/lib/python3.11/asyncio/base_events.py:180]> |
/usr/local/lib/python3.11/dist-packages/django/core/handlers/exception.py
, line 42, in inner
can rely on getting a response instead of an exception.
"""
if asyncio.iscoroutinefunction(get_response):
@wraps(get_response)
async def inner(request):
try:
response = await get_response(request)…
except Exception as exc:
response = await sync_to_async(
response_for_exception, thread_sensitive=False
)(request, exc)
return response
Variable | Value |
---|---|
exc | UnboundLocalError("cannot access local variable 'module_id' where it is not associated with a value") |
get_response | <bound method BaseHandler._get_response_async of <django.core.handlers.asgi.ASGIHandler object at 0x7f1c26f3b210>> |
request | <ASGIRequest: GET '/courses/certificate-1-in-beers.html/'> |
/usr/local/lib/python3.11/dist-packages/asgiref/sync.py
, line 486, in thread_handler
parent_set = True
# Run the function
try:
# If we have an exception, run the function inside the except block
# after raising it so exc_info is correctly populated.
if exc_info[1]:
try:
raise exc_info[1]…
except BaseException:
return func(*args, **kwargs)
else:
return func(*args, **kwargs)
finally:
# Only delete the launch_map parent if we set it, otherwise it is
Variable | Value |
---|---|
args | (functools.partial(<bound method BaseHandler.process_exception_by_middleware of <django.core.handlers.asgi.ASGIHandler object at 0x7f1c26f3b210>>, UnboundLocalError("cannot access local variable 'module_id' where it is not associated with a value"), <ASGIRequest: GET '/courses/certificate-1-in-beers.html/'>),) |
current_thread | <Thread(ThreadPoolExecutor-45180_0, started 139758747502336)> |
exc_info | (<class 'UnboundLocalError'>, UnboundLocalError("cannot access local variable 'module_id' where it is not associated with a value"), <traceback object at 0x7f1c1fe4b000>) |
func | <built-in method run of _contextvars.Context object at 0x7f1c1fde9480> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
parent_set | False |
self | <asgiref.sync.SyncToAsync object at 0x7f1c1fe480d0> |
source_task | <Task pending name='Task-91649' coro=<AsyncToSync.main_wrap() running at /usr/local/lib/python3.11/dist-packages/asgiref/sync.py:306> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.11/asyncio/futures.py:387, Task.task_wakeup()]> cb=[_run_until_complete_cb() at /usr/lib/python3.11/asyncio/base_events.py:180]> |
/usr/local/lib/python3.11/dist-packages/django/core/handlers/base.py
, line 253, in _get_response_async
wrapped_callback = self.make_view_atomic(callback)
# If it is a synchronous view, run it in a subthread
if not asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = sync_to_async(
wrapped_callback, thread_sensitive=True
)
try:
response = await wrapped_callback(…
request, *callback_args, **callback_kwargs
)
except Exception as e:
response = await sync_to_async(
self.process_exception_by_middleware,
thread_sensitive=True,
Variable | Value |
---|---|
callback | <function all_courses at 0x7f1c24d676a0> |
callback_args | () |
callback_kwargs | {'special_id': 'certificate-1-in-beers.html'} |
middleware_method | <asgiref.sync.SyncToAsync object at 0x7f1c266eead0> |
request | <ASGIRequest: GET '/courses/certificate-1-in-beers.html/'> |
response | None |
self | <django.core.handlers.asgi.ASGIHandler object at 0x7f1c26f3b210> |
wrapped_callback | <asgiref.sync.SyncToAsync object at 0x7f1c1fb352d0> |
/usr/local/lib/python3.11/dist-packages/asgiref/sync.py
, line 448, in __call__
self.get_current_task(),
sys.exc_info(),
func,
*args,
**kwargs,
),
)
ret = await asyncio.wait_for(future, timeout=None)…
finally:
_restore_context(context)
if self.deadlock_context:
self.deadlock_context.set(False)
Variable | Value |
---|---|
args | (functools.partial(<function all_courses at 0x7f1c24d676a0>, <ASGIRequest: GET '/courses/certificate-1-in-beers.html/'>, special_id='certificate-1-in-beers.html'),) |
child | functools.partial(<function all_courses at 0x7f1c24d676a0>, <ASGIRequest: GET '/courses/certificate-1-in-beers.html/'>, special_id='certificate-1-in-beers.html') |
context | <_contextvars.Context object at 0x7f1c2409ee00> |
executor | <asgiref.current_thread_executor.CurrentThreadExecutor object at 0x7f1c1fb360d0> |
func | <built-in method run of _contextvars.Context object at 0x7f1c2409ee00> |
future | <Future finished exception=UnboundLocalError("cannot access local variable 'module_id' where it is not associated with a value")> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
self | <asgiref.sync.SyncToAsync object at 0x7f1c1fb352d0> |
/usr/lib/python3.11/asyncio/tasks.py
, line 442, in wait_for
If the wait is cancelled, the task is also cancelled.
This function is a coroutine.
"""
loop = events.get_running_loop()
if timeout is None:
return await fut…
if timeout <= 0:
fut = ensure_future(fut, loop=loop)
if fut.done():
return fut.result()
Variable | Value |
---|---|
fut | <Future finished exception=UnboundLocalError("cannot access local variable 'module_id' where it is not associated with a value")> |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
timeout | None |
/usr/local/lib/python3.11/dist-packages/asgiref/current_thread_executor.py
, line 22, in run
self.args = args
self.kwargs = kwargs
def run(self):
if not self.future.set_running_or_notify_cancel():
return
try:
result = self.fn(*self.args, **self.kwargs)…
except BaseException as exc:
self.future.set_exception(exc)
# Break a reference cycle with the exception 'exc'
self = None
else:
self.future.set_result(result)
Variable | Value |
---|---|
self | None |
/usr/local/lib/python3.11/dist-packages/asgiref/sync.py
, line 490, in thread_handler
# after raising it so exc_info is correctly populated.
if exc_info[1]:
try:
raise exc_info[1]
except BaseException:
return func(*args, **kwargs)
else:
return func(*args, **kwargs)…
finally:
# Only delete the launch_map parent if we set it, otherwise it is
# from someone else.
if parent_set:
del self.launch_map[current_thread]
Variable | Value |
---|---|
args | (functools.partial(<function all_courses at 0x7f1c24d676a0>, <ASGIRequest: GET '/courses/certificate-1-in-beers.html/'>, special_id='certificate-1-in-beers.html'),) |
current_thread | <Thread(ThreadPoolExecutor-45180_0, started 139758747502336)> |
exc_info | (None, None, None) |
func | <built-in method run of _contextvars.Context object at 0x7f1c2409ee00> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
parent_set | False |
self | <asgiref.sync.SyncToAsync object at 0x7f1c1fb352d0> |
source_task | <Task pending name='Task-91649' coro=<AsyncToSync.main_wrap() running at /usr/local/lib/python3.11/dist-packages/asgiref/sync.py:306> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.11/asyncio/futures.py:387, Task.task_wakeup()]> cb=[_run_until_complete_cb() at /usr/lib/python3.11/asyncio/base_events.py:180]> |
/usr/local/lib/python3.11/dist-packages/django/views/decorators/csrf.py
, line 54, in wrapped_view
def csrf_exempt(view_func):
"""Mark a view function as being exempt from the CSRF view protection."""
# view_func.csrf_exempt = True would also work, but decorators are nicer
# if they don't have side effects, so return a new function.
def wrapped_view(*args, **kwargs):
return view_func(*args, **kwargs)…
wrapped_view.csrf_exempt = True
return wraps(view_func)(wrapped_view)
Variable | Value |
---|---|
args | (<ASGIRequest: GET '/courses/certificate-1-in-beers.html/'>,) |
kwargs | {'special_id': 'certificate-1-in-beers.html'} |
view_func | <function all_courses at 0x7f1c24d67600> |
/home/production/cyfinex/course/views.py
, line 365, in all_courses
except PageNotAnInteger:
pags = paginator.page(1)
except EmptyPage:
pags = paginator.page(paginator.num_pages)
return render(request, 'all_courses.html',{'rank':rank,'level': level, 'rank_thresholds': rank_thresholds,'special_id':special_id,'user_balance':user_balance,'Threads':threads,'user_base':user_base,'user_personal':user_personal,"pags":pags,"count":len(final_query),"contact":contact})
else:
final_query = Course.objects.filter(custom_user=module_id)…
page = request.GET.get('page', 1)
paginator = Paginator(final_query, 8)
try:
pags = paginator.page(page)
except PageNotAnInteger:
Variable | Value |
---|---|
request | <ASGIRequest: GET '/courses/certificate-1-in-beers.html/'> |
special_id | 'certificate-1-in-beers.html' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'upgrade' |
HTTP_HOST | 'www.cyfinex.com' |
HTTP_REFERER | 'https://www.cyfinex.com/courses/certificate-1-in-beers.html' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.209.81.51' |
HTTP_X_REAL_IP | '3.209.81.51' |
PATH_INFO | '/courses/certificate-1-in-beers.html/' |
QUERY_STRING | '' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_HOST | '127.0.0.1' |
REMOTE_PORT | 45626 |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '127.0.0.1' |
SERVER_PORT | '8000' |
wsgi.multiprocess | True |
wsgi.multithread | True |
Cyfinex.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['localhost', '127.0.0.1', '0.0.0.0', '0.0.0.0:8000', '167.71.232.96', 'cyfinex.com', 'www.cyfinex.com'] |
APPEND_SLASH | True |
ASGI_APPLICATION | 'Cyfinex.asgi.application' |
AUTHENTICATION_BACKENDS | ['accounts.backends.SODMZSModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'accounts.CustomUser' |
BASE_DIR | '/home/production/cyfinex' |
BASE_URL | 'https://www.cyfinex.com' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CHANNEL_LAYERS | {'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': {'hosts': [('0.0.0.0', 6379)]}}} |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_MASKED | 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 | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'mssql', 'HOST': '167.71.232.96', 'NAME': 'cyfinex', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '1433', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'sa'}} |
DATABASE_ROUTERS | [] |
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 | ('%d-%m-%Y', '%Y-%m-%d') |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.AutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.office365.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'sodmzs@hotmail.com' |
EMAIL_PORT | '587' |
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 | 'True' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['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' |
GOOGLE_CREDENTIALS_FILE | 'gmeet_credentials.json' |
GOOGLE_OAUTH2_CLIENT_SECRETS_JSON | '********************' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'daphne', 'django.contrib.staticfiles', 'widget_tweaks', 'django_filters', 'accounts', 'posts', 'chat', 'channels', 'jobs', 'tinymce', 'course', 'forum', 'webinar'] |
INTERNAL_IPS | [] |
KEY | '********************' |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('ms', 'Malay'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
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 |
MANAGERS | [] |
MEDIA_ROOT | '/home/production/cyfinex/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'Cyfinex.middleware.InactivityLogoutMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'Cyfinex.urls' |
SECRET | '********************' |
SECRET_KEY | '********************' |
SECRET_KEY_FALLBACKS | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
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 | 'Cyfinex.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | ['/home/production/cyfinex/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages'], 'libraries': {'filter_tags': 'posts.templatetags.filter', 'filter_tags_dict': 'accounts.templatetags.simple_tag', 'get_dictionary_items': 'accounts.templatetags.get_dictionary_items'}}}] |
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 | 'Asia/Kolkata' |
TINYMCE_DEFAULT_CONFIG | {'branding': False, 'cleanup_on_startup': True, 'contextmenu': 'formats | link image', 'custom_undo_redo_levels': 20, 'forced_root_block': False, 'menubar': False, 'plugins': '\n' ' textcolor save link image media codesample ' 'contextmenu\n' ' table lists insertdatetime nonbreaking\n' ' contextmenu directionality searchreplace ' 'visualblocks\n' ' visualchars fullscreen autolink lists charmap ' 'print hr\n' ' anchor pagebreak\n' ' ', 'selector': 'textarea', 'statusbar': False, 'theme': 'silver', 'toolbar1': '\n' ' bold italic underline | fontselect,\n' ' alignleft alignright |\n' ' aligncenter alignjustify | indent outdent | bullist ' 'numlist table |\n' ' codesample |\n' ' '} |
USE_DEPRECATED_PYTZ | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | None |
X_FRAME_OPTIONS | 'DENY' |
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.