SHARE
TWEET

error last agreement

a guest May 23rd, 2019 268 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. KeyError at /api/v1/school/agreement/1639/
  2. "Got KeyError when attempting to get a value for field `schoolId` on serializer `SchoolAgreementSerializer`.\nThe serializer field might be named incorrectly and not match any attribute or key on the `dict` instance.\nOriginal exception text was: 'schoolId'."
  3.  
  4. Request Method: GET
  5. Request URL: http://192.168.5.171:9880/api/v1/school/agreement/1639/
  6. Django Version: 2.1.7
  7. Python Executable: /root/cs_api/env/bin/python
  8. Python Version: 3.7.0
  9. Python Path: ['/root/cs_api', '/usr/local/lib/python37.zip', '/usr/local/lib/python3.7', '/usr/local/lib/python3.7/lib-dynload', '/root/cs_api/env/lib/python3.7/site-packages', '/']
  10. Server time: Fri, 24 May 2019 09:13:51 +0700
  11. Installed Applications:
  12. ['djadmin',
  13.  'advanced_filters',
  14.  'django.contrib.admin',
  15.  'django.contrib.auth',
  16.  'django.contrib.sites',
  17.  'django.contrib.contenttypes',
  18.  'django.contrib.sessions',
  19.  'django.contrib.messages',
  20.  'django.contrib.staticfiles',
  21.  'celery',
  22.  'rest_framework',
  23.  'rest_framework_jwt',
  24.  'django_filters',
  25.  'corsheaders',
  26.  'drf_yasg',
  27.  'anymail',
  28.  'allauth',
  29.  'allauth.account',
  30.  'allauth.socialaccount',
  31.  'allauth.socialaccount.providers.google',
  32.  'allauth.socialaccount.providers.twitter',
  33.  'allauth.socialaccount.providers.facebook',
  34.  'allauth.socialaccount.providers.instagram',
  35.  'allauth.socialaccount.providers.linkedin_oauth2',
  36.  'career_support_models',
  37.  'cs_administrator.apps.CsAdministratorConfig',
  38.  'cs_advertisement.apps.CsAdvertisementConfig',
  39.  'cs_authentication.apps.CsAuthenticationConfig',
  40.  'cs_billing.apps.CsBillingConfig',
  41.  'cs_core.apps.CsCoreConfig',
  42.  'cs_candidate.apps.CsCandidateConfig',
  43.  'cs_employer.apps.CsEmployerConfig',
  44.  'cs_faq.apps.CsFAQConfig',
  45.  'cs_history.apps.CsHistoryConfig',
  46.  'cs_interview.apps.CsInterviewConfig',
  47.  'cs_job.apps.CsJobConfig',
  48.  'cs_log.apps.CsLogConfig',
  49.  'cs_message.apps.CsMessageConfig',
  50.  'cs_news.apps.CsNewsConfig',
  51.  'cs_organization.apps.CsOrganizationConfig',
  52.  'cs_profile.apps.CsProfileConfig',
  53.  'cs_region.apps.CsRegionConfig',
  54.  'cs_requirement.apps.CsRequirementConfig',
  55.  'cs_school.apps.CsSchoolConfig',
  56.  'cs_social.apps.CsSocialConfig',
  57.  'cs_transaction.apps.CsTransactionConfig',
  58.  'cs_user.apps.CsUserConfig',
  59.  'dbbackup']
  60. Installed Middleware:
  61. ['django.middleware.security.SecurityMiddleware',
  62.  'corsheaders.middleware.CorsMiddleware',
  63.  'django.contrib.sessions.middleware.SessionMiddleware',
  64.  'django.middleware.common.CommonMiddleware',
  65.  'django.middleware.csrf.CsrfViewMiddleware',
  66.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  67.  'django.contrib.messages.middleware.MessageMiddleware',
  68.  'django.middleware.clickjacking.XFrameOptionsMiddleware',
  69.  'djadmin.middleware.DJMiddleware']
  70.  
  71.  
  72. Traceback:
  73.  
  74. File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/fields.py" in get_attribute
  75.   453.             return get_attribute(instance, self.source_attrs)
  76.  
  77. File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/fields.py" in get_attribute
  78.   99.                 instance = instance[attr]
  79.  
  80. During handling of the above exception ('schoolId'), another exception occurred:
  81.  
  82. File "/root/cs_api/env/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
  83.   34.             response = get_response(request)
  84.  
  85. File "/root/cs_api/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
  86.   126.                 response = self.process_exception_by_middleware(e, request)
  87.  
  88. File "/root/cs_api/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
  89.   124.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
  90.  
  91. File "/root/cs_api/env/lib/python3.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
  92.   54.         return view_func(*args, **kwargs)
  93.  
  94. File "/root/cs_api/env/lib/python3.7/site-packages/django/views/generic/base.py" in view
  95.   68.             return self.dispatch(request, *args, **kwargs)
  96.  
  97. File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
  98.   495.             response = self.handle_exception(exc)
  99.  
  100. File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/views.py" in handle_exception
  101.   455.             self.raise_uncaught_exception(exc)
  102.  
  103. File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
  104.   492.             response = handler(request, *args, **kwargs)
  105.  
  106. File "/root/cs_api/cs_school/views/agreement.py" in get
  107.   67.         return Response(serializer.data)
  108.  
  109. File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/serializers.py" in data
  110.   563.         ret = super(Serializer, self).data
  111.  
  112. File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/serializers.py" in data
  113.   262.                 self._data = self.to_representation(self.instance)
  114.  
  115. File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/serializers.py" in to_representation
  116.   517.                 attribute = field.get_attribute(instance)
  117.  
  118. File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/fields.py" in get_attribute
  119.   474.             raise type(exc)(msg)
  120.  
  121. Exception Type: KeyError at /api/v1/school/agreement/1639/
  122. Exception Value: "Got KeyError when attempting to get a value for field `schoolId` on serializer `SchoolAgreementSerializer`.\nThe serializer field might be named incorrectly and not match any attribute or key on the `dict` instance.\nOriginal exception text was: 'schoolId'."
  123. Request information:
  124. USER: komangsuryabagus@yahoo.co.id
  125.  
  126. GET: No GET data
  127.  
  128. POST: No POST data
  129.  
  130. FILES: No FILES data
  131.  
  132. COOKIES: No cookie data
  133.  
  134. META:
  135. CONTENT_LENGTH = ''
  136. CONTENT_TYPE = 'text/plain'
  137. DJANGO_SETTINGS_MODULE = 'career_support_api.settings'
  138. GATEWAY_INTERFACE = 'CGI/1.1'
  139. HTTP_ACCEPT = 'application/json, text/plain, */*'
  140. HTTP_ACCEPT_ENCODING = 'gzip, deflate'
  141. HTTP_ACCEPT_LANGUAGE = 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7'
  142. HTTP_AUTHORIZATION = 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyNiwidXNlcm5hbWUiOiJrb21hbmdzdXJ5YWJhZ3VzQHlhaG9vLmNvLmlkIiwiZXhwIjoxNTU4NjgyMDIyLCJlbWFpbCI6ImtvbWFuZ3N1cnlhYmFndXNAeWFob28uY28uaWQiLCJvcmlnX2lhdCI6MTU1ODY2NDAwM30.qCsu5FJln0MuiDGqsNeIDV2yskQVLq-TA8L4bE8Np72244W0DJJYrQ02GuKbC43RQCuD0fiSkwFrnrMx2Z2RWA'
  143. HTTP_CACHE_CONTROL = 'no-cache'
  144. HTTP_CONNECTION = 'keep-alive'
  145. HTTP_HOST = '192.168.5.171:9880'
  146. HTTP_ORIGIN = 'http://192.168.5.171:8085'
  147. HTTP_PRAGMA = 'no-cache'
  148. HTTP_REFERER = 'http://192.168.5.171:8085/agreement'
  149. HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36'
  150. LANG = 'en_US.UTF-8'
  151. PATH = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin'
  152. PATH_INFO = '/api/v1/school/agreement/1639/'
  153. QUERY_STRING = ''
  154. REMOTE_ADDR = '192.168.5.131'
  155. REMOTE_HOST = ''
  156. REQUEST_METHOD = 'GET'
  157. RUN_MAIN = 'true'
  158. SCRIPT_NAME = ''
  159. SERVER_NAME = 'agencyportal'
  160. SERVER_PORT = '9880'
  161. SERVER_PROTOCOL = 'HTTP/1.1'
  162. SERVER_SOFTWARE = 'WSGIServer/0.2'
  163. TZ = 'Asia/Jakarta'
  164. wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
  165. wsgi.file_wrapper = ''
  166. wsgi.input = <django.core.handlers.wsgi.LimitedStream object at 0x7f04c986bd30>
  167. wsgi.multiprocess = False
  168. wsgi.multithread = True
  169. wsgi.run_once = False
  170. wsgi.url_scheme = 'http'
  171. wsgi.version = '(1, 0)'
  172.  
  173. Settings:
  174. Using settings module career_support_api.settings
  175. ABSOLUTE_URL_OVERRIDES = {}
  176. ADMINS = [('Dimas', 'dimas.ari@frisidea.com'), ('Surya', 'komang.suryadana@frisidea.com')]
  177. ADMIN_COLOR_THEME = 'blue'
  178. ADMIN_HEADER_TITLE = 'Career Support Administrator'
  179. ALLOWED_HOSTS = ['localhost', '127.0.0.1', '0abf327e.ngrok.io', '192.168.5.46', '192.168.5.171', '192.168.5.173']
  180. ANYMAIL = {'SENDGRID_API_KEY': '********************'}
  181. APPEND_SLASH = True
  182. AUTHENTICATION_BACKENDS = ['cs_core.backends.authentications_backend.SchoolAuthenticationBackend', 'cs_core.backends.authentications_backend.CandidateAuthenticationBackend', 'cs_core.backends.authentications_backend.EmployerAuthenticationBackend', 'allauth.account.auth_backends.AuthenticationBackend', 'django.contrib.auth.backends.ModelBackend']
  183. AUTH_PASSWORD_VALIDATORS = '********************'
  184. AUTH_USER_MODEL = 'career_support_models.User'
  185. BASE_DIR = '/root/cs_api'
  186. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
  187. CACHE_MIDDLEWARE_ALIAS = 'default'
  188. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  189. CACHE_MIDDLEWARE_SECONDS = 600
  190. CANDIDATE_PORTAL_URL = 'http://localhost:8000'
  191. CELERY_ACCEPT_CONTENT = ['application/json']
  192. CELERY_BROKER_URL = 'redis://localhost:6379'
  193. CELERY_RESULT_BACKEND = 'redis://localhost:6379'
  194. CELERY_RESULT_SERIALIZER = 'json'
  195. CELERY_TASK_SERIALIZER = 'json'
  196. CELERY_TIMEZONE = 'Asia/Jakarta'
  197. CORS_ORIGIN_ALLOW_ALL = True
  198. CSRF_COOKIE_AGE = 31449600
  199. CSRF_COOKIE_DOMAIN = None
  200. CSRF_COOKIE_HTTPONLY = False
  201. CSRF_COOKIE_NAME = 'csrftoken'
  202. CSRF_COOKIE_PATH = '/'
  203. CSRF_COOKIE_SAMESITE = 'Lax'
  204. CSRF_COOKIE_SECURE = False
  205. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  206. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  207. CSRF_TRUSTED_ORIGINS = []
  208. CSRF_USE_SESSIONS = False
  209. DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'career_support', 'USER': 'frisidea', 'PASSWORD': '********************', 'HOST': '192.168.5.171', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  210. DATABASE_ROUTERS = []
  211. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  212. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  213. DATETIME_FORMAT = 'N j, Y, P'
  214. 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']
  215. DATE_FORMAT = 'N j, Y'
  216. 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']
  217. DEBUG = True
  218. DEBUG_PROPAGATE_EXCEPTIONS = False
  219. DECIMAL_SEPARATOR = '.'
  220. DEFAULT_CHARSET = 'utf-8'
  221. DEFAULT_CONTENT_TYPE = 'text/html'
  222. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  223. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  224. DEFAULT_FROM_EMAIL = 'noreply@frisidea.com'
  225. DEFAULT_INDEX_TABLESPACE = ''
  226. DEFAULT_TABLESPACE = ''
  227. DISALLOWED_USER_AGENTS = []
  228. DJADMIN_DYNAMIC_FIELD_DISPLAY = True
  229. DJADMIN_FIELD_DEPTH = 1
  230. EMAIL_BACKEND = 'anymail.backends.sendgrid.EmailBackend'
  231. EMAIL_HOST = 'localhost'
  232. EMAIL_HOST_PASSWORD = '********************'
  233. EMAIL_HOST_USER = ''
  234. EMAIL_PORT = 25
  235. EMAIL_SSL_CERTFILE = None
  236. EMAIL_SSL_KEYFILE = '********************'
  237. EMAIL_SUBJECT_PREFIX = '[Django] '
  238. EMAIL_TIMEOUT = None
  239. EMAIL_USE_LOCALTIME = False
  240. EMAIL_USE_SSL = False
  241. EMAIL_USE_TLS = False
  242. EMPLOYER_PORTAL_URL = 'http://localhost:8000'
  243. FILE_CHARSET = 'utf-8'
  244. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  245. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  246. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  247. FILE_UPLOAD_PERMISSIONS = None
  248. FILE_UPLOAD_TEMP_DIR = None
  249. FIRST_DAY_OF_WEEK = 0
  250. FIXTURE_DIRS = []
  251. FORCE_SCRIPT_NAME = None
  252. FORMAT_MODULE_PATH = None
  253. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  254. IGNORABLE_404_URLS = []
  255. INSTALLED_APPS = ['djadmin', 'advanced_filters', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.sites', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'celery', 'rest_framework', 'rest_framework_jwt', 'django_filters', 'corsheaders', 'drf_yasg', 'anymail', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.twitter', 'allauth.socialaccount.providers.facebook', 'allauth.socialaccount.providers.instagram', 'allauth.socialaccount.providers.linkedin_oauth2', 'career_support_models', 'cs_administrator.apps.CsAdministratorConfig', 'cs_advertisement.apps.CsAdvertisementConfig', 'cs_authentication.apps.CsAuthenticationConfig', 'cs_billing.apps.CsBillingConfig', 'cs_core.apps.CsCoreConfig', 'cs_candidate.apps.CsCandidateConfig', 'cs_employer.apps.CsEmployerConfig', 'cs_faq.apps.CsFAQConfig', 'cs_history.apps.CsHistoryConfig', 'cs_interview.apps.CsInterviewConfig', 'cs_job.apps.CsJobConfig', 'cs_log.apps.CsLogConfig', 'cs_message.apps.CsMessageConfig', 'cs_news.apps.CsNewsConfig', 'cs_organization.apps.CsOrganizationConfig', 'cs_profile.apps.CsProfileConfig', 'cs_region.apps.CsRegionConfig', 'cs_requirement.apps.CsRequirementConfig', 'cs_school.apps.CsSchoolConfig', 'cs_social.apps.CsSocialConfig', 'cs_transaction.apps.CsTransactionConfig', 'cs_user.apps.CsUserConfig', 'dbbackup']
  256. INTERNAL_IPS = []
  257. JWT_AUTH = {'JWT_PUBLIC_KEY': '********************', 'JWT_PRIVATE_KEY': '********************', 'JWT_ALGORITHM': 'HS512', 'JWT_PAYLOAD_GET_USERNAME_HANDLER': 'cs_core.handlers.jwt_get_username_from_payload_handler', 'JWT_RESPONSE_PAYLOAD_HANDLER': 'cs_core.handlers.jwt_response_payload_handler', 'JWT_VERIFY': True, 'JWT_VERIFY_EXPIRATION': True, 'JWT_EXPIRATION_DELTA': datetime.timedelta(seconds=18000), 'JWT_REFRESH_EXPIRATION_DELTA': datetime.timedelta(days=7), 'JWT_AUDIENCE': None, 'JWT_ISSUER': None, 'JWT_LEEWAY': 10, 'JWT_ALLOW_REFRESH': True, 'JWT_AUTH_HEADER_PREFIX': 'JWT'}
  258. 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')]
  259. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  260. LANGUAGE_CODE = 'en-us'
  261. LANGUAGE_COOKIE_AGE = None
  262. LANGUAGE_COOKIE_DOMAIN = None
  263. LANGUAGE_COOKIE_NAME = 'django_language'
  264. LANGUAGE_COOKIE_PATH = '/'
  265. LOCALE_PATHS = []
  266. LOGGING = {}
  267. LOGGING_CONFIG = 'logging.config.dictConfig'
  268. LOGIN_REDIRECT_URL = '/accounts/profile/'
  269. LOGIN_URL = '/accounts/login/'
  270. LOGOUT_REDIRECT_URL = None
  271. MANAGERS = []
  272. MEDIA_ROOT = '/root/cs_api/root_media'
  273. MEDIA_URL = '/media/'
  274. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  275. MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'corsheaders.middleware.CorsMiddleware', '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', 'djadmin.middleware.DJMiddleware']
  276. MIGRATION_MODULES = {}
  277. MONTH_DAY_FORMAT = 'F j'
  278. NUMBER_GROUPING = 0
  279. PASSWORD_HASHERS = '********************'
  280. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  281. PREPEND_WWW = False
  282. REST_FRAMEWORK = {'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',), 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_jwt.authentication.JSONWebTokenAuthentication',), 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend', 'rest_framework.filters.SearchFilter'), 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'PAGE_SIZE': 10, 'DATETIME_FORMAT': '%Y-%m-%d %H:%M:%S', 'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.URLPathVersioning', 'TEST_REQUEST_DEFAULT_FORMAT': 'json'}
  283. ROOT_URLCONF = 'career_support_api.urls'
  284. SCHOOL_PORTAL_URL = 'http://localhost:8000'
  285. SECRET_KEY = '********************'
  286. SECURE_BROWSER_XSS_FILTER = False
  287. SECURE_CONTENT_TYPE_NOSNIFF = False
  288. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  289. SECURE_HSTS_PRELOAD = False
  290. SECURE_HSTS_SECONDS = 0
  291. SECURE_PROXY_SSL_HEADER = None
  292. SECURE_REDIRECT_EXEMPT = []
  293. SECURE_SSL_HOST = None
  294. SECURE_SSL_REDIRECT = False
  295. SERVER_EMAIL = 'root@localhost'
  296. SESSION_CACHE_ALIAS = 'default'
  297. SESSION_COOKIE_AGE = 1209600
  298. SESSION_COOKIE_DOMAIN = None
  299. SESSION_COOKIE_HTTPONLY = True
  300. SESSION_COOKIE_NAME = 'sessionid'
  301. SESSION_COOKIE_PATH = '/'
  302. SESSION_COOKIE_SAMESITE = 'Lax'
  303. SESSION_COOKIE_SECURE = False
  304. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  305. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  306. SESSION_FILE_PATH = None
  307. SESSION_SAVE_EVERY_REQUEST = False
  308. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  309. SETTINGS_MODULE = 'career_support_api.settings'
  310. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  311. SHORT_DATE_FORMAT = 'm/d/Y'
  312. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  313. SILENCED_SYSTEM_CHECKS = []
  314. SITE_ID = 1
  315. SITE_PREFIX = 'http://192.168.5.171:9880'
  316. SOCIALACCOUNT_PROVIDERS = {'linkedin': {'SCOPE': ['r_basicprofile', 'r_emailaddress'], 'PROFILE_FIELDS': ['id', 'first-name', 'last-name', 'email-address', 'picture-url', 'public-profile-url']}}
  317. STATICFILES_DIRS = "('/root/cs_api/static',)"
  318. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  319. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  320. STATIC_ROOT = '/root/cs_api/root_static'
  321. STATIC_URL = '/static/'
  322. SWAGGER_SETTINGS = {'SECURITY_DEFINITIONS': {'JWT': {'type': 'apiKey', 'name': 'Authorization', 'in': 'header'}}, 'USE_SESSION_AUTH': False}
  323. TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/root/cs_api/templates'], 'APP_DIRS': True, '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']}}]
  324. TEST_NON_SERIALIZED_APPS = []
  325. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  326. THOUSAND_SEPARATOR = ','
  327. THUMBNAIL_FORCE_OVERWRITE = True
  328. TIME_FORMAT = 'P'
  329. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  330. TIME_ZONE = 'Asia/Jakarta'
  331. USE_I18N = True
  332. USE_L10N = True
  333. USE_THOUSAND_SEPARATOR = False
  334. USE_TZ = True
  335. USE_X_FORWARDED_HOST = False
  336. USE_X_FORWARDED_PORT = False
  337. WSGI_APPLICATION = 'career_support_api.wsgi.application'
  338. X_FRAME_OPTIONS = 'SAMEORIGIN'
  339. YEAR_MONTH_FORMAT = 'F Y'
  340.  
  341.  
  342. You're seeing this error because you have DEBUG = True in your
  343. Django settings file. Change that to False, and Django will
  344. display a standard page generated by the handler for this status code.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top