cursor "_django_curs_140201834904376_sync_1" does not exist
Request Method: | GET |
---|---|
Request URL: | http://bvia.icapital.biz/registrationForm/ |
Django Version: | 3.2.11 |
Exception Type: | InvalidCursorName |
Exception Value: | cursor "_django_curs_140201834904376_sync_1" does not exist |
Exception Location: | /usr/local/lib/python3.10/site-packages/django/db/models/sql/compiler.py, line 1178, in execute_sql |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.10.8 |
Python Path: | ['/app', '/usr/local/lib/python310.zip', '/usr/local/lib/python3.10', '/usr/local/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/site-packages'] |
Server time: | Tue, 19 Mar 2024 10:38:31 +0800 |
In template /app/BVIAhome/templates/homepage/registrationForm.html
, error at line 242
232 | |
---|---|
233 | <div class="row"> |
234 | <div class="col-md-6"> |
235 | <label for="{{ teamform.studentCourse.id_for_label }}"> <strong>Course <font color="red">*</font> </strong></label> |
236 | {{ teamform.studentCourse }} |
237 | {{ teamform.studentCourse.errors }} |
238 | </div> |
239 | <div class="col-md-6"> |
240 | <label for="{{ teamform.studentYearofStudy.id_for_label }}"> <strong> Year of Study <font color="red">*</font> </strong></label> |
241 | <br> |
242 | {{ teamform.studentYearofStudy }} |
243 | {{ teamform.studentYearofStudy.errors }} |
244 | </div> |
245 | </div> |
246 | |
247 | <div class="row"> |
248 | <div class="col-md-6"> |
249 | <label for="{{ teamform.studentPhone.id_for_label }}"> <strong>Phone <font color="red">*</font> </strong></label> |
250 | {{ teamform.studentPhone }} |
251 | {{ teamform.studentPhone.errors }} |
252 | </div> |
/usr/local/lib/python3.10/site-packages/django/db/backends/utils.py
, line 84, in _execute
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)…
def _executemany(self, sql, param_list, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
return self.cursor.executemany(sql, param_list)
Variable | Value |
---|---|
ignored_wrapper_args | (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f83487ab610>, 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430>}) |
params | () |
self | <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430> |
sql | ('SELECT "BVIAhome_yearofstudy"."id", "BVIAhome_yearofstudy"."yearofstudy" ' 'FROM "BVIAhome_yearofstudy"') |
/usr/local/lib/python3.10/site-packages/django/db/models/sql/compiler.py
, line 1175, in execute_sql
else:
return
if chunked_fetch:
cursor = self.connection.chunked_cursor()
else:
cursor = self.connection.cursor()
try:
cursor.execute(sql, params)…
except Exception:
# Might fail for server-side cursors (e.g. connection closed)
cursor.close()
raise
if result_type == CURSOR:
Variable | Value |
---|---|
chunk_size | 2000 |
chunked_fetch | True |
cursor | <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430> |
params | () |
result_type | 'multi' |
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7f834872c850> |
sql | ('SELECT "BVIAhome_yearofstudy"."id", "BVIAhome_yearofstudy"."yearofstudy" ' 'FROM "BVIAhome_yearofstudy"') |
/usr/local/lib/python3.10/site-packages/django/db/backends/utils.py
, line 98, in execute
class CursorDebugWrapper(CursorWrapper):
# XXX callproc isn't instrumented at this time.
def execute(self, sql, params=None):
with self.debug_sql(sql, params, use_last_executed_query=True):
return super().execute(sql, params)…
def executemany(self, sql, param_list):
with self.debug_sql(sql, param_list, many=True):
return super().executemany(sql, param_list)
@contextmanager
Variable | Value |
---|---|
__class__ | <class 'django.db.backends.utils.CursorDebugWrapper'> |
params | () |
self | <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430> |
sql | ('SELECT "BVIAhome_yearofstudy"."id", "BVIAhome_yearofstudy"."yearofstudy" ' 'FROM "BVIAhome_yearofstudy"') |
/usr/local/lib/python3.10/site-packages/django/db/backends/utils.py
, line 66, in execute
elif kparams is None:
return self.cursor.callproc(procname, params)
else:
params = params or ()
return self.cursor.callproc(procname, params, kparams)
def execute(self, sql, params=None):
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)…
def executemany(self, sql, param_list):
return self._execute_with_wrappers(sql, param_list, many=True, executor=self._executemany)
def _execute_with_wrappers(self, sql, params, many, executor):
context = {'connection': self.db, 'cursor': self}
Variable | Value |
---|---|
params | () |
self | <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430> |
sql | ('SELECT "BVIAhome_yearofstudy"."id", "BVIAhome_yearofstudy"."yearofstudy" ' 'FROM "BVIAhome_yearofstudy"') |
/usr/local/lib/python3.10/site-packages/django/db/backends/utils.py
, line 75, in _execute_with_wrappers
def executemany(self, sql, param_list):
return self._execute_with_wrappers(sql, param_list, many=True, executor=self._executemany)
def _execute_with_wrappers(self, sql, params, many, executor):
context = {'connection': self.db, 'cursor': self}
for wrapper in reversed(self.db.execute_wrappers):
executor = functools.partial(wrapper, executor)
return executor(sql, params, many, context)…
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
Variable | Value |
---|---|
context | {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f83487ab610>, 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430>} |
executor | <bound method CursorWrapper._execute of <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430>> |
many | False |
params | () |
self | <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430> |
sql | ('SELECT "BVIAhome_yearofstudy"."id", "BVIAhome_yearofstudy"."yearofstudy" ' 'FROM "BVIAhome_yearofstudy"') |
/usr/local/lib/python3.10/site-packages/django/db/backends/utils.py
, line 79, in _execute
context = {'connection': self.db, 'cursor': self}
for wrapper in reversed(self.db.execute_wrappers):
executor = functools.partial(wrapper, executor)
return executor(sql, params, many, context)
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:…
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)
Variable | Value |
---|---|
ignored_wrapper_args | (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f83487ab610>, 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430>}) |
params | () |
self | <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430> |
sql | ('SELECT "BVIAhome_yearofstudy"."id", "BVIAhome_yearofstudy"."yearofstudy" ' 'FROM "BVIAhome_yearofstudy"') |
/usr/local/lib/python3.10/site-packages/django/db/utils.py
, line 90, in __exit__
db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
if issubclass(exc_type, db_exc_type):
dj_exc_value = dj_exc_type(*exc_value.args)
# Only set the 'errors_occurred' flag for errors that may make
# the connection unusable.
if dj_exc_type not in (DataError, IntegrityError):
self.wrapper.errors_occurred = True
raise dj_exc_value.with_traceback(traceback) from exc_value…
def __call__(self, func):
# Note that we are intentionally not using @wraps here for performance
# reasons. Refs #21109.
def inner(*args, **kwargs):
with self:
Variable | Value |
---|---|
db_exc_type | <class 'psycopg2.ProgrammingError'> |
dj_exc_type | <class 'django.db.utils.ProgrammingError'> |
dj_exc_value | ProgrammingError('relation "BVIAhome_yearofstudy" does not exist\nLINE 1: ..."."id", "BVIAhome_yearofstudy"."yearofstudy" FROM "BVIAhome_...\n ^\n') |
exc_type | <class 'psycopg2.errors.UndefinedTable'> |
exc_value | UndefinedTable('relation "BVIAhome_yearofstudy" does not exist\nLINE 1: ..."."id", "BVIAhome_yearofstudy"."yearofstudy" FROM "BVIAhome_...\n ^\n') |
self | <django.db.utils.DatabaseErrorWrapper object at 0x7f834872c2b0> |
traceback | <traceback object at 0x7f8348741c40> |
/usr/local/lib/python3.10/site-packages/django/db/backends/utils.py
, line 84, in _execute
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)…
def _executemany(self, sql, param_list, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
return self.cursor.executemany(sql, param_list)
Variable | Value |
---|---|
ignored_wrapper_args | (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f83487ab610>, 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430>}) |
params | () |
self | <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430> |
sql | ('SELECT "BVIAhome_yearofstudy"."id", "BVIAhome_yearofstudy"."yearofstudy" ' 'FROM "BVIAhome_yearofstudy"') |
/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | InvalidCursorName('cursor "_django_curs_140201834904376_sync_1" does not exist\n') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f834a193b80>> |
request | <WSGIRequest: GET '/registrationForm/'> |
/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py
, line 181, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function registrationForm at 0x7f8348e98160> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f8348dab880>> |
request | <WSGIRequest: GET '/registrationForm/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f834a193b80> |
wrapped_callback | <function registrationForm at 0x7f8348e98160> |
/app/BVIAhome/views.py
, line 223, in registrationForm
else:
created_team_pk = None
note = 'Your registration has failed. Try again.'
completed = False
return render(request, 'homepage/registrationForm.html', {'completed':completed, 'created_team_pk':created_team_pk, 'teamform':filled_form, 'note':note, 'context':context})
else:
form = TeamForm()
return render(request, 'homepage/registrationForm.html', {'teamform': form, 'context':context})…
Variable | Value |
---|---|
form | <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)> |
request | <WSGIRequest: GET '/registrationForm/'> |
/usr/local/lib/python3.10/site-packages/django/shortcuts.py
, line 19, in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Return a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'context': {'ver': {'time': '1710203476'}}, 'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>} |
request | <WSGIRequest: GET '/registrationForm/'> |
status | None |
template_name | 'homepage/registrationForm.html' |
using | None |
/usr/local/lib/python3.10/site-packages/django/template/loader.py
, line 62, in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)…
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'context': {'ver': {'time': '1710203476'}}, 'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>} |
request | <WSGIRequest: GET '/registrationForm/'> |
template | <django.template.backends.django.Template object at 0x7f83487324a0> |
template_name | 'homepage/registrationForm.html' |
using | None |
/usr/local/lib/python3.10/site-packages/django/template/backends/django.py
, line 61, in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>, 'context': {'ver': {'time': '1710203476'}}}] |
request | <WSGIRequest: GET '/registrationForm/'> |
self | <django.template.backends.django.Template object at 0x7f83487324a0> |
/usr/local/lib/python3.10/site-packages/django/template/base.py
, line 170, in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>, 'context': {'ver': {'time': '1710203476'}}}] |
self | <django.template.base.Template object at 0x7f83487aa7a0> |
/usr/local/lib/python3.10/site-packages/django/template/base.py
, line 162, in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>, 'context': {'ver': {'time': '1710203476'}}}] |
self | <django.template.base.Template object at 0x7f83487aa7a0> |
/usr/local/lib/python3.10/site-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('"><strong>CONTACT US</strong></a>\n' ' </li>\n' ' \n' ' <!-- <li class="nav-item">\n' ' <div class=search-bar>\n' ' <form class="mx-4 my-auto ' 'd-inline">\n' ' <div class="row">\n' ' <input type="text" ' 'class="form-control border border-right-0" placeholder="Search.." ' 'id="searchFunction" name="search">\n' ' <button id="searchButton" ' 'type="submit"><i class="fa fa-search fa-2x" style="color: ' 'white"></i></button>\n' ' </div>\n' ' </form>\n' ' </div>\n' ' </li> -->\n' ' \n' ' </ul>\n' ' </div>\n' ' </div>\n' ' </nav>\n' ' </div> \n' ' \n' '\n' ' <div class="container-fluid" id="body-container">\n' ' <div class="container-fluid" id="section-container">\n' ' <div class="container-fluid" id="wrapper-container">\n' ' ') |
bits | ['<!-- HTML 5 -->\n<!DOCTYPE html>\n \n', '', '\n' '<!-- <html class="avada-html-layout-wide" lang="en-US" prefix="og: ' 'http://ogp.me/ns# fb: http://ogp.me/ns/fb#"> -->\n' '<html lang="en-US" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">\n' ' <head>\n' ' <!-- Initial metadata set up for the website -->\n' '\n' ' <!-- Make website support Internet Explorer Edge -->\n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge" />\n' '\n' ' <!-- Equivalent to -->\n' ' <!-- <meta http-equiv="Content-Type" content="text/html; ' 'charset=utf-8" /> -->\n' ' <!-- in HTML5 -->\n' ' <meta charset="utf-8"/>\n' '\n' ' <!-- Disable the browser from caching the website so the user sees ' 'the change every visit within short period -->\n' ' <meta http-equiv="Cache-Control" content="no-cache, no-store, ' 'must-revalidate" />\n' ' <meta http-equiv="Pragma" content="no-cache">\n' ' <meta http-equiv="Expires" content="-1">\n' '\n' ' <!-- Make website cater on all devices -->\n' ' <meta name="viewport" content="width=device-width, ' 'initial-scale=1">\n' ' \n' ' <title>REGISTRATION FORM – BVIA</title>\n' '\n' " <!-- Dont need it as we don't have to fetch DNS from Wordpress " 'anymore -->\n' " <!-- <link rel='dns-prefetch' href='//s.w.org' /> -->\n" '\n' ' <!-- RSS web feed -->\n' ' <link rel="alternate" type="application/rss+xml" title="BVIA » ' 'Feed" href="https://bvia.icapital.biz/feed/" />\n' ' <link rel="alternate" type="application/rss+xml" title="BVIA » ' 'Comments Feed" href="https://bvia.icapital.biz/comments/feed/" />\n' ' <link rel="alternate" type="application/rss+xml" title="BVIA » ' 'HOME Comments Feed" href="https://bvia.icapital.biz/home/feed/" />\n' '\n' ' <!-- Metadata about the website -->\n' ' <meta property="og:title" content="REGISTRATION FORM"/>\n' ' <meta property="og:type" content="article"/>\n' ' <meta property="og:url" ' 'content="https://bvia.icapital.biz/registration"/>\n' ' <meta property="og:site_name" content="BVIA"/>\n' ' <meta property="og:description" content="Stage 1 (Research Paper) – ' 'Submission is now closed.\n' ' Stage 2 (Presentation) – Shortlisted finalists will be presenting at ' 'Wisma MCA. \n' ' BVIA is in conjunction with our 2018/2019 Global Investor Week to ' 'become part of the audience,\n' ' kindly register at : online registration or offline registration. \n' ' Saturday, 13th April (2.00PM - 4.00PM)\n' ' Dewan San Choon, Wisma"/>\n' ' <meta property="og:image" ' 'content="https://webfiles.icapital.biz/bvia_2020/logo_small_1.png"/>\n' ' \n' ' <!-- Bootstrap library -->\n' ' <link rel="stylesheet" ' 'href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" ' 'integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" ' 'crossorigin="anonymous">\n' ' <link rel="stylesheet" type="text/css" ' 'href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" ' '/>\n' ' \n' ' <!-- Social media icon library -->\n' ' <link rel="stylesheet" ' 'href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">\n' ' \n' ' <!-- Animate on Scroll library -->\n' ' <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" ' 'rel="stylesheet">\n' '\n' ' <link rel="stylesheet" type="text/css" href="', '/static/css/registrationForm.css', '?t=', '1710203476', '">\n <link rel="stylesheet" type="text/css" href="', '/static/css/main.css', '?t=', '1710203476', '">\n' ' \n' ' </head> \n' ' \n' ' <body>\n' ' <!-- Right hand side red register button -->\n' ' <!--<a href="', '/registrationForm/', '">\n' ' <button class="btn-register"><i class="f… <trimmed 13782 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>, 'context': {'ver': {'time': '1710203476'}}}] |
node | <IfNode> |
self | [<TextNode: '<!-- HTML 5 -->\n<!DOCTYPE'>, <django.template.defaulttags.LoadNode object at 0x7f834874f460>, <TextNode: '\n<!-- <html class="avada-'>, <django.templatetags.static.StaticNode object at 0x7f834874f6d0>, <TextNode: '?t='>, <Variable Node: context.ver.time>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f834874f880>, <TextNode: '?t='>, <Variable Node: context.ver.time>, <TextNode: '">\n \n </'>, <django.template.defaulttags.URLNode object at 0x7f834874f9a0>, <TextNode: '">\n <button cl'>, <django.template.defaulttags.URLNode object at 0x7f834874fa60>, <TextNode: '">\n '>, <django.template.defaulttags.URLNode object at 0x7f834874fca0>, <TextNode: '"><strong><i class="fa fa'>, <django.template.defaulttags.URLNode object at 0x7f834874fe20>, <TextNode: '">What is BVIA?</a>\n '>, <django.template.defaulttags.URLNode object at 0x7f834874fee0>, <TextNode: '">Rules & Regulations</a>'>, <django.template.defaulttags.URLNode object at 0x7f834874fdc0>, <TextNode: '">Research Paper Guidline'>, <django.template.defaulttags.URLNode object at 0x7f834874df00>, <TextNode: '">Glossary</a>\n '>, <django.template.defaulttags.URLNode object at 0x7f8348766bc0>, <TextNode: '">FAQs</a>\n '>, <django.template.defaulttags.URLNode object at 0x7f8348765150>, <TextNode: '">About Capital Dynamics<'>, <django.template.defaulttags.URLNode object at 0x7f8348764190>, <TextNode: '">Bamboo Value Investing<'>, <django.template.defaulttags.URLNode object at 0x7f83487650c0>, <TextNode: '">Programme</a>\n '>, <django.template.defaulttags.URLNode object at 0x7f8348764370>, <TextNode: '">Prizes</a>\n '>, <django.template.defaulttags.URLNode object at 0x7f8348764490>, <TextNode: '">Judges</a>\n '>, <django.template.defaulttags.URLNode object at 0x7f8348764520>, <TextNode: '">Finalists</a>\n '>, <django.template.defaulttags.URLNode object at 0x7f8348764f10>, <TextNode: '">Gallery</a>\n '>, <django.template.defaulttags.URLNode object at 0x7f8348764790>, <TextNode: '">Winners 2019</a>\n '>, <django.template.defaulttags.URLNode object at 0x7f83487649d0>, <TextNode: '"><strong>CONTACT US</str'>, <IfNode>, <TextNode: '\n </div>\n '>, <django.templatetags.static.StaticNode object at 0x7f834872e170>, <TextNode: '?t='>, <Variable Node: ver.time>, <TextNode: '"></script>\n <!-- G'>] |
/usr/local/lib/python3.10/site-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>, 'context': {'ver': {'time': '1710203476'}}}] |
self | <IfNode> |
/usr/local/lib/python3.10/site-packages/django/template/defaulttags.py
, line 312, in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)…
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>, 'context': {'ver': {'time': '1710203476'}}}] |
match | True |
nodelist | [<TextNode: '\n \n '>, <django.template.defaulttags.URLNode object at 0x7f8348764d30>, <TextNode: '" method="POST"> \n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7f8348764d60>, <TextNode: '\n\n '>, <Variable Node: teamform.teamName.id_for_label>, <TextNode: '"> <strong>Team Name<font'>, <Variable Node: teamform.teamName>, <TextNode: '\n '>, <Variable Node: teamform.teamName.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentName.id_for_label>, <TextNode: '"> <strong>Full Name (as '>, <Variable Node: teamform.studentName>, <TextNode: '\n '>, <Variable Node: teamform.studentName.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentPID.id_for_label>, <TextNode: '"> <strong>Personal ID/Pa'>, <Variable Node: teamform.studentPID>, <TextNode: '\n '>, <Variable Node: teamform.studentPID.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentSID.id_for_label>, <TextNode: '"> <strong>Student ID <fo'>, <Variable Node: teamform.studentSID>, <TextNode: '\n '>, <Variable Node: teamform.studentSID.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentUni.id_for_label>, <TextNode: '"> <strong>University <fo'>, <Variable Node: teamform.studentUni>, <TextNode: '\n '>, <Variable Node: teamform.studentUni.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentCourse.id_for_label>, <TextNode: '"> <strong>Course <font c'>, <Variable Node: teamform.studentCourse>, <TextNode: '\n '>, <Variable Node: teamform.studentCourse.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentYearofStudy.id_for_label>, <TextNode: '"> <strong> Year of Study'>, <Variable Node: teamform.studentYearofStudy>, <TextNode: '\n '>, <Variable Node: teamform.studentYearofStudy.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentPhone.id_for_label>, <TextNode: '"> <strong>Phone <font co'>, <Variable Node: teamform.studentPhone>, <TextNode: '\n '>, <Variable Node: teamform.studentPhone.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentEmail.id_for_label>, <TextNode: '"> <strong>Email <font co'>, <Variable Node: teamform.studentEmail>, <TextNode: '\n '>, <Variable Node: teamform.studentEmail.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentAddress.id_for_label>, <TextNode: '"> <strong>Address <font '>, <Variable Node: teamform.studentAddress>, <TextNode: '\n '>, <Variable Node: teamform.studentAddress.errors>, <TextNode: ' \n '>, <Variable Node: teamform.studentCity.id_for_label>, <TextNode: '"> <strong>City <font col'>, <Variable Node: teamform.studentCity>, <TextNode: '\n '>, <Variable Node: teamform.studentCity.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentState.id_for_label>, <TextNode: '"> <strong> State/Provinc'>, <Variable Node: teamform.studentState>, <TextNode: '\n '>, <Variable Node: teamform.studentState.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentCountry.id_for_label>, <TextNode: '"> <strong> Country <font'>, <Variable Node: teamform.studentCountry>, <TextNode: '\n '>, <Variable Node: teamform.studentCountry.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentPostcode.id_for_label>, <TextNode: '"> <strong>Postcode <font'>, <Variable Node: teamform.studentPostcode>, <TextNode: '\n '>, <Variable Node: teamform.studentPostcode.errors>, <TextNode: '\n '>, <Variable Node: teamform.stu… <trimmed 11497 bytes string> |
self | <IfNode> |
/usr/local/lib/python3.10/site-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('"> <strong> Year of Study <font color="red">*</font> </strong></label>\n' ' <br>\n' ' ') |
bits | ['\n' ' \n' ' <h1> <strong>REGISTRATION FORM</strong></h1>\n' ' <p>\n' ' All fields are mandatory <br>\n' ' <i>Kindly note that the first participant will be ' 'considered as the team leader.</i>\n' ' </p>\n' ' \n' ' <form enctype="multipart/form-data" id="teamRegoForm" ' 'action="', '/registrationForm/', '" method="POST"> \n ', '<input type="hidden" name="csrfmiddlewaretoken" ' 'value="tkmsvjqrXbsoQH12QuGCuVg9nBWGomWA2OmVkGQIdpmXSSmvILrW4voLztsnr84P">', '\n\n <label for="', 'id_teamName', '"> <strong>Team Name<font color="red">*</font> </strong></label>\n' ' <br>\n' ' ', '<input type="text" name="teamName" maxlength="100" required ' 'id="id_teamName">', '\n ', '', '\n' ' <hr>\n' ' <h2><strong>TEAM MEMBER 1</strong></h2>\n' ' <div class="row">\n' ' <div class="col-md-6">\n' ' <label for="', 'id_studentName', '"> <strong>Full Name (as per ID) <font color="red">*</font> ' '</strong></label>\n' ' ', '<input type="text" name="studentName" maxlength="100" required ' 'id="id_studentName">', '\n ', '', '\n' ' </div>\n' ' <div class="col-md-6">\n' ' <label for="', 'id_studentPID', '"> <strong>Personal ID/Passport No <font color="red">*</font> ' '</strong></label>\n' ' ', '<input type="text" name="studentPID" maxlength="100" required ' 'id="id_studentPID">', '\n ', '', '\n' ' </div>\n' ' </div>\n' ' <div class="row">\n' ' <div class="col-md-6">\n' ' <label for="', 'id_studentSID', '"> <strong>Student ID <font color="red">*</font> </strong></label>\n' ' ', '<input type="text" name="studentSID" maxlength="100" required ' 'id="id_studentSID">', '\n ', '', '\n' ' </div>\n' ' <div class="col-md-6">\n' ' <label for="', 'id_studentUni', '"> <strong>University <font color="red">*</font> </strong></label>\n' ' ', '<input type="text" name="studentUni" maxlength="100" required ' 'id="id_studentUni">', '\n ', '', '\n' ' </div>\n' ' </div>\n' ' \n' ' <div class="row">\n' ' <div class="col-md-6">\n' ' <label for="', 'id_studentCourse', '"> <strong>Course <font color="red">*</font> </strong></label>\n' ' ', '<input type="text" name="studentCourse" maxlength="100" required ' 'id="id_studentCourse">', '\n ', '', '\n' ' </div>\n' ' <div class="col-md-6">\n' ' <label for="', 'id_studentYearofStudy', '"> <strong> Year of Study <font color="red">*</font> </strong></label>\n' ' <br>\n' ' '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>, 'context': {'ver': {'time': '1710203476'}}}] |
node | <Variable Node: teamform.studentYearofStudy> |
self | [<TextNode: '\n \n '>, <django.template.defaulttags.URLNode object at 0x7f8348764d30>, <TextNode: '" method="POST"> \n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7f8348764d60>, <TextNode: '\n\n '>, <Variable Node: teamform.teamName.id_for_label>, <TextNode: '"> <strong>Team Name<font'>, <Variable Node: teamform.teamName>, <TextNode: '\n '>, <Variable Node: teamform.teamName.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentName.id_for_label>, <TextNode: '"> <strong>Full Name (as '>, <Variable Node: teamform.studentName>, <TextNode: '\n '>, <Variable Node: teamform.studentName.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentPID.id_for_label>, <TextNode: '"> <strong>Personal ID/Pa'>, <Variable Node: teamform.studentPID>, <TextNode: '\n '>, <Variable Node: teamform.studentPID.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentSID.id_for_label>, <TextNode: '"> <strong>Student ID <fo'>, <Variable Node: teamform.studentSID>, <TextNode: '\n '>, <Variable Node: teamform.studentSID.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentUni.id_for_label>, <TextNode: '"> <strong>University <fo'>, <Variable Node: teamform.studentUni>, <TextNode: '\n '>, <Variable Node: teamform.studentUni.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentCourse.id_for_label>, <TextNode: '"> <strong>Course <font c'>, <Variable Node: teamform.studentCourse>, <TextNode: '\n '>, <Variable Node: teamform.studentCourse.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentYearofStudy.id_for_label>, <TextNode: '"> <strong> Year of Study'>, <Variable Node: teamform.studentYearofStudy>, <TextNode: '\n '>, <Variable Node: teamform.studentYearofStudy.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentPhone.id_for_label>, <TextNode: '"> <strong>Phone <font co'>, <Variable Node: teamform.studentPhone>, <TextNode: '\n '>, <Variable Node: teamform.studentPhone.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentEmail.id_for_label>, <TextNode: '"> <strong>Email <font co'>, <Variable Node: teamform.studentEmail>, <TextNode: '\n '>, <Variable Node: teamform.studentEmail.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentAddress.id_for_label>, <TextNode: '"> <strong>Address <font '>, <Variable Node: teamform.studentAddress>, <TextNode: '\n '>, <Variable Node: teamform.studentAddress.errors>, <TextNode: ' \n '>, <Variable Node: teamform.studentCity.id_for_label>, <TextNode: '"> <strong>City <font col'>, <Variable Node: teamform.studentCity>, <TextNode: '\n '>, <Variable Node: teamform.studentCity.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentState.id_for_label>, <TextNode: '"> <strong> State/Provinc'>, <Variable Node: teamform.studentState>, <TextNode: '\n '>, <Variable Node: teamform.studentState.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentCountry.id_for_label>, <TextNode: '"> <strong> Country <font'>, <Variable Node: teamform.studentCountry>, <TextNode: '\n '>, <Variable Node: teamform.studentCountry.errors>, <TextNode: '\n '>, <Variable Node: teamform.studentPostcode.id_for_label>, <TextNode: '"> <strong>Postcode <font'>, <Variable Node: teamform.studentPostcode>, <TextNode: '\n '>, <Variable Node: teamform.studentPostcode.errors>, <TextNode: '\n '>, <Variable Node: teamform.stu… <trimmed 11497 bytes string> |
/usr/local/lib/python3.10/site-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>, 'context': {'ver': {'time': '1710203476'}}}] |
self | <Variable Node: teamform.studentYearofStudy> |
/usr/local/lib/python3.10/site-packages/django/template/base.py
, line 994, in render
try:
output = self.filter_expression.resolve(context)
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ''
return render_value_in_context(output, context)…
# Regex for token keyword arguments
kwarg_re = _lazy_re_compile(r"(?:(\w+)=)?(.+)")
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>, 'context': {'ver': {'time': '1710203476'}}}] |
output | <django.forms.boundfield.BoundField object at 0x7f834872c3a0> |
self | <Variable Node: teamform.studentYearofStudy> |
/usr/local/lib/python3.10/site-packages/django/template/base.py
, line 973, in render_value_in_context
means escaping, if required, and conversion to a string. If value is a
string, it's expected to already be translated.
"""
value = template_localtime(value, use_tz=context.use_tz)
value = localize(value, use_l10n=context.use_l10n)
if context.autoescape:
if not issubclass(type(value), str):
value = str(value)…
return conditional_escape(value)
else:
return str(value)
class VariableNode(Node):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'teamform': <TeamForm bound=False, valid=False, fields=(teamName;studentName;studentPID;studentSID;studentUni;studentCourse;studentYearofStudy;studentPhone;studentEmail;studentAddress;studentCity;studentCountry;studentState;studentPostcode;student1Name;student1PID;student1SID;student1Uni;student1Course;student1YearofStudy;student1Phone;student1Email;student1Address;student1City;student1Country;student1State;student1Postcode;student2Name;student2PID;student2SID;student2Uni;student2Course;student2YearofStudy;student2Phone;student2Email;student2Address;student2City;student2Country;student2State;student2Postcode;mathQuestion)>, 'context': {'ver': {'time': '1710203476'}}}] |
value | <django.forms.boundfield.BoundField object at 0x7f834872c3a0> |
/usr/local/lib/python3.10/site-packages/django/utils/html.py
, line 376, in <lambda>
)
if '__str__' not in klass.__dict__:
raise ValueError(
"can't apply @html_safe to %s because it doesn't "
"define __str__()." % klass.__name__
)
klass_str = klass.__str__
klass.__str__ = lambda self: mark_safe(klass_str(self))…
klass.__html__ = lambda self: str(self)
return klass
Variable | Value |
---|---|
klass_str | <function BoundField.__str__ at 0x7f834a374ca0> |
self | <django.forms.boundfield.BoundField object at 0x7f834872c3a0> |
/usr/local/lib/python3.10/site-packages/django/forms/boundfield.py
, line 34, in __str__
self.label = self.field.label
self.help_text = field.help_text or ''
def __str__(self):
"""Render this field as an HTML widget."""
if self.field.show_hidden_initial:
return self.as_widget() + self.as_hidden(only_initial=True)
return self.as_widget()…
@cached_property
def subwidgets(self):
"""
Most widgets yield a single subwidget, but others like RadioSelect and
CheckboxSelectMultiple produce one subwidget for each choice.
Variable | Value |
---|---|
self | <django.forms.boundfield.BoundField object at 0x7f834872c3a0> |
/usr/local/lib/python3.10/site-packages/django/forms/boundfield.py
, line 93, in as_widget
widget = widget or self.field.widget
if self.field.localize:
widget.is_localized = True
attrs = attrs or {}
attrs = self.build_widget_attrs(attrs, widget)
if self.auto_id and 'id' not in widget.attrs:
attrs.setdefault('id', self.html_initial_id if only_initial else self.auto_id)
return widget.render(…
name=self.html_initial_name if only_initial else self.html_name,
value=self.value(),
attrs=attrs,
renderer=self.form.renderer,
)
Variable | Value |
---|---|
attrs | {'id': 'id_studentYearofStudy', 'required': True} |
only_initial | False |
self | <django.forms.boundfield.BoundField object at 0x7f834872c3a0> |
widget | <django.forms.widgets.Select object at 0x7f83487aa560> |
/usr/local/lib/python3.10/site-packages/django/forms/widgets.py
, line 246, in render
'attrs': self.build_attrs(self.attrs, attrs),
'template_name': self.template_name,
},
}
def render(self, name, value, attrs=None, renderer=None):
"""Render the widget as an HTML string."""
context = self.get_context(name, value, attrs)…
return self._render(self.template_name, context, renderer)
def _render(self, template_name, context, renderer=None):
if renderer is None:
renderer = get_default_renderer()
return mark_safe(renderer.render(template_name, context))
Variable | Value |
---|---|
attrs | {'id': 'id_studentYearofStudy', 'required': True} |
name | 'studentYearofStudy' |
renderer | <django.forms.renderers.DjangoTemplates object at 0x7f8348bad900> |
self | <django.forms.widgets.Select object at 0x7f83487aa560> |
value | None |
/usr/local/lib/python3.10/site-packages/django/forms/widgets.py
, line 683, in get_context
template_name = 'django/forms/widgets/select.html'
option_template_name = 'django/forms/widgets/select_option.html'
add_id_index = False
checked_attribute = {'selected': True}
option_inherits_attrs = False
def get_context(self, name, value, attrs):
context = super().get_context(name, value, attrs)…
if self.allow_multiple_selected:
context['widget']['attrs']['multiple'] = True
return context
@staticmethod
def _choice_has_empty_value(choice):
Variable | Value |
---|---|
__class__ | <class 'django.forms.widgets.Select'> |
attrs | {'id': 'id_studentYearofStudy', 'required': True} |
name | 'studentYearofStudy' |
self | <django.forms.widgets.Select object at 0x7f83487aa560> |
value | None |
/usr/local/lib/python3.10/site-packages/django/forms/widgets.py
, line 644, in get_context
'type': self.input_type,
'template_name': self.option_template_name,
'wrap_label': True,
}
def get_context(self, name, value, attrs):
context = super().get_context(name, value, attrs)
context['widget']['optgroups'] = self.optgroups(name, context['widget']['value'], attrs)…
return context
def id_for_label(self, id_, index='0'):
"""
Use an incremented id for each option where the main widget
references the zero index.
Variable | Value |
---|---|
__class__ | <class 'django.forms.widgets.ChoiceWidget'> |
attrs | {'id': 'id_studentYearofStudy', 'required': True} |
context | {'widget': {'attrs': {'id': 'id_studentYearofStudy', 'required': True}, 'is_hidden': False, 'name': 'studentYearofStudy', 'required': True, 'template_name': 'django/forms/widgets/select.html', 'value': ['']}} |
name | 'studentYearofStudy' |
self | <django.forms.widgets.Select object at 0x7f83487aa560> |
value | None |
/usr/local/lib/python3.10/site-packages/django/forms/widgets.py
, line 592, in optgroups
yield from group[1]
def optgroups(self, name, value, attrs=None):
"""Return a list of optgroups for this widget."""
groups = []
has_selected = False
for index, (option_value, option_label) in enumerate(self.choices):…
if option_value is None:
option_value = ''
subgroup = []
if isinstance(option_label, (list, tuple)):
group_name = option_value
Variable | Value |
---|---|
attrs | {'id': 'id_studentYearofStudy', 'required': True} |
choices | [('', '---------')] |
group_name | None |
groups | [(None, [{'attrs': {'selected': True}, 'index': '0', 'label': '---------', 'name': 'studentYearofStudy', 'selected': True, 'template_name': 'django/forms/widgets/select_option.html', 'type': 'select', 'value': '', 'wrap_label': True}], 0)] |
has_selected | True |
index | 0 |
name | 'studentYearofStudy' |
option_label | '---------' |
option_value | '' |
selected | True |
self | <django.forms.widgets.Select object at 0x7f83487aa560> |
subgroup | [{'attrs': {'selected': True}, 'index': '0', 'label': '---------', 'name': 'studentYearofStudy', 'selected': True, 'template_name': 'django/forms/widgets/select_option.html', 'type': 'select', 'value': '', 'wrap_label': True}] |
subindex | None |
sublabel | '---------' |
subvalue | '' |
value | [''] |
/usr/local/lib/python3.10/site-packages/django/forms/models.py
, line 1169, in __iter__
def __iter__(self):
if self.field.empty_label is not None:
yield ("", self.field.empty_label)
queryset = self.queryset
# Can't use iterator() when queryset uses prefetch_related()
if not queryset._prefetch_related_lookups:
queryset = queryset.iterator()
for obj in queryset:…
yield self.choice(obj)
def __len__(self):
# count() adds a query but uses less memory since the QuerySet results
# won't be cached. In most cases, the choices will only be iterated on,
# and __len__() won't be called.
Variable | Value |
---|---|
queryset | <generator object QuerySet._iterator at 0x7f8348780740> |
self | <django.forms.models.ModelChoiceIterator object at 0x7f83487aa6e0> |
/usr/local/lib/python3.10/site-packages/django/db/models/query.py
, line 353, in _iterator
return combined
####################################
# METHODS THAT DO DATABASE QUERIES #
####################################
def _iterator(self, use_chunked_fetch, chunk_size):
yield from self._iterable_class(self, chunked_fetch=use_chunked_fetch, chunk_size=chunk_size)…
def iterator(self, chunk_size=2000):
"""
An iterator over the results from applying this QuerySet to the
database.
"""
Variable | Value |
---|---|
chunk_size | 2000 |
self | Error in formatting: ProgrammingError: relation "BVIAhome_yearofstudy" does not exist LINE 1: ..."."id", "BVIAhome_yearofstudy"."yearofstudy" FROM "BVIAhome_... ^ |
use_chunked_fetch | True |
/usr/local/lib/python3.10/site-packages/django/db/models/query.py
, line 51, in __iter__
def __iter__(self):
queryset = self.queryset
db = queryset.db
compiler = queryset.query.get_compiler(using=db)
# Execute the query. This will also fill compiler.select, klass_info,
# and annotations.
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)…
select, klass_info, annotation_col_map = (compiler.select, compiler.klass_info,
compiler.annotation_col_map)
model_cls = klass_info['model']
select_fields = klass_info['select_fields']
model_fields_start, model_fields_end = select_fields[0], select_fields[-1] + 1
init_list = [f[0].target.attname
Variable | Value |
---|---|
compiler | <django.db.models.sql.compiler.SQLCompiler object at 0x7f834872c850> |
db | 'default' |
queryset | Error in formatting: ProgrammingError: relation "BVIAhome_yearofstudy" does not exist LINE 1: ..."."id", "BVIAhome_yearofstudy"."yearofstudy" FROM "BVIAhome_... ^ |
self | <django.db.models.query.ModelIterable object at 0x7f834872c160> |
/usr/local/lib/python3.10/site-packages/django/db/models/sql/compiler.py
, line 1178, in execute_sql
cursor = self.connection.chunked_cursor()
else:
cursor = self.connection.cursor()
try:
cursor.execute(sql, params)
except Exception:
# Might fail for server-side cursors (e.g. connection closed)
cursor.close()…
raise
if result_type == CURSOR:
# Give the caller the cursor to process and close.
return cursor
if result_type == SINGLE:
Variable | Value |
---|---|
chunk_size | 2000 |
chunked_fetch | True |
cursor | <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f834872c430> |
params | () |
result_type | 'multi' |
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7f834872c850> |
sql | ('SELECT "BVIAhome_yearofstudy"."id", "BVIAhome_yearofstudy"."yearofstudy" ' 'FROM "BVIAhome_yearofstudy"') |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | 'text/plain' |
CSRF_COOKIE | 'PECHgyHAcLnkWXoI5rD09JlITon4ad2ao8Ca5V7RsZhTY8JbXIokJjtk5gTLdZap' |
CSRF_COOKIE_USED | True |
DJANGO_SETTINGS_MODULE | 'BVIAsite.settings' |
DOCKERIZE_VERSION | 'v0.6.1' |
GATEWAY_INTERFACE | 'CGI/1.1' |
GPG_KEY | '********************' |
HOME | '/root' |
HOSTNAME | '5a60ed0262dc' |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'bvia.icapital.biz' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '34.237.245.80' |
HTTP_X_REAL_IP | '34.237.245.80' |
LANG | 'C.UTF-8' |
PATH | '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' |
PATH_INFO | '/registrationForm/' |
POSTGRES_PASSWORD | '********************' |
PYTHONUNBUFFERED | '1' |
PYTHON_GET_PIP_SHA256 | '1e501cf004eac1b7eb1f97266d28f995ae835d30250bec7f8850562703067dc6' |
PYTHON_GET_PIP_URL | 'https://github.com/pypa/get-pip/raw/66030fa03382b4914d4c4d0896961a0bdeeeb274/public/get-pip.py' |
PYTHON_PIP_VERSION | '22.2.2' |
PYTHON_SETUPTOOLS_VERSION | '63.2.0' |
PYTHON_VERSION | '3.10.8' |
QUERY_STRING | '' |
REMOTE_ADDR | '10.20.22.175' |
REMOTE_HOST | '' |
REQUEST_METHOD | 'GET' |
RUN_MAIN | 'true' |
SCRIPT_NAME | '' |
SERVER_NAME | '5a60ed0262dc' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'WSGIServer/0.2' |
TZ | 'Asia/Kuala_Lumpur' |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'> |
wsgi.file_wrapper | <class 'wsgiref.util.FileWrapper'> |
wsgi.input | <django.core.handlers.wsgi.LimitedStream object at 0x7f83487a9120> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
BVIAsite.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['10.65.44.204', '10.65.44.204:8000', '127.0.0.1:8000', '127.0.0.1', '192.168.56.101', '10.65.41.80', '0.0.0.0', 'bvia.icapital.biz', 'uat-bvia.icapital.biz', 'test.icapital.biz', '8.219.0.130:8000', '*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/app' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | True |
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_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'postgresql', 'NAME': 'bvia', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'postgres'}} |
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 | ['%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_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_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'in-v3.mailjet.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_PORT | 25 |
EMAIL_HOST_USER | 'bvia@icapital.biz' |
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 | True |
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' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_countries', 'BVIAhome.apps.BviahomeConfig', 'rest_framework'] |
INTERNAL_IPS | [] |
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'), ('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 |
MAILJET_API_KEY | '********************' |
MAILJET_API_SECRET | '********************' |
MANAGERS | [] |
MEDIA_ROOT | '' |
MEDIA_URL | '/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
REST_FRAMEWORK | {'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAdminUser'], 'PAGE_SIZE': 10} |
ROOT_URLCONF | 'BVIAsite.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.cached_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 | 'BVIAsite.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 | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'whitenoise.storage.CompressedStaticFilesStorage' |
STATIC_ROOT | '/app/static' |
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']}}] |
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/Kuala_Lumpur' |
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 | 'BVIAsite.wsgi.application' |
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.