· 6 years ago · Jul 24, 2019, 02:48 AM
1TypeError at /api/v1/candidate/education/detail/
2gettext() missing 1 required positional argument: 'message'
3
4Request Method: POST
5Request URL: https://backend.career.support/api/v1/candidate/education/detail/
6Django Version: 2.2.3
7Python Executable: /opt/env/bin/uwsgi
8Python Version: 3.7.3
9Python Path: ['/opt/cs_api', '.', '', '/opt/env/lib/python37.zip', '/opt/env/lib/python3.7', '/opt/env/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7', '/opt/env/lib/python3.7/site-packages']
10Server time: Wed, 24 Jul 2019 09:44:46 +0700
11Installed 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_landing.apps.CsLandingConfig',
49 'cs_log.apps.CsLogConfig',
50 'cs_message.apps.CsMessageConfig',
51 'cs_news.apps.CsNewsConfig',
52 'cs_organization.apps.CsOrganizationConfig',
53 'cs_profile.apps.CsProfileConfig',
54 'cs_region.apps.CsRegionConfig',
55 'cs_requirement.apps.CsRequirementConfig',
56 'cs_school.apps.CsSchoolConfig',
57 'cs_social.apps.CsSocialConfig',
58 'cs_transaction.apps.CsTransactionConfig',
59 'cs_user.apps.CsUserConfig',
60 'dbbackup']
61Installed Middleware:
62['django.middleware.security.SecurityMiddleware',
63 'corsheaders.middleware.CorsMiddleware',
64 'django.contrib.sessions.middleware.SessionMiddleware',
65 'django.middleware.common.CommonMiddleware',
66 'django.middleware.csrf.CsrfViewMiddleware',
67 'django.contrib.auth.middleware.AuthenticationMiddleware',
68 'django.contrib.messages.middleware.MessageMiddleware',
69 'django.middleware.clickjacking.XFrameOptionsMiddleware',
70 'djadmin.middleware.DJMiddleware']
71
72
73Traceback:
74
75File "/opt/cs_api/cs_candidate/serializers/education.py" in create
76 48. )[0]
77
78File "/opt/env/lib/python3.7/site-packages/django/db/models/query.py" in __getitem__
79 309. return qs._result_cache[0]
80
81During handling of the above exception (list index out of range), another exception occurred:
82
83File "/opt/env/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
84 34. response = get_response(request)
85
86File "/opt/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
87 115. response = self.process_exception_by_middleware(e, request)
88
89File "/opt/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
90 113. response = wrapped_callback(request, *callback_args, **callback_kwargs)
91
92File "/opt/env/lib/python3.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
93 54. return view_func(*args, **kwargs)
94
95File "/opt/env/lib/python3.7/site-packages/rest_framework/viewsets.py" in view
96 116. return self.dispatch(request, *args, **kwargs)
97
98File "/opt/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
99 495. response = self.handle_exception(exc)
100
101File "/opt/env/lib/python3.7/site-packages/rest_framework/views.py" in handle_exception
102 455. self.raise_uncaught_exception(exc)
103
104File "/opt/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
105 492. response = handler(request, *args, **kwargs)
106
107File "/opt/cs_api/cs_candidate/views/educations.py" in create
108 47. objectResponse = serializer.save()
109
110File "/opt/env/lib/python3.7/site-packages/rest_framework/serializers.py" in save
111 214. self.instance = self.create(validated_data)
112
113File "/opt/cs_api/cs_candidate/serializers/education.py" in create
114 93. msg = _()
115
116Exception Type: TypeError at /api/v1/candidate/education/detail/
117Exception Value: gettext() missing 1 required positional argument: 'message'
118Request information:
119USER: irf94786@bcaoo.com
120
121GET: No GET data
122
123POST: No POST data
124
125FILES: No FILES data
126
127COOKIES: No cookie data
128
129META:
130CONTENT_LENGTH = '167'
131CONTENT_TYPE = 'application/json;charset=UTF-8'
132DOCUMENT_ROOT = '/usr/share/nginx/html'
133HTTPS = 'on'
134HTTP_ACCEPT = 'application/json, text/plain, */*'
135HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
136HTTP_ACCEPT_LANGUAGE = 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7'
137HTTP_AUTHORIZATION = 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjo0OTEsInVzZXJuYW1lIjoiaXJmOTQ3ODZAYmNhb28uY29tIiwiZXhwIjoxNTYzOTU0MTkzLCJlbWFpbCI6ImlyZjk0Nzg2QGJjYW9vLmNvbSIsIm9yaWdfaWF0IjoxNTYzOTM1MzE1fQ.d4CqOn4jmZkIfupoVWO3nHdzLMiE5d0c9WBQBhxqY0XgP6892qQqFfqj9ndCLkx8myHBoY5HK3stsa5de2bosw'
138HTTP_CACHE_CONTROL = 'no-cache'
139HTTP_CONTENT_LENGTH = '167'
140HTTP_CONTENT_TYPE = 'application/json;charset=UTF-8'
141HTTP_HOST = 'backend.career.support'
142HTTP_ORIGIN = 'http://10.0.0.3:8080'
143HTTP_PRAGMA = 'no-cache'
144HTTP_REFERER = 'http://10.0.0.3:8080/profile'
145HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36'
146PATH_INFO = '/api/v1/candidate/education/detail/'
147QUERY_STRING = ''
148REMOTE_ADDR = '172.104.177.245'
149REMOTE_PORT = '44322'
150REQUEST_METHOD = 'POST'
151REQUEST_SCHEME = 'https'
152REQUEST_URI = '/api/v1/candidate/education/detail/'
153SCRIPT_NAME = ''
154SERVER_NAME = 'backend.career.support'
155SERVER_PORT = '443'
156SERVER_PROTOCOL = 'HTTP/2.0'
157uwsgi.node = b'CareerSupport'
158uwsgi.version = b'2.0.18'
159wsgi.errors = <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>
160wsgi.file_wrapper = ''
161wsgi.input = <uwsgi._Input object at 0x7f7f04a12bd0>
162wsgi.multiprocess = True
163wsgi.multithread = False
164wsgi.run_once = False
165wsgi.url_scheme = 'https'
166wsgi.version = '(1, 0)'
167
168Settings:
169Using settings module career_support_api.settings
170ABSOLUTE_URL_OVERRIDES = {}
171ADMINS = [('Dimas', 'dimas.ari@frisidea.com'), ('Surya', 'komang.suryadana@frisidea.com')]
172ADMIN_COLOR_THEME = 'blue'
173ADMIN_HEADER_TITLE = 'Career Support Administrator'
174ALLOWED_HOSTS = ['localhost', '*.karir.work', '.karir.work', 'karir.work', '*.career.support', '.career.support', '127.0.0.1', '0abf327e.ngrok.io', '45.118.134.76', '128.199.224.138', '192.168.5.46', '192.168.5.171']
175ANYMAIL = {'SENDGRID_API_KEY': '********************'}
176APPEND_SLASH = True
177AUTHENTICATION_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']
178AUTH_PASSWORD_VALIDATORS = '********************'
179AUTH_USER_MODEL = 'career_support_models.User'
180BASE_DIR = '/opt/cs_api'
181CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
182CACHE_MIDDLEWARE_ALIAS = 'default'
183CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
184CACHE_MIDDLEWARE_SECONDS = 600
185CANDIDATE_PORTAL_URL = 'https://career.support/student'
186CELERY_ACCEPT_CONTENT = ['application/json']
187CELERY_BROKER_URL = 'redis://localhost:6379'
188CELERY_RESULT_BACKEND = 'redis://localhost:6379'
189CELERY_RESULT_SERIALIZER = 'json'
190CELERY_TASK_SERIALIZER = 'json'
191CELERY_TIMEZONE = 'Asia/Jakarta'
192CORS_ORIGIN_ALLOW_ALL = True
193CSRF_COOKIE_AGE = 31449600
194CSRF_COOKIE_DOMAIN = None
195CSRF_COOKIE_HTTPONLY = False
196CSRF_COOKIE_NAME = 'csrftoken'
197CSRF_COOKIE_PATH = '/'
198CSRF_COOKIE_SAMESITE = 'Lax'
199CSRF_COOKIE_SECURE = False
200CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
201CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
202CSRF_TRUSTED_ORIGINS = []
203CSRF_USE_SESSIONS = False
204DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'career_support', 'USER': 'frisidea', 'PASSWORD': '********************', 'HOST': '128.199.224.138', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
205DATABASE_ROUTERS = []
206DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
207DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
208DATETIME_FORMAT = 'N j, Y, P'
209DATETIME_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']
210DATE_FORMAT = 'N j, Y'
211DATE_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']
212DEBUG = True
213DEBUG_PROPAGATE_EXCEPTIONS = False
214DECIMAL_SEPARATOR = '.'
215DEFAULT_CHARSET = 'utf-8'
216DEFAULT_CONTENT_TYPE = 'text/html'
217DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
218DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
219DEFAULT_FROM_EMAIL = 'noreply@career.support'
220DEFAULT_INDEX_TABLESPACE = ''
221DEFAULT_TABLESPACE = ''
222DISALLOWED_USER_AGENTS = []
223DJADMIN_DYNAMIC_FIELD_DISPLAY = True
224DJADMIN_FIELD_DEPTH = 1
225EMAIL_BACKEND = 'anymail.backends.sendgrid.EmailBackend'
226EMAIL_HOST = 'localhost'
227EMAIL_HOST_PASSWORD = '********************'
228EMAIL_HOST_USER = ''
229EMAIL_PORT = 25
230EMAIL_SSL_CERTFILE = None
231EMAIL_SSL_KEYFILE = '********************'
232EMAIL_SUBJECT_PREFIX = '[Django] '
233EMAIL_TIMEOUT = None
234EMAIL_USE_LOCALTIME = False
235EMAIL_USE_SSL = False
236EMAIL_USE_TLS = False
237EMPLOYER_PORTAL_URL = 'https://company.career.support'
238FILE_CHARSET = 'utf-8'
239FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
240FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
241FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
242FILE_UPLOAD_PERMISSIONS = None
243FILE_UPLOAD_TEMP_DIR = None
244FIRST_DAY_OF_WEEK = 0
245FIXTURE_DIRS = []
246FORCE_SCRIPT_NAME = None
247FORGOT_PASSWORD_URL = '********************'
248FORMAT_MODULE_PATH = None
249FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
250FRONTEND_IP = '128.199.224.138'
251GODADDY_KEY = '********************'
252GODADDY_SECRET = '********************'
253GODADDY_URL = 'https://api.godaddy.com/v1/domains/career.support/records'
254IGNORABLE_404_URLS = []
255INSTALLED_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_landing.apps.CsLandingConfig', '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']
256INTERNAL_IPS = []
257JWT_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'}
258LANGUAGES = [('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'), ('hy', 'Armenian'), ('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')]
259LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
260LANGUAGE_CODE = 'en-us'
261LANGUAGE_COOKIE_AGE = None
262LANGUAGE_COOKIE_DOMAIN = None
263LANGUAGE_COOKIE_NAME = 'django_language'
264LANGUAGE_COOKIE_PATH = '/'
265LOCALE_PATHS = []
266LOGGING = {}
267LOGGING_CONFIG = 'logging.config.dictConfig'
268LOGIN_REDIRECT_URL = '/accounts/profile/'
269LOGIN_URL = '/accounts/login/'
270LOGOUT_REDIRECT_URL = None
271MANAGERS = []
272MEDIA_ROOT = '/opt/cs_api/root_media'
273MEDIA_URL = '/media/'
274MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
275MIDDLEWARE = ['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']
276MIDTRANS_PAYMENT_URL = 'https://app.sandbox.midtrans.com/snap/v1/transactions'
277MIDTRANS_SERVER_KEY = '********************'
278MIGRATION_MODULES = {}
279MONTH_DAY_FORMAT = 'F j'
280NUMBER_GROUPING = 0
281PASSWORD_HASHERS = '********************'
282PASSWORD_RESET_TIMEOUT_DAYS = '********************'
283PREPEND_WWW = False
284REST_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'}
285ROOT_URLCONF = 'career_support_api.urls'
286SCHOOL_PORTAL_URL = 'https://career.support/school'
287SECRET_KEY = '********************'
288SECURE_BROWSER_XSS_FILTER = False
289SECURE_CONTENT_TYPE_NOSNIFF = False
290SECURE_HSTS_INCLUDE_SUBDOMAINS = False
291SECURE_HSTS_PRELOAD = False
292SECURE_HSTS_SECONDS = 0
293SECURE_PROXY_SSL_HEADER = None
294SECURE_REDIRECT_EXEMPT = []
295SECURE_SSL_HOST = None
296SECURE_SSL_REDIRECT = False
297SERVER_EMAIL = 'root@localhost'
298SESSION_CACHE_ALIAS = 'default'
299SESSION_COOKIE_AGE = 1209600
300SESSION_COOKIE_DOMAIN = None
301SESSION_COOKIE_HTTPONLY = True
302SESSION_COOKIE_NAME = 'sessionid'
303SESSION_COOKIE_PATH = '/'
304SESSION_COOKIE_SAMESITE = 'Lax'
305SESSION_COOKIE_SECURE = False
306SESSION_ENGINE = 'django.contrib.sessions.backends.db'
307SESSION_EXPIRE_AT_BROWSER_CLOSE = False
308SESSION_FILE_PATH = None
309SESSION_SAVE_EVERY_REQUEST = False
310SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
311SETTINGS_MODULE = 'career_support_api.settings'
312SHORT_DATETIME_FORMAT = 'm/d/Y P'
313SHORT_DATE_FORMAT = 'm/d/Y'
314SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
315SILENCED_SYSTEM_CHECKS = []
316SITE_ID = 1
317SITE_PREFIX = 'https://backend.career.support'
318SOCIALACCOUNT_PROVIDERS = {'linkedin': {'SCOPE': ['r_basicprofile', 'r_emailaddress'], 'PROFILE_FIELDS': ['id', 'first-name', 'last-name', 'email-address', 'picture-url', 'public-profile-url']}}
319STATICFILES_DIRS = "('/opt/cs_api/static',)"
320STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
321STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
322STATIC_ROOT = '/opt/cs_api/root_static'
323STATIC_URL = '/static/'
324SWAGGER_SETTINGS = {'SECURITY_DEFINITIONS': {'JWT': {'type': 'apiKey', 'name': 'Authorization', 'in': 'header'}}, 'USE_SESSION_AUTH': False}
325TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/opt/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']}}]
326TEST_NON_SERIALIZED_APPS = []
327TEST_RUNNER = 'django.test.runner.DiscoverRunner'
328THOUSAND_SEPARATOR = ','
329THUMBNAIL_FORCE_OVERWRITE = True
330TIME_FORMAT = 'P'
331TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
332TIME_ZONE = 'Asia/Jakarta'
333URLBASE = 'career.support'
334USE_I18N = True
335USE_L10N = True
336USE_THOUSAND_SEPARATOR = False
337USE_TZ = True
338USE_X_FORWARDED_HOST = False
339USE_X_FORWARDED_PORT = False
340WSGI_APPLICATION = 'career_support_api.wsgi.application'
341X_FRAME_OPTIONS = 'SAMEORIGIN'
342YEAR_MONTH_FORMAT = 'F Y'
343
344
345You're seeing this error because you have DEBUG = True in your
346Django settings file. Change that to False, and Django will
347display a standard page generated by the handler for this status code.