DoesNotExist at /en/resource/2561/

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

Traceback Switch to copy-and-paste view



Request information

USER

AnonymousUser

GET

No GET data

POST

No POST data

FILES

No FILES data

No cookie data

META

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)

Settings

Using settings module 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.