· 6 years ago · Jun 27, 2019, 07:16 AM
1TypeError at /api/v1/company/billing/generate/66/
2'ManyRelatedManager' object is not iterable
3
4Request Method: GET
5Request URL: https://backend.karir.work/api/v1/company/billing/generate/66/
6Django Version: 2.2.1
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: Thu, 27 Jun 2019 14:11:42 +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_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']
60Installed 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
71Template error:
72In template /opt/cs_api/templates/billing/invoice.html, error at line 408
73 'ManyRelatedManager' object is not iterable
74 398 : <a href="{{ads.link}}">
75 399 : <span lang=IN style='font-size:9.0pt;mso-bidi-font-size:10.0pt;line-height:150%;font-family: sans-serif;'>
76 400 : {{ads.link}}
77 401 : </span>
78 402 : </a>
79 403 : <span lang=IN style='font-size:9.0pt;mso-bidi-font-size:10.0pt;line-height:150%;font-family: sans-serif;'>
80 404 : </span>
81 405 : </p>
82 406 : </td>
83 407 : <td width=151 style='width:4.0cm;border-top:none;border-left:none;border-bottom:solid windowtext 1.5pt;border-right:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;mso-border-left-alt:solid windowtext 1.5pt;padding:0cm 5.4pt 0cm 5.4pt;height:17.05pt'>
84 408 : {% for position in ads.positions %}
85 409 : <p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:150%'>
86 410 : <span lang=IN style='font-size:9.0pt;mso-bidi-font-size:10.0pt;line-height:150%;font-family: sans-serif;'>
87 411 : {{position.school.name}}<o:p></o:p>
88 412 : </span>
89 413 : </p>
90 414 : {% endfor %}
91 415 : </td>
92 416 : {% with ads.positions|first as ads_price %}
93 417 : <td width=76 style='width:2.0cm;border-top:none;border-left:none;border-bottom:solid windowtext 1.5pt;border-right:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;mso-border-left-alt:solid windowtext 1.5pt;padding:0cm 5.4pt 0cm 5.4pt;height:17.05pt'>
94 418 : <p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt;text-align:center;line-height:150%'>
95
96
97Traceback:
98
99File "/opt/env/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
100 34. response = get_response(request)
101
102File "/opt/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
103 115. response = self.process_exception_by_middleware(e, request)
104
105File "/opt/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
106 113. response = wrapped_callback(request, *callback_args, **callback_kwargs)
107
108File "/opt/env/lib/python3.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
109 54. return view_func(*args, **kwargs)
110
111File "/opt/env/lib/python3.7/site-packages/django/views/generic/base.py" in view
112 71. return self.dispatch(request, *args, **kwargs)
113
114File "/opt/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
115 495. response = self.handle_exception(exc)
116
117File "/opt/env/lib/python3.7/site-packages/rest_framework/views.py" in handle_exception
118 455. self.raise_uncaught_exception(exc)
119
120File "/opt/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
121 492. response = handler(request, *args, **kwargs)
122
123File "/opt/cs_api/cs_employer/views/billing.py" in get
124 56. pdf = render_to_pdf('billing/invoice.html', contextData)
125
126File "/opt/cs_api/cs_core/utils/pdf.py" in render_to_pdf
127 9. html = template.render(context_dict)
128
129File "/opt/env/lib/python3.7/site-packages/django/template/backends/django.py" in render
130 61. return self.template.render(context)
131
132File "/opt/env/lib/python3.7/site-packages/django/template/base.py" in render
133 171. return self._render(context)
134
135File "/opt/env/lib/python3.7/site-packages/django/template/base.py" in _render
136 163. return self.nodelist.render(context)
137
138File "/opt/env/lib/python3.7/site-packages/django/template/base.py" in render
139 937. bit = node.render_annotated(context)
140
141File "/opt/env/lib/python3.7/site-packages/django/template/base.py" in render_annotated
142 904. return self.render(context)
143
144File "/opt/env/lib/python3.7/site-packages/django/template/defaulttags.py" in render
145 209. nodelist.append(node.render_annotated(context))
146
147File "/opt/env/lib/python3.7/site-packages/django/template/base.py" in render_annotated
148 904. return self.render(context)
149
150File "/opt/env/lib/python3.7/site-packages/django/template/defaulttags.py" in render
151 165. values = list(values)
152
153Exception Type: TypeError at /api/v1/company/billing/generate/66/
154Exception Value: 'ManyRelatedManager' object is not iterable
155Request information:
156USER: athalya.wahyu12@frisidea.com
157
158GET: No GET data
159
160POST: No POST data
161
162FILES: No FILES data
163
164COOKIES: No cookie data
165
166META:
167CONTENT_LENGTH = ''
168CONTENT_TYPE = ''
169DOCUMENT_ROOT = '/usr/share/nginx/html'
170HTTPS = 'on'
171HTTP_ACCEPT = 'application/json, text/plain, */*'
172HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
173HTTP_ACCEPT_LANGUAGE = 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7'
174HTTP_AUTHORIZATION = 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjo0MzQsInVzZXJuYW1lIjoiYXRoYWx5YS53YWh5dTEyQGZyaXNpZGVhLmNvbSIsImV4cCI6MTU2MTYzNzQ5NiwiZW1haWwiOiJhdGhhbHlhLndhaHl1MTJAZnJpc2lkZWEuY29tIiwib3JpZ19pYXQiOjE1NjE2MTczODJ9.dmC9TrJfsHV8BagbMFH6DnNIVV6AdA-4DdXFoT7pj2Edw4aYis54F281RG9P5QxBGIleVb0V8O22SOqMZlgPbQ'
175HTTP_CACHE_CONTROL = 'no-cache'
176HTTP_HOST = 'backend.karir.work'
177HTTP_ORIGIN = 'http://0.0.0.0:8000'
178HTTP_PRAGMA = 'no-cache'
179HTTP_REFERER = 'http://0.0.0.0:8000/billing/'
180HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36'
181PATH_INFO = '/api/v1/company/billing/generate/66/'
182QUERY_STRING = ''
183REMOTE_ADDR = '172.104.177.245'
184REMOTE_PORT = '56418'
185REQUEST_METHOD = 'GET'
186REQUEST_SCHEME = 'https'
187REQUEST_URI = '/api/v1/company/billing/generate/66/'
188SCRIPT_NAME = ''
189SERVER_NAME = 'backend.karir.work'
190SERVER_PORT = '443'
191SERVER_PROTOCOL = 'HTTP/2.0'
192uwsgi.node = b'li1441-76.members.linode.com'
193uwsgi.version = b'2.0.18'
194wsgi.errors = <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>
195wsgi.file_wrapper = ''
196wsgi.input = <uwsgi._Input object at 0x7f6d0d496990>
197wsgi.multiprocess = True
198wsgi.multithread = False
199wsgi.run_once = False
200wsgi.url_scheme = 'https'
201wsgi.version = '(1, 0)'
202
203Settings:
204Using settings module career_support_api.settings
205ABSOLUTE_URL_OVERRIDES = {}
206ADMINS = [('Dimas', 'dimas.ari@frisidea.com'), ('Surya', 'komang.suryadana@frisidea.com')]
207ADMIN_COLOR_THEME = 'blue'
208ADMIN_HEADER_TITLE = 'Career Support Administrator'
209ALLOWED_HOSTS = ['localhost', '*.karir.work', '.karir.work', 'karir.work', '.career.support', '127.0.0.1', '0abf327e.ngrok.io', '45.118.134.76', '192.168.5.46', '192.168.5.171']
210ANYMAIL = {'SENDGRID_API_KEY': '********************'}
211APPEND_SLASH = True
212AUTHENTICATION_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']
213AUTH_PASSWORD_VALIDATORS = '********************'
214AUTH_USER_MODEL = 'career_support_models.User'
215BASE_DIR = '/opt/cs_api'
216CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
217CACHE_MIDDLEWARE_ALIAS = 'default'
218CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
219CACHE_MIDDLEWARE_SECONDS = 600
220CANDIDATE_PORTAL_URL = 'https://karir.work/student'
221CELERY_ACCEPT_CONTENT = ['application/json']
222CELERY_BROKER_URL = 'redis://localhost:6379'
223CELERY_RESULT_BACKEND = 'redis://localhost:6379'
224CELERY_RESULT_SERIALIZER = 'json'
225CELERY_TASK_SERIALIZER = 'json'
226CELERY_TIMEZONE = 'Asia/Jakarta'
227CORS_ORIGIN_ALLOW_ALL = True
228CSRF_COOKIE_AGE = 31449600
229CSRF_COOKIE_DOMAIN = None
230CSRF_COOKIE_HTTPONLY = False
231CSRF_COOKIE_NAME = 'csrftoken'
232CSRF_COOKIE_PATH = '/'
233CSRF_COOKIE_SAMESITE = 'Lax'
234CSRF_COOKIE_SECURE = False
235CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
236CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
237CSRF_TRUSTED_ORIGINS = []
238CSRF_USE_SESSIONS = False
239DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'career_support', 'USER': 'frisidea', 'PASSWORD': '********************', 'HOST': '45.118.134.76', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
240DATABASE_ROUTERS = []
241DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
242DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
243DATETIME_FORMAT = 'N j, Y, P'
244DATETIME_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']
245DATE_FORMAT = 'N j, Y'
246DATE_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']
247DEBUG = True
248DEBUG_PROPAGATE_EXCEPTIONS = False
249DECIMAL_SEPARATOR = '.'
250DEFAULT_CHARSET = 'utf-8'
251DEFAULT_CONTENT_TYPE = 'text/html'
252DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
253DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
254DEFAULT_FROM_EMAIL = 'noreply@frisidea.com'
255DEFAULT_INDEX_TABLESPACE = ''
256DEFAULT_TABLESPACE = ''
257DISALLOWED_USER_AGENTS = []
258DJADMIN_DYNAMIC_FIELD_DISPLAY = True
259DJADMIN_FIELD_DEPTH = 1
260EMAIL_BACKEND = 'anymail.backends.sendgrid.EmailBackend'
261EMAIL_HOST = 'localhost'
262EMAIL_HOST_PASSWORD = '********************'
263EMAIL_HOST_USER = ''
264EMAIL_PORT = 25
265EMAIL_SSL_CERTFILE = None
266EMAIL_SSL_KEYFILE = '********************'
267EMAIL_SUBJECT_PREFIX = '[Django] '
268EMAIL_TIMEOUT = None
269EMAIL_USE_LOCALTIME = False
270EMAIL_USE_SSL = False
271EMAIL_USE_TLS = False
272EMPLOYER_PORTAL_URL = 'https://company.karir.work'
273FILE_CHARSET = 'utf-8'
274FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
275FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
276FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
277FILE_UPLOAD_PERMISSIONS = None
278FILE_UPLOAD_TEMP_DIR = None
279FIRST_DAY_OF_WEEK = 0
280FIXTURE_DIRS = []
281FORCE_SCRIPT_NAME = None
282FORGOT_PASSWORD_URL = '********************'
283FORMAT_MODULE_PATH = None
284FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
285FRONTEND_IP = '45.118.134.76'
286GODADDY_KEY = '********************'
287GODADDY_SECRET = '********************'
288GODADDY_URL = 'https://api.godaddy.com/v1/domains/karir.work/records'
289IGNORABLE_404_URLS = []
290INSTALLED_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']
291INTERNAL_IPS = []
292JWT_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'}
293LANGUAGES = [('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')]
294LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
295LANGUAGE_CODE = 'en-us'
296LANGUAGE_COOKIE_AGE = None
297LANGUAGE_COOKIE_DOMAIN = None
298LANGUAGE_COOKIE_NAME = 'django_language'
299LANGUAGE_COOKIE_PATH = '/'
300LOCALE_PATHS = []
301LOGGING = {}
302LOGGING_CONFIG = 'logging.config.dictConfig'
303LOGIN_REDIRECT_URL = '/accounts/profile/'
304LOGIN_URL = '/accounts/login/'
305LOGOUT_REDIRECT_URL = None
306MANAGERS = []
307MEDIA_ROOT = '/opt/cs_api/root_media'
308MEDIA_URL = '/media/'
309MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
310MIDDLEWARE = ['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']
311MIDTRANS_PAYMENT_URL = 'https://app.sandbox.midtrans.com/snap/v1/transactions'
312MIDTRANS_SERVER_KEY = '********************'
313MIGRATION_MODULES = {}
314MONTH_DAY_FORMAT = 'F j'
315NUMBER_GROUPING = 0
316PASSWORD_HASHERS = '********************'
317PASSWORD_RESET_TIMEOUT_DAYS = '********************'
318PREPEND_WWW = False
319REST_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'}
320ROOT_URLCONF = 'career_support_api.urls'
321SCHOOL_PORTAL_URL = 'https://karir.work/school'
322SECRET_KEY = '********************'
323SECURE_BROWSER_XSS_FILTER = False
324SECURE_CONTENT_TYPE_NOSNIFF = False
325SECURE_HSTS_INCLUDE_SUBDOMAINS = False
326SECURE_HSTS_PRELOAD = False
327SECURE_HSTS_SECONDS = 0
328SECURE_PROXY_SSL_HEADER = None
329SECURE_REDIRECT_EXEMPT = []
330SECURE_SSL_HOST = None
331SECURE_SSL_REDIRECT = False
332SERVER_EMAIL = 'root@localhost'
333SESSION_CACHE_ALIAS = 'default'
334SESSION_COOKIE_AGE = 1209600
335SESSION_COOKIE_DOMAIN = None
336SESSION_COOKIE_HTTPONLY = True
337SESSION_COOKIE_NAME = 'sessionid'
338SESSION_COOKIE_PATH = '/'
339SESSION_COOKIE_SAMESITE = 'Lax'
340SESSION_COOKIE_SECURE = False
341SESSION_ENGINE = 'django.contrib.sessions.backends.db'
342SESSION_EXPIRE_AT_BROWSER_CLOSE = False
343SESSION_FILE_PATH = None
344SESSION_SAVE_EVERY_REQUEST = False
345SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
346SETTINGS_MODULE = 'career_support_api.settings'
347SHORT_DATETIME_FORMAT = 'm/d/Y P'
348SHORT_DATE_FORMAT = 'm/d/Y'
349SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
350SILENCED_SYSTEM_CHECKS = []
351SITE_ID = 1
352SITE_PREFIX = 'https://backend.karir.work'
353SOCIALACCOUNT_PROVIDERS = {'linkedin': {'SCOPE': ['r_basicprofile', 'r_emailaddress'], 'PROFILE_FIELDS': ['id', 'first-name', 'last-name', 'email-address', 'picture-url', 'public-profile-url']}}
354STATICFILES_DIRS = "('/opt/cs_api/static',)"
355STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
356STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
357STATIC_ROOT = '/opt/cs_api/root_static'
358STATIC_URL = '/static/'
359SWAGGER_SETTINGS = {'SECURITY_DEFINITIONS': {'JWT': {'type': 'apiKey', 'name': 'Authorization', 'in': 'header'}}, 'USE_SESSION_AUTH': False}
360TEMPLATES = [{'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']}}]
361TEST_NON_SERIALIZED_APPS = []
362TEST_RUNNER = 'django.test.runner.DiscoverRunner'
363THOUSAND_SEPARATOR = ','
364THUMBNAIL_FORCE_OVERWRITE = True
365TIME_FORMAT = 'P'
366TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
367TIME_ZONE = 'Asia/Jakarta'
368URLBASE = 'karir.work'
369USE_I18N = True
370USE_L10N = True
371USE_THOUSAND_SEPARATOR = False
372USE_TZ = True
373USE_X_FORWARDED_HOST = False
374USE_X_FORWARDED_PORT = False
375WSGI_APPLICATION = 'career_support_api.wsgi.application'
376X_FRAME_OPTIONS = 'SAMEORIGIN'
377YEAR_MONTH_FORMAT = 'F Y'
378
379
380You're seeing this error because you have DEBUG = True in your
381Django settings file. Change that to False, and Django will
382display a standard page generated by the handler for this status code.