(-1, 'server not initialized')
Request Method: | GET |
---|---|
Request URL: | https://sarwarclasses.com/student |
Django Version: | 1.10.8 |
Exception Type: | InternalError |
Exception Value: | (-1, 'server not initialized') |
Exception Location: | /usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py in __init__, line 182 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.12 |
Python Path: | ['/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/var/dev_code/terminal/website/sarwar_classes/sarwar_classes', '/var/dev_code/terminal/website/sarwar_classes/'] |
Server time: | Fri, 29 Mar 2024 10:20:54 +0530 |
/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py
in get_response
response = self._middleware_chain(request)
# This block is only needed for legacy MIDDLEWARE_CLASSES; if
# MIDDLEWARE is used, self._response_middleware will be empty.
try:
# Apply response middleware, regardless of the response
for middleware_method in self._response_middleware:
response = middleware_method(request, response)...
# Complain if the response middleware returned None (a common error).
if response is None:
raise ValueError(
"%s.process_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__))
Variable | Value |
---|---|
middleware_method | <bound method ActivityLogMiddleware.process_response of <activity_log.middleware.ActivityLogMiddleware instance at 0x7f29ad37b3f8>> |
request | <WSGIRequest: GET '/student'> |
response | <HttpResponseNotFound status_code=404, "text/html"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f29afbcc950> |
/usr/local/lib/python2.7/dist-packages/activity_log/middleware.py
in process_response
def process_request(self, request):
request.saved_body = request.body
if conf.LAST_ACTIVITY and request.user.is_authenticated():
getattr(request.user, 'update_last_activity', lambda: 1)()
def process_response(self, request, response):
try:
self._write_log(request, response, getattr(request, 'saved_body', ''))...
except DisallowedHost:
return HttpResponseForbidden()
return response
def _write_log(self, request, response, body):
miss_log = [
Variable | Value |
---|---|
request | <WSGIRequest: GET '/student'> |
response | <HttpResponseNotFound status_code=404, "text/html"> |
self | <activity_log.middleware.ActivityLogMiddleware instance at 0x7f29ad37b3f8> |
/usr/local/lib/python2.7/dist-packages/activity_log/middleware.py
in _write_log
ActivityLog.objects.create(
user_id=user_id,
user=user,
request_url=request.build_absolute_uri()[:255],
request_method=request.method,
response_code=response.status_code,
ip_address=get_ip_address(request),
extra_data=get_extra_data(request, response, body)...
)
Variable | Value |
---|---|
body | '' |
miss_log | [False, False, False] |
request | <WSGIRequest: GET '/student'> |
response | <HttpResponseNotFound status_code=404, "text/html"> |
self | <activity_log.middleware.ActivityLogMiddleware instance at 0x7f29ad37b3f8> |
user | u'anon_None' |
user_id | 0 |
/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py
in manager_method
def check(self, **kwargs):
return []
@classmethod
def _get_queryset_methods(cls, queryset_class):
def create_method(name, method):
def manager_method(self, *args, **kwargs):
return getattr(self.get_queryset(), name)(*args, **kwargs)...
manager_method.__name__ = method.__name__
manager_method.__doc__ = method.__doc__
return manager_method
new_methods = {}
# Refs http://bugs.python.org/issue1785.
Variable | Value |
---|---|
args | () |
kwargs | {'extra_data': '<QueryDict: {}>', 'ip_address': u'54.234.143.240', 'request_method': 'GET', 'request_url': 'https://sarwarclasses.com/student', 'response_code': 404, 'user': u'anon_None', 'user_id': 0} |
name | 'create' |
self | <django.db.models.manager.Manager object at 0x7f29ad14d4d0> |
/usr/local/lib/python2.7/dist-packages/django/db/models/query.py
in create
def create(self, **kwargs):
"""
Creates a new object with the given kwargs, saving it to the database
and returning the created object.
"""
obj = self.model(**kwargs)
self._for_write = True
obj.save(force_insert=True, using=self.db)...
return obj
def _populate_pk_values(self, objs):
for obj in objs:
if obj.pk is None:
obj.pk = obj._meta.pk.get_pk_value_on_save(obj)
Variable | Value |
---|---|
kwargs | {'extra_data': '<QueryDict: {}>', 'ip_address': u'54.234.143.240', 'request_method': 'GET', 'request_url': 'https://sarwarclasses.com/student', 'response_code': 404, 'user': u'anon_None', 'user_id': 0} |
obj | <ActivityLog: ActivityLog object> |
self | <QuerySet [<ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, <ActivityLog: ActivityLog object>, '...(remaining elements truncated)...']> |
/usr/local/lib/python2.7/dist-packages/django/db/models/base.py
in save
if not field.primary_key and not hasattr(field, 'through'):
field_names.add(field.attname)
loaded_fields = field_names.difference(deferred_fields)
if loaded_fields:
update_fields = frozenset(loaded_fields)
self.save_base(using=using, force_insert=force_insert,
force_update=force_update, update_fields=update_fields)...
save.alters_data = True
def save_base(self, raw=False, force_insert=False,
force_update=False, using=None, update_fields=None):
"""
Handles the parts of saving which should be done only once per save,
Variable | Value |
---|---|
deferred_fields | set([]) |
field | <django.db.models.fields.GenericIPAddressField: ip_address> |
force_insert | True |
force_update | False |
self | <ActivityLog: ActivityLog object> |
update_fields | None |
using | 'logs' |
/usr/local/lib/python2.7/dist-packages/django/db/models/base.py
in save_base
# Skip proxies, but keep the origin as the proxy model.
if cls._meta.proxy:
cls = cls._meta.concrete_model
meta = cls._meta
if not meta.auto_created:
signals.pre_save.send(sender=origin, instance=self, raw=raw, using=using,
update_fields=update_fields)
with transaction.atomic(using=using, savepoint=False):...
if not raw:
self._save_parents(cls, using, update_fields)
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
# Store the database on which the object was saved
self._state.db = using
# Once saved, this is no longer a to-be-added instance.
Variable | Value |
---|---|
cls | <class 'activity_log.models.ActivityLog'> |
force_insert | True |
force_update | False |
meta | <Options for ActivityLog> |
origin | <class 'activity_log.models.ActivityLog'> |
raw | False |
self | <ActivityLog: ActivityLog object> |
update_fields | None |
using | 'logs' |
/usr/local/lib/python2.7/dist-packages/django/db/transaction.py
in __enter__
def __enter__(self):
connection = get_connection(self.using)
if not connection.in_atomic_block:
# Reset state when entering an outermost atomic block.
connection.commit_on_exit = True
connection.needs_rollback = False
if not connection.get_autocommit():...
# Some database adapters (namely sqlite3) don't handle
# transactions and savepoints properly when autocommit is off.
# Turning autocommit back on isn't an option; it would trigger
# a premature commit. Give up if that happens.
if connection.features.autocommits_when_autocommit_is_off:
raise TransactionManagementError(
Variable | Value |
---|---|
connection | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f29ad37d1d0> |
self | <django.db.transaction.Atomic object at 0x7f29ad14d790> |
/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py
in get_autocommit
# ##### Generic transaction management methods #####
def get_autocommit(self):
"""
Check the autocommit state.
"""
self.ensure_connection()...
return self.autocommit
def set_autocommit(self, autocommit, force_begin_transaction_with_broken_autocommit=False):
"""
Enable or disable autocommit.
Variable | Value |
---|---|
self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f29ad37d1d0> |
/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py
in ensure_connection
def ensure_connection(self):
"""
Guarantees that a connection to the database is established.
"""
if self.connection is None:
with self.wrap_database_errors:
self.connect()...
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _cursor(self):
self.ensure_connection()
with self.wrap_database_errors:
Variable | Value |
---|---|
self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f29ad37d1d0> |
/usr/local/lib/python2.7/dist-packages/django/db/utils.py
in __exit__
dj_exc_value.__cause__ = exc_value
if not hasattr(exc_value, '__traceback__'):
exc_value.__traceback__ = traceback
# 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
six.reraise(dj_exc_type, dj_exc_value, traceback)...
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 '_mysql_exceptions.InternalError'> |
dj_exc_type | <class 'django.db.utils.InternalError'> |
dj_exc_value | InternalError(-1, 'server not initialized') |
exc_type | <class '_mysql_exceptions.InternalError'> |
exc_value | InternalError(-1, 'server not initialized') |
self | <django.db.utils.DatabaseErrorWrapper object at 0x7f29ad14d7d0> |
traceback | <traceback object at 0x7f29ad202d88> |
/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py
in ensure_connection
def ensure_connection(self):
"""
Guarantees that a connection to the database is established.
"""
if self.connection is None:
with self.wrap_database_errors:
self.connect()...
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _cursor(self):
self.ensure_connection()
with self.wrap_database_errors:
Variable | Value |
---|---|
self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f29ad37d1d0> |
/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py
in connect
# Reset parameters defining when to close the connection
max_age = self.settings_dict['CONN_MAX_AGE']
self.close_at = None if max_age is None else time.time() + max_age
self.closed_in_transaction = False
self.errors_occurred = False
# Establish the connection
conn_params = self.get_connection_params()
self.connection = self.get_new_connection(conn_params)...
self.set_autocommit(self.settings_dict['AUTOCOMMIT'])
self.init_connection_state()
connection_created.send(sender=self.__class__, connection=self)
self.run_on_commit = []
Variable | Value |
---|---|
conn_params | {u'charset': u'utf8', u'client_flag': 2, u'conv': {0: <function typecast_decimal at 0x7f29afbde0c8>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x7f29aefa9668>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x7f29aefa9500>, 11: <function typecast_time at 0x7f29afbddf50>, 12: <function DateTime_or_None at 0x7f29aefa9398>, 13: <type 'int'>, 15: [(128, <type 'str'>)], 246: <function typecast_decimal at 0x7f29afbde0c8>, 248: <function Str2Set at 0x7f29aefa9aa0>, 252: [(128, <type 'str'>)], 253: [(128, <type 'str'>)], 254: [(128, <type 'str'>)], <type 'array.array'>: <function array2Str at 0x7f29aefa9ed8>, <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f29aefa95f0>, <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7f29ae6db848>, <type 'NoneType'>: <function None2NULL at 0x7f29aefa9cf8>, <type 'tuple'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'str'>: <function Thing2Literal at 0x7f29aefa9d70>, <type 'long'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'float'>: <function Float2Str at 0x7f29aefa9c80>, <type 'instance'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'int'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'bool'>: <function Bool2Str at 0x7f29aefa9a28>, <type 'object'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'unicode'>: <function Unicode2Str at 0x7f29aefa9c08>, <type 'list'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'dict'>: <built-in function escape_dict>, <type 'set'>: <function Set2Str at 0x7f29aefa9b18>}, u'db': 'terminal_sarwar_classes_logs', u'host': 'localhost', u'passwd': 'AKtfJ[*?r5()E3x*', u'port': 3306, u'use_unicode': True, u'user': 'sarwar'} |
max_age | 0 |
self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f29ad37d1d0> |
/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py
in get_new_connection
# We need the number of potentially affected rows after an
# "UPDATE", not the number of changed rows.
kwargs['client_flag'] = CLIENT.FOUND_ROWS
kwargs.update(settings_dict['OPTIONS'])
return kwargs
def get_new_connection(self, conn_params):
conn = Database.connect(**conn_params)...
conn.encoders[SafeText] = conn.encoders[six.text_type]
conn.encoders[SafeBytes] = conn.encoders[bytes]
return conn
def init_connection_state(self):
if self.features.is_sql_auto_is_null_enabled:
Variable | Value |
---|---|
conn_params | {u'charset': u'utf8', u'client_flag': 2, u'conv': {0: <function typecast_decimal at 0x7f29afbde0c8>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x7f29aefa9668>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x7f29aefa9500>, 11: <function typecast_time at 0x7f29afbddf50>, 12: <function DateTime_or_None at 0x7f29aefa9398>, 13: <type 'int'>, 15: [(128, <type 'str'>)], 246: <function typecast_decimal at 0x7f29afbde0c8>, 248: <function Str2Set at 0x7f29aefa9aa0>, 252: [(128, <type 'str'>)], 253: [(128, <type 'str'>)], 254: [(128, <type 'str'>)], <type 'array.array'>: <function array2Str at 0x7f29aefa9ed8>, <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f29aefa95f0>, <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7f29ae6db848>, <type 'NoneType'>: <function None2NULL at 0x7f29aefa9cf8>, <type 'tuple'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'str'>: <function Thing2Literal at 0x7f29aefa9d70>, <type 'long'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'float'>: <function Float2Str at 0x7f29aefa9c80>, <type 'instance'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'int'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'bool'>: <function Bool2Str at 0x7f29aefa9a28>, <type 'object'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'unicode'>: <function Unicode2Str at 0x7f29aefa9c08>, <type 'list'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'dict'>: <built-in function escape_dict>, <type 'set'>: <function Set2Str at 0x7f29aefa9b18>}, u'db': 'terminal_sarwar_classes_logs', u'host': 'localhost', u'passwd': 'AKtfJ[*?r5()E3x*', u'port': 3306, u'use_unicode': True, u'user': 'sarwar'} |
self | <django.db.backends.mysql.base.DatabaseWrapper object at 0x7f29ad37d1d0> |
/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py
in Connect
def Binary(x):
return str(x)
def Connect(*args, **kwargs):
"""Factory function for connections.Connection."""
from MySQLdb.connections import Connection
return Connection(*args, **kwargs)...
connect = Connection = Connect
__all__ = [ 'BINARY', 'Binary', 'Connect', 'Connection', 'DATE',
'Date', 'Time', 'Timestamp', 'DateFromTicks', 'TimeFromTicks',
'TimestampFromTicks', 'DataError', 'DatabaseError', 'Error',
Variable | Value |
---|---|
Connection | <class 'MySQLdb.connections.Connection'> |
args | () |
kwargs | {u'charset': u'utf8', u'client_flag': 2, u'conv': {0: <function typecast_decimal at 0x7f29afbde0c8>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x7f29aefa9668>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x7f29aefa9500>, 11: <function typecast_time at 0x7f29afbddf50>, 12: <function DateTime_or_None at 0x7f29aefa9398>, 13: <type 'int'>, 15: [(128, <type 'str'>)], 246: <function typecast_decimal at 0x7f29afbde0c8>, 248: <function Str2Set at 0x7f29aefa9aa0>, 252: [(128, <type 'str'>)], 253: [(128, <type 'str'>)], 254: [(128, <type 'str'>)], <type 'array.array'>: <function array2Str at 0x7f29aefa9ed8>, <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f29aefa95f0>, <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7f29ae6db848>, <type 'NoneType'>: <function None2NULL at 0x7f29aefa9cf8>, <type 'tuple'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'str'>: <function Thing2Literal at 0x7f29aefa9d70>, <type 'long'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'float'>: <function Float2Str at 0x7f29aefa9c80>, <type 'instance'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'int'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'bool'>: <function Bool2Str at 0x7f29aefa9a28>, <type 'object'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'unicode'>: <function Unicode2Str at 0x7f29aefa9c08>, <type 'list'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'dict'>: <built-in function escape_dict>, <type 'set'>: <function Set2Str at 0x7f29aefa9b18>}, u'db': 'terminal_sarwar_classes_logs', u'host': 'localhost', u'passwd': 'AKtfJ[*?r5()E3x*', u'port': 3306, u'use_unicode': True, u'user': 'sarwar'} |
/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py
in __init__
else:
use_unicode = False
use_unicode = kwargs2.pop('use_unicode', use_unicode)
sql_mode = kwargs2.pop('sql_mode', '')
client_flag = kwargs.get('client_flag', 0)
client_version = tuple([ numeric_part(n) for n in _mysql.get_client_info().split('.')[:2] ])...
if client_version >= (4, 1):
client_flag |= CLIENT.MULTI_STATEMENTS
if client_version >= (5, 0):
client_flag |= CLIENT.MULTI_RESULTS
kwargs2['client_flag'] = client_flag
Variable | Value |
---|---|
CLIENT | <module 'MySQLdb.constants.CLIENT' from '/usr/local/lib/python2.7/dist-packages/MySQLdb/constants/CLIENT.pyc'> |
FIELD_TYPE | <module 'MySQLdb.constants.FIELD_TYPE' from '/usr/local/lib/python2.7/dist-packages/MySQLdb/constants/FIELD_TYPE.pyc'> |
args | () |
charset | u'utf8' |
client_flag | 2 |
conv | {0: <function typecast_decimal at 0x7f29afbde0c8>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x7f29aefa9668>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x7f29aefa9500>, 11: <function typecast_time at 0x7f29afbddf50>, 12: <function DateTime_or_None at 0x7f29aefa9398>, 13: <type 'int'>, 15: [(128, <type 'str'>)], 246: <function typecast_decimal at 0x7f29afbde0c8>, 248: <function Str2Set at 0x7f29aefa9aa0>, 252: [(128, <type 'str'>)], 253: [(128, <type 'str'>)], 254: [(128, <type 'str'>)], <type 'array.array'>: <function array2Str at 0x7f29aefa9ed8>, <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f29aefa95f0>, <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7f29ae6db848>, <type 'NoneType'>: <function None2NULL at 0x7f29aefa9cf8>, <type 'tuple'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'str'>: <function Thing2Literal at 0x7f29aefa9d70>, <type 'long'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'float'>: <function Float2Str at 0x7f29aefa9c80>, <type 'instance'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'int'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'bool'>: <function Bool2Str at 0x7f29aefa9a28>, <type 'object'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'unicode'>: <function Unicode2Str at 0x7f29aefa9c08>, <type 'list'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'dict'>: <built-in function escape_dict>, <type 'set'>: <function Set2Str at 0x7f29aefa9b18>} |
conv2 | {0: <function typecast_decimal at 0x7f29afbde0c8>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x7f29aefa9668>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x7f29aefa9500>, 11: <function typecast_time at 0x7f29afbddf50>, 12: <function DateTime_or_None at 0x7f29aefa9398>, 13: <type 'int'>, 15: [(128, <type 'str'>)], 246: <function typecast_decimal at 0x7f29afbde0c8>, 248: <function Str2Set at 0x7f29aefa9aa0>, 252: [(128, <type 'str'>)], 253: [(128, <type 'str'>)], 254: [(128, <type 'str'>)], <type 'array.array'>: <function array2Str at 0x7f29aefa9ed8>, <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f29aefa95f0>, <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7f29ae6db848>, <type 'NoneType'>: <function None2NULL at 0x7f29aefa9cf8>, <type 'tuple'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'str'>: <function Thing2Literal at 0x7f29aefa9d70>, <type 'long'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'float'>: <function Float2Str at 0x7f29aefa9c80>, <type 'instance'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'int'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'bool'>: <function Bool2Str at 0x7f29aefa9a28>, <type 'object'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'unicode'>: <function Unicode2Str at 0x7f29aefa9c08>, <type 'list'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'dict'>: <built-in function escape_dict>, <type 'set'>: <function Set2Str at 0x7f29aefa9b18>} |
conversions | {0: <class 'decimal.Decimal'>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x7f29aefa9668>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x7f29aefa9500>, 11: <function TimeDelta_or_None at 0x7f29aefa9410>, 12: <function DateTime_or_None at 0x7f29aefa9398>, 13: <type 'int'>, 15: [(128, <type 'str'>)], 246: <class 'decimal.Decimal'>, 248: <function Str2Set at 0x7f29aefa9aa0>, 252: [(128, <type 'str'>)], 253: [(128, <type 'str'>)], 254: [(128, <type 'str'>)], <type 'array.array'>: <function array2Str at 0x7f29aefa9ed8>, <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f29aefa95f0>, <type 'datetime.datetime'>: <function DateTime2literal at 0x7f29aefa9578>, <type 'NoneType'>: <function None2NULL at 0x7f29aefa9cf8>, <type 'tuple'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'str'>: <function Thing2Literal at 0x7f29aefa9d70>, <type 'long'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'float'>: <function Float2Str at 0x7f29aefa9c80>, <type 'instance'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'int'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'bool'>: <function Bool2Str at 0x7f29aefa9a28>, <type 'object'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'unicode'>: <function Unicode2Str at 0x7f29aefa9c08>, <type 'list'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'dict'>: <built-in function escape_dict>, <type 'set'>: <function Set2Str at 0x7f29aefa9b18>} |
cursorclass | <class 'MySQLdb.cursors.Cursor'> |
k | 254 |
kwargs | {u'charset': u'utf8', u'client_flag': 2, u'conv': {0: <function typecast_decimal at 0x7f29afbde0c8>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x7f29aefa9668>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x7f29aefa9500>, 11: <function typecast_time at 0x7f29afbddf50>, 12: <function DateTime_or_None at 0x7f29aefa9398>, 13: <type 'int'>, 15: [(128, <type 'str'>)], 246: <function typecast_decimal at 0x7f29afbde0c8>, 248: <function Str2Set at 0x7f29aefa9aa0>, 252: [(128, <type 'str'>)], 253: [(128, <type 'str'>)], 254: [(128, <type 'str'>)], <type 'array.array'>: <function array2Str at 0x7f29aefa9ed8>, <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f29aefa95f0>, <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7f29ae6db848>, <type 'NoneType'>: <function None2NULL at 0x7f29aefa9cf8>, <type 'tuple'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'str'>: <function Thing2Literal at 0x7f29aefa9d70>, <type 'long'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'float'>: <function Float2Str at 0x7f29aefa9c80>, <type 'instance'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'int'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'bool'>: <function Bool2Str at 0x7f29aefa9a28>, <type 'object'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'unicode'>: <function Unicode2Str at 0x7f29aefa9c08>, <type 'list'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'dict'>: <built-in function escape_dict>, <type 'set'>: <function Set2Str at 0x7f29aefa9b18>}, u'db': 'terminal_sarwar_classes_logs', u'host': 'localhost', u'passwd': 'AKtfJ[*?r5()E3x*', u'port': 3306, u'use_unicode': True, u'user': 'sarwar'} |
kwargs2 | {u'client_flag': 2, u'conv': {0: <function typecast_decimal at 0x7f29afbde0c8>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x7f29aefa9668>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x7f29aefa9500>, 11: <function typecast_time at 0x7f29afbddf50>, 12: <function DateTime_or_None at 0x7f29aefa9398>, 13: <type 'int'>, 15: [(128, <type 'str'>)], 246: <function typecast_decimal at 0x7f29afbde0c8>, 248: <function Str2Set at 0x7f29aefa9aa0>, 252: [(128, <type 'str'>)], 253: [(128, <type 'str'>)], 254: [(128, <type 'str'>)], <type 'array.array'>: <function array2Str at 0x7f29aefa9ed8>, <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7f29aefa95f0>, <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7f29ae6db848>, <type 'NoneType'>: <function None2NULL at 0x7f29aefa9cf8>, <type 'tuple'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'str'>: <function Thing2Literal at 0x7f29aefa9d70>, <type 'long'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'float'>: <function Float2Str at 0x7f29aefa9c80>, <type 'instance'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'int'>: <function Thing2Str at 0x7f29aefa9b90>, <type 'bool'>: <function Bool2Str at 0x7f29aefa9a28>, <type 'object'>: <function Instance2Str at 0x7f29aefa9de8>, <type 'unicode'>: <function Unicode2Str at 0x7f29aefa9c08>, <type 'list'>: <function quote_tuple at 0x7f29aefa9f50>, <type 'dict'>: <built-in function escape_dict>, <type 'set'>: <function Set2Str at 0x7f29aefa9b18>}, u'db': 'terminal_sarwar_classes_logs', u'host': 'localhost', u'passwd': 'AKtfJ[*?r5()E3x*', u'port': 3306, u'user': 'sarwar'} |
proxy | <built-in function proxy> |
self | <_mysql.connection closed at 5581b4da2390> |
sql_mode | '' |
use_unicode | True |
v | [(128, <type 'str'>)] |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTEXT_DOCUMENT_ROOT | '/var/www/html' |
CONTEXT_PREFIX | '' |
DOCUMENT_ROOT | '/var/www/html' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'sarwarclasses.com' |
HTTP_REFERER | 'http://sarwarclasses.com/student' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | u'/student' |
PATH_TRANSLATED | '/var/dev_code/terminal/website/sarwar_classes/sarwar_classes/sarwar_classes/wsgi.py/student' |
QUERY_STRING | '' |
REMOTE_ADDR | '54.234.143.240' |
REMOTE_PORT | '47254' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/student' |
SCRIPT_FILENAME | '/var/dev_code/terminal/website/sarwar_classes/sarwar_classes/sarwar_classes/wsgi.py' |
SCRIPT_NAME | u'' |
SERVER_ADDR | '205.147.98.136' |
SERVER_ADMIN | 'm.azmi@string.org.in' |
SERVER_NAME | 'sarwarclasses.com' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SIGNATURE | '<address>Apache/2.4.18 (Ubuntu) Server at sarwarclasses.com Port 443</address>\n' |
SERVER_SOFTWARE | 'Apache/2.4.18 (Ubuntu)' |
SSL_TLS_SNI | 'sarwarclasses.com' |
apache.version | (2, 4, 18) |
mod_wsgi.application_group | 'sarwarclasses.com|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
mod_wsgi.input_chunked | '0' |
mod_wsgi.listener_host | '' |
mod_wsgi.listener_port | '443' |
mod_wsgi.process_group | '' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_start | '1711687854287180' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1711687854693012' |
mod_wsgi.version | (4, 3, 0) |
wsgi.errors | <mod_wsgi.Log object at 0x7f29ad37b420> |
wsgi.file_wrapper | '' |
wsgi.input | <mod_wsgi.Input object at 0x7f29ae603ab0> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
sarwar_classes.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_TRANSFER_NAME | 'Account Transfer' |
ACTIVITYLOG_ANONIMOUS | True |
ACTIVITYLOG_AUTOCREATE_DB | True |
ACTIVITYLOG_EXCLUDE_URLS | ('/admin/activity_log/activitylog', '/admin/jsi18n/') |
ACTIVITYLOG_GET_EXTRA_DATA | 'student.models.make_extra_data' |
ACTIVITYLOG_LAST_ACTIVITY | True |
ACTIVITYLOG_METHODS | ('POST', 'GET') |
ACTIVITYLOG_STATUSES | () |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | [u'django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | u'********************' |
AUTH_USER_MODEL | 'student.User' |
AWS_ACCESS_KEY_ID | u'********************' |
AWS_SECRET_ACCESS_KEY | u'********************' |
BASE_DIR | '/var/dev_code/terminal/website/sarwar_classes/sarwar_classes' |
CACHES | {u'default': {u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | u'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CASH_COUNTER_NAME | 'Cash' |
CHEQUE_COUNTER_NAME | 'Cheque' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | u'csrftoken' |
CSRF_COOKIE_PATH | u'/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | u'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | u'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'localhost', 'NAME': 'terminal_sarwar_classes', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'sarwar'}, 'logs': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'localhost', 'NAME': 'terminal_sarwar_classes_logs', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'sarwar'}} |
DATABASE_APPS_MAPPING | {'activity_log': 'logs'} |
DATABASE_BACKUP_PATH | 'scdbbackup' |
DATABASE_ROUTERS | ['activity_log.router.DatabaseAppsRouter'] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | u'N j, Y, P' |
DATETIME_INPUT_FORMATS | [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y'] |
DATE_FORMAT | u'N j, Y' |
DATE_INPUT_FORMATS | [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y'] |
DB_BACKUP_ADMINS | (('Ankit Rastogi', 'ankitrps@gmail.com'), ('Mohammad Maaz', 'm.azmi@string.org.in')) |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | u'.' |
DEFAULT_CHARSET | u'utf-8' |
DEFAULT_CONTENT_TYPE | u'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | u'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | u'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'support@string.org.in' |
DEFAULT_INDEX_TABLESPACE | u'' |
DEFAULT_TABLESPACE | u'' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | u'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.gmail.com' |
EMAIL_HOST_PASSWORD | u'********************' |
EMAIL_HOST_USER | 'support@string.org.in' |
EMAIL_PORT | 587 |
EMAIL_SENDER | 'support@string.org.in' |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | u'********************' |
EMAIL_SUBJECT_PREFIX | u'[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
EMAIL_VERIFICATION_DAYS | 7 |
ENV | 'sarwar_classes' |
FILE_CHARSET | u'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'sarwar_classes', 'student', 'evaluation', 'simple_history', 'activity_log', 'scholar', 'website', 'django_extensions'] |
INTERNAL_IPS | [] |
LANGUAGES | [(u'af', u'Afrikaans'), (u'ar', u'Arabic'), (u'ast', u'Asturian'), (u'az', u'Azerbaijani'), (u'bg', u'Bulgarian'), (u'be', u'Belarusian'), (u'bn', u'Bengali'), (u'br', u'Breton'), (u'bs', u'Bosnian'), (u'ca', u'Catalan'), (u'cs', u'Czech'), (u'cy', u'Welsh'), (u'da', u'Danish'), (u'de', u'German'), (u'dsb', u'Lower Sorbian'), (u'el', u'Greek'), (u'en', u'English'), (u'en-au', u'Australian English'), (u'en-gb', u'British English'), (u'eo', u'Esperanto'), (u'es', u'Spanish'), (u'es-ar', u'Argentinian Spanish'), (u'es-co', u'Colombian Spanish'), (u'es-mx', u'Mexican Spanish'), (u'es-ni', u'Nicaraguan Spanish'), (u'es-ve', u'Venezuelan Spanish'), (u'et', u'Estonian'), (u'eu', u'Basque'), (u'fa', u'Persian'), (u'fi', u'Finnish'), (u'fr', u'French'), (u'fy', u'Frisian'), (u'ga', u'Irish'), (u'gd', u'Scottish Gaelic'), (u'gl', u'Galician'), (u'he', u'Hebrew'), (u'hi', u'Hindi'), (u'hr', u'Croatian'), (u'hsb', u'Upper Sorbian'), (u'hu', u'Hungarian'), (u'ia', u'Interlingua'), (u'id', u'Indonesian'), (u'io', u'Ido'), (u'is', u'Icelandic'), (u'it', u'Italian'), (u'ja', u'Japanese'), (u'ka', u'Georgian'), (u'kk', u'Kazakh'), (u'km', u'Khmer'), (u'kn', u'Kannada'), (u'ko', u'Korean'), (u'lb', u'Luxembourgish'), (u'lt', u'Lithuanian'), (u'lv', u'Latvian'), (u'mk', u'Macedonian'), (u'ml', u'Malayalam'), (u'mn', u'Mongolian'), (u'mr', u'Marathi'), (u'my', u'Burmese'), (u'nb', u'Norwegian Bokm\xe5l'), (u'ne', u'Nepali'), (u'nl', u'Dutch'), (u'nn', u'Norwegian Nynorsk'), (u'os', u'Ossetic'), (u'pa', u'Punjabi'), (u'pl', u'Polish'), (u'pt', u'Portuguese'), (u'pt-br', u'Brazilian Portuguese'), (u'ro', u'Romanian'), (u'ru', u'Russian'), (u'sk', u'Slovak'), (u'sl', u'Slovenian'), (u'sq', u'Albanian'), (u'sr', u'Serbian'), (u'sr-latn', u'Serbian Latin'), (u'sv', u'Swedish'), (u'sw', u'Swahili'), (u'ta', u'Tamil'), (u'te', u'Telugu'), (u'th', u'Thai'), (u'tr', u'Turkish'), (u'tt', u'Tatar'), (u'udm', u'Udmurt'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'vi', u'Vietnamese'), (u'zh-hans', u'Simplified Chinese'), (u'zh-hant', u'Traditional Chinese')] |
LANGUAGES_BIDI | [u'he', u'ar', u'fa', u'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | u'django_language' |
LANGUAGE_COOKIE_PATH | u'/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | u'logging.config.dictConfig' |
LOGIN_EXEMPT_URLS | set(['^media/profile_image/', '^website/$', '^website/ajax_check/$']) |
LOGIN_REDIRECT_URL | 'dashboard' |
LOGIN_URL | '/login/' |
LOGIN_URL_NEW | '/website/' |
LOGOUT_REDIRECT_URL | '/login/' |
LOGOUT_URL | '/login/' |
MANAGERS | [] |
MEDIA_ROOT | '/var/dev_code/terminal/website/sarwar_classes/sarwar_classes/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | u'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | None |
MIDDLEWARE_CLASSES | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'simple_history.middleware.HistoryRequestMiddleware', 'activity_log.middleware.ActivityLogMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | u'F j' |
NUMBER_GROUPING | 0 |
ONE_TIME_PAYMENT | [1] |
ONE_YEAR_INSTALLMENTS | [0.5, 0.5] |
PASSWORD_HASHERS | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
PATH_IMAGE_PATH | '/var/dev_code/terminal/website/sarwar_classes/sarwar_classes/media/profile_pic' |
PHONENUMBER_DB_FORMAT | 'NATIONAL' |
PHONENUMBER_DEFAULT_REGION | '91' |
PREPEND_WWW | False |
RECEIPT_NUMBER_FIXED_LENGTH | 4 |
RESEND_LINK_ALLOWED_TIME | 5 |
RESULT_UPLOAD_PATH | '/var/dev_code/terminal/website/sarwar_classes/sarwar_classes/media/upload_result' |
ROOT_URLCONF | 'sarwar_classes.urls' |
SCHOLARSHIP_UPLOAD_PATH | '/var/dev_code/terminal/website/sarwar_classes/sarwar_classes/media/scholarship_upload' |
SECRET_KEY | u'********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | u'root@localhost' |
SESSION_CACHE_ALIAS | u'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | u'sessionid' |
SESSION_COOKIE_PATH | u'/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | u'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | u'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'sarwar_classes.settings' |
SHORT_DATETIME_FORMAT | u'm/d/Y P' |
SHORT_DATE_FORMAT | u'm/d/Y' |
SIGNING_BACKEND | u'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SLIP_CODE | {'1': 'A', '10': 'J', '11': 'K', '12': 'L', '2': 'B', '3': 'C', '4': 'D', '5': 'E', '6': 'F', '7': 'G', '8': 'H', '9': 'I'} |
SMS_PSWD | 'sar8880' |
SMS_USER_ID | 'sarwar' |
STATICFILES_DIRS | ('/var/dev_code/terminal/website/sarwar_classes/sarwar_classes/media',) |
STATICFILES_FINDERS | [u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | u'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/dev_code/terminal/website/sarwar_classes/sarwar_classes/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.template.context_processors.media', 'django.template.context_processors.static', 'django.contrib.messages.context_processors.messages', 'sarwar_classes.context_processor.get_cancel_url']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | u'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | u',' |
TIMETABLE_IMAGE_PATH | '/var/dev_code/terminal/website/sarwar_classes/sarwar_classes/media/timetable_upload' |
TIME_FORMAT | u'P' |
TIME_INPUT_FORMATS | [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] |
TIME_ZONE | 'Asia/Kolkata' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WEBSITE_QUERY_USER | 'website_user' |
WSGI_APPLICATION | 'sarwar_classes.wsgi.application' |
X_FRAME_OPTIONS | u'SAMEORIGIN' |
YEAR_MONTH_FORMAT | u'F Y' |
YEAR_WISE_INSTALLMENTS | [0.5, 0.5] |
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.