Resource matching query does not exist.
Request Method: | GET |
---|---|
Request URL: | http://sdg.npc.gov.np/en/resource/2561/ |
Django Version: | 1.10.5 |
Exception Type: | DoesNotExist |
Exception Value: | Resource matching query does not exist. |
Exception Location: | /usr/local/lib/python3.6/site-packages/django/db/models/query.py in get, line 385 |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.6.1 |
Python Path: | ['/code/sdg_redesign', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/site-packages', '/home/webadmin/Projects/nid/nidenv/lib/python3.5/site-packages', '/code/sdg_redesign/nid/..', '/code/sdg_redesign/nid/../..'] |
Server time: | Thu, 28 Mar 2024 15:52:16 +0000 |
/code/sdg_redesign/resource/views.py
in view_resource
return institution_type_code(request)
# elif resource_slug=='xlsx_upload':
# return xlsx_upload(request)
else:
try:
int(resource_slug)
resource = resource.get(pk=resource_slug)...
except:
str(resource_slug)
resource = resource.get(slug=resource_slug)
# print(resource)
Variable | Value |
---|---|
request | <WSGIRequest: GET '/en/resource/2561/'> |
resource | <QuerySet [{'id': 21957, 'title': 'THE 2030 AGENDA FOR SUSTAINABLE DEVELOPMENT', 'description': '', 'contentType': 'pdf', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2030', 'AD_BS': 'AD', 'url': '', 'youtube_url': '', 'file': <FieldFile: resources/items/0/bThe_2030_Agenda_for_Sustainable_Development_nQYO9M1.pdf>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bThe_2030_Agenda_for_Sustainable_Development_dmR5gRM.JPG>, 'status': 1, 'views': 0, 'pub_date': datetime.datetime(2021, 12, 7, 10, 20, 16, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'THE-2030-AGENDA-FOR-SUSTAINABLE-DEVELOPMENT-2030-AD', 'file_alias': '2030-agenda-sustainable-development', 'thumbimg_alias': '2030-agenda-sustainable-development', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21958, 'title': 'INTERVIEW : SWARNIM WAGLE, NATIONAL PLANNING COMMISSION NEPAL ON SDGs', 'description': '', 'contentType': '', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2018', 'AD_BS': 'AD', 'url': 'https://youtu.be/4kxrfY3LTm4?t=4', 'youtube_url': '', 'file': <FieldFile: None>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bSwarnim.JPG>, 'status': 1, 'views': 37, 'pub_date': datetime.datetime(2021, 12, 7, 10, 20, 16, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'INTERVIEW-:-SWARNIM-WAGLE--NATIONAL-PLANNING-COMMISSION-NEPAL-ON-SDGs-2018-AD', 'file_alias': '-7', 'thumbimg_alias': 'swarnim', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21956, 'title': 'THE SUSTAINABLE DEVELOPMENT GOALS REPORT 2016', 'description': '', 'contentType': 'pdf', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2016', 'AD_BS': 'AD', 'url': '', 'youtube_url': '', 'file': <FieldFile: resources/items/0/bThe_Sustainable_Development_Goals_Report_2016.pdf>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bThe_Sustainable_Development_Goals_Report_2016.JPG>, 'status': 1, 'views': 35, 'pub_date': datetime.datetime(2021, 12, 7, 10, 27, 23, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'THE-SUSTAINABLE-DEVELOPMENT-GOALS-REPORT-2016-2016-AD', 'file_alias': 'sustainable-development-goals-report-2016', 'thumbimg_alias': 'sustainable-development-goals-report-2016', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21959, 'title': 'SUSTAINABLE DEVELOPMENT GOALS, STATUS AND ROADMAP: 2016-2030', 'description': '', 'contentType': 'pdf', 'published... <trimmed 14765 bytes string> |
resource_slug | '2561' |
/usr/local/lib/python3.6/site-packages/django/db/models/query.py
in get
clone = clone.order_by()
num = len(clone)
if num == 1:
return clone._result_cache[0]
if not num:
raise self.model.DoesNotExist(
"%s matching query does not exist." %
self.model._meta.object_name...
)
raise self.model.MultipleObjectsReturned(
"get() returned more than one %s -- it returned %s!" %
(self.model._meta.object_name, num)
)
Variable | Value |
---|---|
args | () |
clone | <QuerySet []> |
kwargs | {'pk': '2561'} |
num | 0 |
self | <QuerySet [{'id': 21957, 'title': 'THE 2030 AGENDA FOR SUSTAINABLE DEVELOPMENT', 'description': '', 'contentType': 'pdf', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2030', 'AD_BS': 'AD', 'url': '', 'youtube_url': '', 'file': <FieldFile: resources/items/0/bThe_2030_Agenda_for_Sustainable_Development_nQYO9M1.pdf>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bThe_2030_Agenda_for_Sustainable_Development_dmR5gRM.JPG>, 'status': 1, 'views': 0, 'pub_date': datetime.datetime(2021, 12, 7, 10, 20, 16, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'THE-2030-AGENDA-FOR-SUSTAINABLE-DEVELOPMENT-2030-AD', 'file_alias': '2030-agenda-sustainable-development', 'thumbimg_alias': '2030-agenda-sustainable-development', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21958, 'title': 'INTERVIEW : SWARNIM WAGLE, NATIONAL PLANNING COMMISSION NEPAL ON SDGs', 'description': '', 'contentType': '', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2018', 'AD_BS': 'AD', 'url': 'https://youtu.be/4kxrfY3LTm4?t=4', 'youtube_url': '', 'file': <FieldFile: None>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bSwarnim.JPG>, 'status': 1, 'views': 37, 'pub_date': datetime.datetime(2021, 12, 7, 10, 20, 16, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'INTERVIEW-:-SWARNIM-WAGLE--NATIONAL-PLANNING-COMMISSION-NEPAL-ON-SDGs-2018-AD', 'file_alias': '-7', 'thumbimg_alias': 'swarnim', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21956, 'title': 'THE SUSTAINABLE DEVELOPMENT GOALS REPORT 2016', 'description': '', 'contentType': 'pdf', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2016', 'AD_BS': 'AD', 'url': '', 'youtube_url': '', 'file': <FieldFile: resources/items/0/bThe_Sustainable_Development_Goals_Report_2016.pdf>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bThe_Sustainable_Development_Goals_Report_2016.JPG>, 'status': 1, 'views': 35, 'pub_date': datetime.datetime(2021, 12, 7, 10, 27, 23, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'THE-SUSTAINABLE-DEVELOPMENT-GOALS-REPORT-2016-2016-AD', 'file_alias': 'sustainable-development-goals-report-2016', 'thumbimg_alias': 'sustainable-development-goals-report-2016', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21959, 'title': 'SUSTAINABLE DEVELOPMENT GOALS, STATUS AND ROADMAP: 2016-2030', 'description': '', 'contentType': 'pdf', 'published... <trimmed 14765 bytes string> |
/usr/local/lib/python3.6/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, assigned=available_attrs(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 | DoesNotExist('Resource matching query does not exist.',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f5d0d249be0>> |
request | <WSGIRequest: GET '/en/resource/2561/'> |
/usr/local/lib/python3.6/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 view_resource at 0x7f5ce2967488> |
callback_args | () |
callback_kwargs | {'resource_slug': '2561'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f5d0d564710>> |
request | <WSGIRequest: GET '/en/resource/2561/'> |
resolver | <RegexURLResolver 'nid.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=resource.views.view_resource, args=(), kwargs={'resource_slug': '2561'}, url_name=view_resource, app_names=['resource'], namespaces=['resource']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f5d0d249be0> |
wrapped_callback | <function view_resource at 0x7f5ce2967488> |
/usr/local/lib/python3.6/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 view_resource at 0x7f5ce2967488> |
callback_args | () |
callback_kwargs | {'resource_slug': '2561'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f5d0d564710>> |
request | <WSGIRequest: GET '/en/resource/2561/'> |
resolver | <RegexURLResolver 'nid.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=resource.views.view_resource, args=(), kwargs={'resource_slug': '2561'}, url_name=view_resource, app_names=['resource'], namespaces=['resource']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f5d0d249be0> |
wrapped_callback | <function view_resource at 0x7f5ce2967488> |
/code/sdg_redesign/resource/views.py
in view_resource
else:
try:
int(resource_slug)
resource = resource.get(pk=resource_slug)
except:
str(resource_slug)
resource = resource.get(slug=resource_slug)...
# print(resource)
res = Resource.objects.get(pk=resource.id)#.values('title', 'instituition__title')
# resource_dict = serializers.serialize("json", [resource])
# Instituition.objects.filter(id__in=resource.instituition)
Variable | Value |
---|---|
request | <WSGIRequest: GET '/en/resource/2561/'> |
resource | <QuerySet [{'id': 21957, 'title': 'THE 2030 AGENDA FOR SUSTAINABLE DEVELOPMENT', 'description': '', 'contentType': 'pdf', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2030', 'AD_BS': 'AD', 'url': '', 'youtube_url': '', 'file': <FieldFile: resources/items/0/bThe_2030_Agenda_for_Sustainable_Development_nQYO9M1.pdf>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bThe_2030_Agenda_for_Sustainable_Development_dmR5gRM.JPG>, 'status': 1, 'views': 0, 'pub_date': datetime.datetime(2021, 12, 7, 10, 20, 16, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'THE-2030-AGENDA-FOR-SUSTAINABLE-DEVELOPMENT-2030-AD', 'file_alias': '2030-agenda-sustainable-development', 'thumbimg_alias': '2030-agenda-sustainable-development', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21958, 'title': 'INTERVIEW : SWARNIM WAGLE, NATIONAL PLANNING COMMISSION NEPAL ON SDGs', 'description': '', 'contentType': '', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2018', 'AD_BS': 'AD', 'url': 'https://youtu.be/4kxrfY3LTm4?t=4', 'youtube_url': '', 'file': <FieldFile: None>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bSwarnim.JPG>, 'status': 1, 'views': 37, 'pub_date': datetime.datetime(2021, 12, 7, 10, 20, 16, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'INTERVIEW-:-SWARNIM-WAGLE--NATIONAL-PLANNING-COMMISSION-NEPAL-ON-SDGs-2018-AD', 'file_alias': '-7', 'thumbimg_alias': 'swarnim', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21956, 'title': 'THE SUSTAINABLE DEVELOPMENT GOALS REPORT 2016', 'description': '', 'contentType': 'pdf', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2016', 'AD_BS': 'AD', 'url': '', 'youtube_url': '', 'file': <FieldFile: resources/items/0/bThe_Sustainable_Development_Goals_Report_2016.pdf>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bThe_Sustainable_Development_Goals_Report_2016.JPG>, 'status': 1, 'views': 35, 'pub_date': datetime.datetime(2021, 12, 7, 10, 27, 23, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'THE-SUSTAINABLE-DEVELOPMENT-GOALS-REPORT-2016-2016-AD', 'file_alias': 'sustainable-development-goals-report-2016', 'thumbimg_alias': 'sustainable-development-goals-report-2016', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21959, 'title': 'SUSTAINABLE DEVELOPMENT GOALS, STATUS AND ROADMAP: 2016-2030', 'description': '', 'contentType': 'pdf', 'published... <trimmed 14765 bytes string> |
resource_slug | '2561' |
/usr/local/lib/python3.6/site-packages/django/db/models/query.py
in get
clone = clone.order_by()
num = len(clone)
if num == 1:
return clone._result_cache[0]
if not num:
raise self.model.DoesNotExist(
"%s matching query does not exist." %
self.model._meta.object_name...
)
raise self.model.MultipleObjectsReturned(
"get() returned more than one %s -- it returned %s!" %
(self.model._meta.object_name, num)
)
Variable | Value |
---|---|
args | () |
clone | <QuerySet []> |
kwargs | {'slug': '2561'} |
num | 0 |
self | <QuerySet [{'id': 21957, 'title': 'THE 2030 AGENDA FOR SUSTAINABLE DEVELOPMENT', 'description': '', 'contentType': 'pdf', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2030', 'AD_BS': 'AD', 'url': '', 'youtube_url': '', 'file': <FieldFile: resources/items/0/bThe_2030_Agenda_for_Sustainable_Development_nQYO9M1.pdf>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bThe_2030_Agenda_for_Sustainable_Development_dmR5gRM.JPG>, 'status': 1, 'views': 0, 'pub_date': datetime.datetime(2021, 12, 7, 10, 20, 16, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'THE-2030-AGENDA-FOR-SUSTAINABLE-DEVELOPMENT-2030-AD', 'file_alias': '2030-agenda-sustainable-development', 'thumbimg_alias': '2030-agenda-sustainable-development', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21958, 'title': 'INTERVIEW : SWARNIM WAGLE, NATIONAL PLANNING COMMISSION NEPAL ON SDGs', 'description': '', 'contentType': '', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2018', 'AD_BS': 'AD', 'url': 'https://youtu.be/4kxrfY3LTm4?t=4', 'youtube_url': '', 'file': <FieldFile: None>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bSwarnim.JPG>, 'status': 1, 'views': 37, 'pub_date': datetime.datetime(2021, 12, 7, 10, 20, 16, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'INTERVIEW-:-SWARNIM-WAGLE--NATIONAL-PLANNING-COMMISSION-NEPAL-ON-SDGs-2018-AD', 'file_alias': '-7', 'thumbimg_alias': 'swarnim', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21956, 'title': 'THE SUSTAINABLE DEVELOPMENT GOALS REPORT 2016', 'description': '', 'contentType': 'pdf', 'publishedBy': 'National Planning Commission', 'language': 'English', 'year': '2016', 'AD_BS': 'AD', 'url': '', 'youtube_url': '', 'file': <FieldFile: resources/items/0/bThe_Sustainable_Development_Goals_Report_2016.pdf>, 'thumbimg': <FieldFile: resources/items/0/thumbs/bThe_Sustainable_Development_Goals_Report_2016.JPG>, 'status': 1, 'views': 35, 'pub_date': datetime.datetime(2021, 12, 7, 10, 27, 23, tzinfo=<UTC>), 'meta_description': '', 'meta_keywords': 'sdg_00 = All; Sustainable Development Goals: National Planning Commission; Nepal; Government of Nepal;', 'slug': 'THE-SUSTAINABLE-DEVELOPMENT-GOALS-REPORT-2016-2016-AD', 'file_alias': 'sustainable-development-goals-report-2016', 'thumbimg_alias': 'sustainable-development-goals-report-2016', 'section': [], 'inst_type': [{'id': 1, 'title': 'Central/Federal', 'status': 1}, {'id': 1, 'title': 'Central/Federal', 'status': 1}], 'instituition': [{'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}, {'id': 40, 'title': 'National Planning Commission', 'inst_type_id': 1, 'status': 1}], 'category': [{'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}, {'id': 2, 'title': 'Publications', 'status': 1, 'slug': 'publications'}]}, {'id': 21959, 'title': 'SUSTAINABLE DEVELOPMENT GOALS, STATUS AND ROADMAP: 2016-2030', 'description': '', 'contentType': 'pdf', 'published... <trimmed 14765 bytes string> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | 'text/plain' |
DJANGO_SETTINGS_MODULE | 'nid.settings' |
GATEWAY_INTERFACE | 'CGI/1.1' |
GPG_KEY | '0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' |
HOME | '/root' |
HOSTNAME | '99082bf0fc1e' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'sdg.npc.gov.np' |
HTTP_REFERER | 'http://sdg.npc.gov.np/resource/2561' |
HTTP_USER_AGENT | 'claudebot' |
LANG | 'C.UTF-8' |
PATH | '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' |
PATH_INFO | '/en/resource/2561/' |
PYTHONUNBUFFERED | '1' |
PYTHON_PIP_VERSION | '9.0.1' |
PYTHON_VERSION | '3.6.1' |
QUERY_STRING | '' |
REMOTE_ADDR | '44.200.145.114' |
REMOTE_HOST | '' |
REQUEST_METHOD | 'GET' |
RUN_MAIN | 'true' |
SCRIPT_NAME | '' |
SERVER_NAME | '99082bf0fc1e' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'WSGIServer/0.2' |
TZ | 'UTC' |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <_io.BufferedReader name=1217> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
nid.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_AUTHENTICATION_METHOD | 'username_email' |
ACCOUNT_EMAIL_REQUIRED | True |
ACCOUNT_LOGOUT_ON_GET | True |
ADMINS | [] |
ALLOWED_HOSTS | ['*', 'dev.nepalindata.com'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/code/sdg_redesign' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CKEDITOR_CONFIGS | {'default': {'extraPlugins': 'div,autolink,autoembed,embedsemantic,autogrow,widget,lineutils,clipboard,dialog,dialogui,elementspath,dotted_hr', 'skin': 'moono', 'tabSpaces': 4, 'toolbar': 'YourCustomToolbarConfig', 'toolbar_Basic': [['Source', '-', 'Bold', 'Italic']], 'toolbar_YourCustomToolbarConfig': [{'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'], 'name': 'basicstyles'}, {'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language'], 'name': 'paragraph'}, {'items': ['Link', 'Unlink', 'Anchor'], 'name': 'links'}, {'items': ['Image', 'Flash', 'Table', 'HorizontalRule', 'dotted_hr', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'], 'name': 'insert'}, '/', {'items': ['Styles', 'Format', 'Font', 'FontSize'], 'name': 'styles'}, {'items': ['TextColor', 'BGColor'], 'name': 'colors'}, {'items': ['Maximize', 'ShowBlocks'], 'name': 'tools'}, '/', {'items': ['Preview', 'Maximize'], 'name': 'yourcustomtools'}, {'items': ['Source'], 'name': 'document'}]}} |
CKEDITOR_JQUERY_URL | '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js' |
CKEDITOR_UPLOAD_PATH | 'uploads/' |
CRISPY_TEMPLATE_PACK | 'bootstrap3' |
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 | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '202.45.144.220', 'NAME': 'sdg_redesign_new', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'sdguser'}} |
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', '%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 | 'webmaster@localhost' |
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 | 'nepalindata@bikasudhyami.com' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
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 |
GOOGLE_RECAPTCHA_SECRET_KEY | '********************' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.postgres', 'djangoseo', 'allauth', 'widget_tweaks', 'allauth.account', 'allauth.socialaccount', 'ckeditor', 'ckeditor_uploader', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.facebook', 'discussion.apps.DiscussionConfig', 'data.apps.DataConfig', 'profiles.apps.ProfilesConfig', 'home.apps.HomeConfig', 'insight.apps.InsightConfig', 'eventCalendar.apps.EventcalendarConfig', 'resource.apps.ResourceConfig', 'overview.apps.OverviewConfig', 'tafsdg', 'rest_framework', 'restapi', 'notify', 'cdd', 'polls'] |
INTERNAL_IPS | [] |
LANGUAGES | (('en', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f5d12471c88>), ('ne', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f5d0db33390>)) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | ('/code/sdg_redesign/locale/',) |
LOGGING | {'disable_existing_loggers': False, 'formatters': {'standard': {'datefmt': '%m/%d/%Y %I:%M:%S %p', 'format': '[%(asctime)s] (%(levelname)s) ' '%(name)s: %(message)s'}}, 'handlers': {'default': {'backupCount': 5, 'class': 'logging.handlers.RotatingFileHandler', 'filename': '/code/sdg_redesign/logs/logging_nid.log', 'formatter': 'standard', 'level': 'DEBUG', 'maxBytes': 5242880}}, 'loggers': {'': {'handlers': ['default'], 'level': 'DEBUG', 'propagate': True}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/code/sdg_redesign/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'nid.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_SECONDS | 31536000 |
SECURE_PROXY_SSL_HEADER | ('HTTP_X_FORWARDED_PROTO', 'http') |
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 | True |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'nid.settings' |
SETTINGS_ROOT | '/code/sdg_redesign/nid' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 2 |
SOCIALACCOUNT_PROVIDERS | {'facebook': {'AUTH_PARAMS': {'auth_type': 'reauthenticate'}, 'LOCALE_FUNC': <function <lambda> at 0x7f5d0df9e400>, 'METHOD': 'oauth2', 'SCOPE': ['email'], 'VERSION': 'v2.4'}, 'google': {'AUTH_PARAMS': {'access_type': 'online'}, 'SCOPE': ['email']}} |
SOCIALACCOUNT_QUERY_EMAIL | True |
STATICFILES_DIRS | ['/code/sdg_redesign/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/code/sdg_redesign/templates'], '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', 'profiles.context_processors.include_login_form', 'profiles.context_processors.include_signup_form', 'home.context_processors.include_newsletter_form', 'home.context_processors.include_contact_form', 'home.context_processors.tanslated_text_to_context', 'resource.context_processors.include_category_form']}}] |
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 | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'nid.wsgi.application' |
X_FRAME_OPTIONS | 'ALLOW' |
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.