Expecting value: line 1 column 1 (char 0)
Request Method: | GET |
---|---|
Request URL: | http://www.cfilt.iitb.ac.in:9002/hindishabdamitra/expert/%E0%A4%95%E0%A4%B0%E0%A5%8D%E0%A4%A8%E0%A4%BE%E0%A4%9F%E0%A4%95 |
Django Version: | 2.0.13 |
Exception Type: | ValueError |
Exception Value: | Expecting value: line 1 column 1 (char 0) |
Exception Location: | /users/proj/tcp/anaconda3/envs/py34/lib/python3.4/json/decoder.py in raw_decode, line 361 |
Python Executable: | /users/proj/tcp/anaconda3/envs/py34/bin/python3 |
Python Version: | 3.4.5 |
Python Path: | ['/home/tcp/data/code/tcp_hindi_prototype', '/users/proj/tcp/anaconda3/envs/py34/lib/python34.zip', '/users/proj/tcp/anaconda3/envs/py34/lib/python3.4', '/users/proj/tcp/anaconda3/envs/py34/lib/python3.4/plat-linux', '/users/proj/tcp/anaconda3/envs/py34/lib/python3.4/lib-dynload', '/users/proj/tcp/anaconda3/envs/py34/lib/python3.4/site-packages', '/users/proj/tcp/anaconda3/envs/py34/lib/python3.4/site-packages/setuptools-27.2.0-py3.4.egg'] |
Server time: | Thu, 18 Apr 2024 16:45:46 +0000 |
/users/proj/tcp/anaconda3/envs/py34/lib/python3.4/json/decoder.py
in raw_decode
representation and the index in ``s`` where the document ended.
This can be used to decode a JSON document from a string that may
have extraneous data at the end.
"""
try:
obj, end = self.scan_once(s, idx)...
except StopIteration as err:
raise ValueError(errmsg("Expecting value", s, err.value)) from None
return obj, end
Variable | Value |
---|---|
idx | 0 |
s | ('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n' '<title>404 Not Found</title>\n' '<h1>Not Found</h1>\n' '<p>The requested URL was not found on the server. If you entered the URL ' 'manually please check your spelling and try again.</p>\n') |
self | <json.decoder.JSONDecoder object at 0x7f2c342b1e48> |
/users/proj/tcp/anaconda3/envs/py34/lib/python3.4/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@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 | ValueError('Expecting value: line 1 column 1 (char 0)',) |
get_response | <bound method WSGIHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f2c30e65da0>> |
request | <WSGIRequest: GET '/hindishabdamitra/expert/%E0%A4%95%E0%A4%B0%E0%A5%8D%E0%A4%A8%E0%A4%BE%E0%A4%9F%E0%A4%95'> |
/users/proj/tcp/anaconda3/envs/py34/lib/python3.4/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function expert at 0x7f2c2ba06840> |
callback_args | () |
callback_kwargs | {'word': 'कर्नाटक'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f2c30d22dd8>> |
request | <WSGIRequest: GET '/hindishabdamitra/expert/%E0%A4%95%E0%A4%B0%E0%A5%8D%E0%A4%A8%E0%A4%BE%E0%A4%9F%E0%A4%95'> |
resolver | <URLResolver 'tcp_hindi_prototype.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=tcp_hindi_teaching_app.views.expert, args=(), kwargs={'word': 'कर्नाटक'}, url_name=expert_word, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f2c30e65da0> |
wrapped_callback | <function expert at 0x7f2c2ba06840> |
/users/proj/tcp/anaconda3/envs/py34/lib/python3.4/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function expert at 0x7f2c2ba06840> |
callback_args | () |
callback_kwargs | {'word': 'कर्नाटक'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f2c30d22dd8>> |
request | <WSGIRequest: GET '/hindishabdamitra/expert/%E0%A4%95%E0%A4%B0%E0%A5%8D%E0%A4%A8%E0%A4%BE%E0%A4%9F%E0%A4%95'> |
resolver | <URLResolver 'tcp_hindi_prototype.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=tcp_hindi_teaching_app.views.expert, args=(), kwargs={'word': 'कर्नाटक'}, url_name=expert_word, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f2c30e65da0> |
wrapped_callback | <function expert at 0x7f2c2ba06840> |
/home/tcp/data/code/tcp_hindi_prototype/tcp_hindi_teaching_app/views.py
in expert
collection_object = TcpSynsetWords.objects.filter(word=word_id).order_by('word_order')
if collection_object.exists():
for val in range(len(collection_object)):
if collection_object[val].synset_id not in synset_id:
synset_id.append(collection_object[val].synset_id)
for synset_id in synset_id:
if synset_id:
word_formset = get_details(synset_id , word_id, search_word , word_formset, 5)...
else:
collection_object = TcpWordCollection.objects.filter(word=word_id)
collection_id = collection_object.first().collection_id
additional_word_object = TcpAdditionalWords.objects.filter(collection=collection_id)
if additional_word_object.exists():
additional_word_gloss = additional_word_object.first().gloss
Variable | Value |
---|---|
WordFormSet | <class 'django.forms.formsets.WordFormFormSet'> |
actual_word | 'कर्नाटक' |
arb_word_ids | [26729] |
collection_object | <QuerySet [<TcpSynsetWords: 33381 4142 दक्षिण भारत का एक राज्य NOUN TcpSource object (0) 26729 कर्नाटक 1 999>]> |
i | 0 |
rank_mapper | [4142] |
request | <WSGIRequest: GET '/hindishabdamitra/expert/%E0%A4%95%E0%A4%B0%E0%A5%8D%E0%A4%A8%E0%A4%BE%E0%A4%9F%E0%A4%95'> |
search_word | 'कर्नाटक' |
synset_id | 4142 |
val | 0 |
word | 'कर्नाटक' |
word_formset | <django.forms.formsets.WordFormFormSet object at 0x7f2c2adfb908> |
word_id | 26729 |
word_object | <QuerySet [<TcpWord: 26729 कर्नाटक>]> |
/home/tcp/data/code/tcp_hindi_prototype/tcp_hindi_teaching_app/views.py
in get_details
if category == 'VERB':
causative = get_causative(synset_id)
entailment = get_entailment(synset_id)
troponymy = get_troponymy(synset_id)
also_see = get_also_see(synset_id)
synonyms,spelling_variations = getSynonym(synset_id,word_id, level)
word_property = getWordproperty(synset_id,word_id, category)
example = getExample(synset_id,search_word,word_property.get('plural'))...
audio_file_path = getAudiofilepath(word_id)
image_file_path = getImagefilepath(synset_id)
if concept_definition != '':
intial = {}
if level == 1:
tempLevel = 1
Variable | Value |
---|---|
ability_verb | None |
also_see | None |
antonymy | None |
attribute | None |
capability_verb | None |
category | 'NOUN' |
concept_definition | 'दक्षिण भारत का एक राज्य' |
english | 'Karnataka, Mysore' |
function_verb | None |
holonymy | None |
hypernymy | ['प्रदेश'] |
hyponymy | None |
level | 5 |
meronymy | None |
search_word | 'कर्नाटक' |
spelling_variations | '' |
synonyms | ['कर्णाटक'] |
synset_id | 4142 |
word_formset | <django.forms.formsets.WordFormFormSet object at 0x7f2c2adfb908> |
word_id | 26729 |
word_property | {'gender': 'पुल्लिंग'} |
/home/tcp/data/code/tcp_hindi_prototype/tcp_hindi_teaching_app/views.py
in getExample
return (category, concept_definition)
def getExample(synset_id,search_word,plural):
if " " in search_word:
search_word_list = search_word.split(" ")
search_word = search_word_list[0]
word1 = get_root_word(search_word_list[1])
search_word = get_root_word(search_word)...
example_object = TcpSynsetExample.objects.filter(synset=synset_id).filter(simplified_example__isnull=False)
example = ""
if example_object.exists():
if example_object.count() > 1:
for i in range(len(example_object)):
if (str(search_word) in example_object[i].simplified_example) or (str(plural) in example_object[i].simplified_example):
Variable | Value |
---|---|
plural | None |
search_word | 'कर्नाटक' |
synset_id | 4142 |
/home/tcp/data/code/tcp_hindi_prototype/tcp_hindi_teaching_app/views.py
in get_root_word
path = os.path.abspath(os.curdir)
hindi_ma_conf_path = str(path) + '/hindi_ma/hindi_ma.conf'
content = codecs.open(hindi_ma_conf_path, 'r', encoding='utf-8').read().replace("\n", "").strip()
base_url = content.split()[1]
headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}
payload = {"word": word}
root_word_request = requests.post(base_url + 'root_word', json=payload, headers=headers)
root_word = json.loads(root_word_request.content.decode('utf-8'))...
return root_word
def index(request,word=''):
return render(request,'index.html')
def beginner(request, word=''):
Variable | Value |
---|---|
base_url | 'http://127.0.0.1:5000/hindi_ma/' |
content | 'Endpoint http://127.0.0.1:5000/hindi_ma/' |
headers | {'Accept': 'application/json', 'Content-Type': 'application/json'} |
hindi_ma_conf_path | '/home/tcp/data/code/tcp_hindi_prototype/hindi_ma/hindi_ma.conf' |
path | '/home/tcp/data/code/tcp_hindi_prototype' |
payload | {'word': 'कर्नाटक'} |
root_word_request | <Response [404]> |
word | 'कर्नाटक' |
/users/proj/tcp/anaconda3/envs/py34/lib/python3.4/json/__init__.py
in loads
raise TypeError('the JSON object must be str, not {!r}'.format(
s.__class__.__name__))
if s.startswith(u'\ufeff'):
raise ValueError("Unexpected UTF-8 BOM (decode using utf-8-sig)")
if (cls is None and object_hook is None and
parse_int is None and parse_float is None and
parse_constant is None and object_pairs_hook is None and not kw):
return _default_decoder.decode(s)...
if cls is None:
cls = JSONDecoder
if object_hook is not None:
kw['object_hook'] = object_hook
if object_pairs_hook is not None:
kw['object_pairs_hook'] = object_pairs_hook
Variable | Value |
---|---|
cls | None |
encoding | None |
kw | {} |
object_hook | None |
object_pairs_hook | None |
parse_constant | None |
parse_float | None |
parse_int | None |
s | ('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n' '<title>404 Not Found</title>\n' '<h1>Not Found</h1>\n' '<p>The requested URL was not found on the server. If you entered the URL ' 'manually please check your spelling and try again.</p>\n') |
/users/proj/tcp/anaconda3/envs/py34/lib/python3.4/json/decoder.py
in decode
def decode(self, s, _w=WHITESPACE.match):
"""Return the Python representation of ``s`` (a ``str`` instance
containing a JSON document).
"""
obj, end = self.raw_decode(s, idx=_w(s, 0).end())...
end = _w(s, end).end()
if end != len(s):
raise ValueError(errmsg("Extra data", s, end, len(s)))
return obj
def raw_decode(self, s, idx=0):
Variable | Value |
---|---|
_w | <built-in method match of _sre.SRE_Pattern object at 0x7f2c342ba180> |
s | ('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n' '<title>404 Not Found</title>\n' '<h1>Not Found</h1>\n' '<p>The requested URL was not found on the server. If you entered the URL ' 'manually please check your spelling and try again.</p>\n') |
self | <json.decoder.JSONDecoder object at 0x7f2c342b1e48> |
/users/proj/tcp/anaconda3/envs/py34/lib/python3.4/json/decoder.py
in raw_decode
This can be used to decode a JSON document from a string that may
have extraneous data at the end.
"""
try:
obj, end = self.scan_once(s, idx)
except StopIteration as err:
raise ValueError(errmsg("Expecting value", s, err.value)) from None...
return obj, end
Variable | Value |
---|---|
idx | 0 |
s | ('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n' '<title>404 Not Found</title>\n' '<h1>Not Found</h1>\n' '<p>The requested URL was not found on the server. If you entered the URL ' 'manually please check your spelling and try again.</p>\n') |
self | <json.decoder.JSONDecoder object at 0x7f2c342b1e48> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
BROWSER | '/home/tcp/.vscode-server/cli/servers/Stable-5c3e652f63e798a5ac2f31ffd0d863669328dc4c/server/bin/helpers/browser.sh' |
COLORTERM | 'truecolor' |
CONDA_DEFAULT_ENV | 'py34' |
CONDA_EXE | '/users/proj/tcp/anaconda3/bin/conda' |
CONDA_PREFIX | '/users/proj/tcp/anaconda3/envs/py34' |
CONDA_PREFIX_1 | '/users/proj/tcp/anaconda3' |
CONDA_PROMPT_MODIFIER | '(py34) ' |
CONDA_PYTHON_EXE | '/users/proj/tcp/anaconda3/bin/python' |
CONDA_SHLVL | '2' |
CONTENT_LENGTH | '' |
CONTENT_TYPE | 'text/plain' |
DJANGO_SETTINGS_MODULE | 'tcp_hindi_prototype.settings' |
GATEWAY_INTERFACE | 'CGI/1.1' |
GIT_ASKPASS | '/home/tcp/.vscode-server/cli/servers/Stable-5c3e652f63e798a5ac2f31ffd0d863669328dc4c/server/extensions/git/dist/askpass.sh' |
HOME | '/home/tcp' |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'Keep-Alive' |
HTTP_HOST | 'www.cfilt.iitb.ac.in:9002' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '18.118.9.7, 10.129.3.3' |
HTTP_X_FORWARDED_HOST | 'www.cfilt.iitb.ac.in, www.cfilt.iitb.ac.in' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SERVER | 'www.cfilt.iitb.ac.in' |
HTTP_X_REAL_IP | '18.118.9.7' |
LANG | 'en_US.UTF-8' |
LESSCLOSE | '/usr/bin/lesspipe %s %s' |
LESSOPEN | '| /usr/bin/lesspipe %s' |
LOGNAME | 'tcp' |
LS_COLORS | 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:' |
'/var/mail/tcp' |
|
OLDPWD | '/home/tcp' |
PATH | '/users/proj/tcp/anaconda3/envs/py34/bin:/home/tcp/.vscode-server/cli/servers/Stable-5c3e652f63e798a5ac2f31ffd0d863669328dc4c/server/bin/remote-cli:/home/tcp/.local/bin:/users/proj/tcp/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/snap/bin' |
PATH_INFO | '/hindishabdamitra/expert/कर्नाटक' |
PWD | '/home/proj/tcp/data/code/tcp_hindi_prototype' |
QUERY_STRING | '' |
REMOTE_ADDR | '10.129.2.157' |
REMOTE_HOST | '' |
REQUEST_METHOD | 'GET' |
RUN_MAIN | 'true' |
SCRIPT_NAME | '' |
SERVER_NAME | 'gyaneshwar.cfilt.cse.iitb.ac.in' |
SERVER_PORT | '9002' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'WSGIServer/0.2' |
SHELL | '/bin/bash' |
SHLVL | '4' |
SSH_CLIENT | '10.185.101.216 65198 22' |
SSH_CONNECTION | '10.185.101.216 65198 10.129.2.157 22' |
SSL_CERT_DIR | '/usr/lib/ssl/certs' |
SSL_CERT_FILE | '/usr/lib/ssl/certs/ca-certificates.crt' |
STY | '210928.Hindi' |
TERM | 'screen' |
TERMCAP | ('SC|screen|VT 100/ANSI X3.64 virtual ' 'terminal:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:li#24:co#80:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:ti=\\E[?1049h:te=\\E[?1049l:Km=\\E[M:k0=\\E[10~:k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:k5=\\E[15~:k6=\\E[17~:k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:k;=\\E[21~:F1=\\E[23~:F2=\\E[24~:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:') |
TERM_PROGRAM | 'vscode' |
TERM_PROGRAM_VERSION | '1.88.0' |
TZ | 'UTC' |
USER | 'tcp' |
VSCODE_GIT_ASKPASS_EXTRA_ARGS | '' |
VSCODE_GIT_ASKPASS_MAIN | '/home/tcp/.vscode-server/cli/servers/Stable-5c3e652f63e798a5ac2f31ffd0d863669328dc4c/server/extensions/git/dist/askpass-main.js' |
VSCODE_GIT_ASKPASS_NODE | '/home/tcp/.vscode-server/cli/servers/Stable-5c3e652f63e798a5ac2f31ffd0d863669328dc4c/server/node' |
VSCODE_GIT_IPC_HANDLE | '/tmp/vscode-git-9a1c0d477e.sock' |
VSCODE_IPC_HOOK_CLI | '/tmp/vscode-ipc-7fcfaa4b-c11f-4057-af87-fd524c37a00a.sock' |
WINDOW | '0' |
XDG_DATA_DIRS | '/usr/local/share:/usr/share:/var/lib/snapd/desktop' |
_ | '/usr/bin/bash' |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <_io.BufferedReader name=7> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
tcp_hindi_prototype.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/tcp/data/code/tcp_hindi_prototype' |
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 | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
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 | {'admin': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'localhost', 'NAME': 'tatacenter_admin', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'dipak'}, 'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'localhost', 'NAME': 'tatacenter_hindi', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'dipak'}, 'english': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'localhost', 'NAME': 'tatacenter_english', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'dipak'}, 'master': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'localhost', 'NAME': 'tatacenter_master', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'dipak'}} |
DATABASE_APPS_MAPPING | {'admin': 'admin', 'auth': 'admin', 'contenttypes': 'admin', 'messages': 'admin', 'sessions': 'admin', 'staticfiles': 'admin', 'tatacenter_english': 'english', 'tatacenter_master': 'master', 'tcp_hindi_teaching_app': 'default'} |
DATABASE_ROUTERS | ['tcp_hindi_prototype.router.DatabaseAppsRouter'] |
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', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'tatacenterproject@gmail.com' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.gmail.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'tatacenterproject@gmail.com' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_CHARSET | 'utf-8' |
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 | None |
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', 'tcp_hindi_teaching_app.apps.TcpHindiTeachingAppConfig', 'tatacenter_master', 'tatacenter_english', 'rest_framework'] |
INTERNAL_IPS | [] |
JWT_AUTH | {'JWT_EXPIRATION_DELTA': datetime.timedelta(0, 60)} |
LANGUAGES | [('af', 'Afrikaans'), ('ar', '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'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('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'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '' |
MEDIA_URL | '' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_jwt.authentication.JSONWebTokenAuthentication',), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',), 'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer')} |
ROOT_URLCONF | 'tcp_hindi_prototype.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
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_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'tcp_hindi_prototype.settings' |
SETTINGS_PATH | '/home/tcp/data/code/tcp_hindi_prototype' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_URL | 'http://www.cfilt.iitb.ac.in/hindishabdamitra-frontend' |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'tcp_hindi_prototype.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.