· 6 years ago · Apr 29, 2019, 10:08 AM
1NameError at /api/v1/authentication/school/register/
2name 'OTP' is not defined
3
4Request Method: POST
5Request URL: http://192.168.5.171:9880/api/v1/authentication/school/register/
6Django Version: 2.1.7
7Python Executable: /root/cs_api/env/bin/python
8Python Version: 3.7.0
9Python 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', '/root/cs_api']
10Server time: Mon, 29 Apr 2019 17:03:17 +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
71
72Traceback:
73
74File "/root/cs_api/env/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
75 34. response = get_response(request)
76
77File "/root/cs_api/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
78 126. response = self.process_exception_by_middleware(e, request)
79
80File "/root/cs_api/env/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
81 124. response = wrapped_callback(request, *callback_args, **callback_kwargs)
82
83File "/root/cs_api/env/lib/python3.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
84 54. return view_func(*args, **kwargs)
85
86File "/root/cs_api/env/lib/python3.7/site-packages/django/views/generic/base.py" in view
87 68. return self.dispatch(request, *args, **kwargs)
88
89File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
90 495. response = self.handle_exception(exc)
91
92File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/views.py" in handle_exception
93 455. self.raise_uncaught_exception(exc)
94
95File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
96 492. response = handler(request, *args, **kwargs)
97
98File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/generics.py" in post
99 192. return self.create(request, *args, **kwargs)
100
101File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/mixins.py" in create
102 21. self.perform_create(serializer)
103
104File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/mixins.py" in perform_create
105 26. serializer.save()
106
107File "/root/cs_api/env/lib/python3.7/site-packages/rest_framework/serializers.py" in save
108 214. self.instance = self.create(validated_data)
109
110File "/root/cs_api/cs_authentication/serializers/school.py" in create
111 110. OTP.objects.create(
112
113Exception Type: NameError at /api/v1/authentication/school/register/
114Exception Value: name 'OTP' is not defined
115Request information:
116USER: AnonymousUser
117
118GET: No GET data
119
120POST: No POST data
121
122FILES: No FILES data
123
124COOKIES: No cookie data
125
126META:
127CONTENT_LENGTH = '129'
128CONTENT_TYPE = 'application/json;charset=UTF-8'
129DJANGO_SETTINGS_MODULE = 'career_support_api.settings'
130GATEWAY_INTERFACE = 'CGI/1.1'
131HISTCONTROL = 'ignoredups'
132HISTSIZE = '1000'
133HOME = '/root'
134HOSTNAME = 'agencyportal'
135HTTP_ACCEPT = 'application/json, text/plain, */*'
136HTTP_ACCEPT_ENCODING = 'gzip, deflate'
137HTTP_ACCEPT_LANGUAGE = 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7'
138HTTP_CACHE_CONTROL = 'no-cache'
139HTTP_CONNECTION = 'keep-alive'
140HTTP_HOST = '192.168.5.171:9880'
141HTTP_ORIGIN = 'http://localhost:8080'
142HTTP_PRAGMA = 'no-cache'
143HTTP_REFERER = 'http://localhost:8080/signup'
144HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36'
145LANG = 'en_US.UTF-8'
146LC_CTYPE = 'UTF-8'
147LESSOPEN = '||/usr/bin/lesspipe.sh %s'
148LOGNAME = 'root'
149LS_COLORS = 'rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:'
150MAIL = '/var/spool/mail/root'
151PATH = '/root/cs_api/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin'
152PATH_INFO = '/api/v1/authentication/school/register/'
153PWD = '/root/cs_api'
154QUERY_STRING = ''
155REMOTE_ADDR = '192.168.5.130'
156REMOTE_HOST = ''
157REQUEST_METHOD = 'POST'
158RUN_MAIN = 'true'
159SCRIPT_NAME = ''
160SELINUX_LEVEL_REQUESTED = ''
161SELINUX_ROLE_REQUESTED = ''
162SELINUX_USE_CURRENT_RANGE = ''
163SERVER_NAME = 'agencyportal'
164SERVER_PORT = '9880'
165SERVER_PROTOCOL = 'HTTP/1.1'
166SERVER_SOFTWARE = 'WSGIServer/0.2'
167SHELL = '/bin/bash'
168SHLVL = '2'
169SSH_CLIENT = '192.168.5.45 51062 22'
170SSH_CONNECTION = '192.168.5.45 51062 192.168.5.171 22'
171SSH_TTY = '/dev/pts/1'
172TERM = 'xterm-256color'
173TZ = 'Asia/Jakarta'
174USER = 'root'
175VIRTUAL_ENV = '/root/cs_api/env'
176XDG_RUNTIME_DIR = '/run/user/0'
177XDG_SESSION_ID = '10'
178_ = '/root/cs_api/env/bin/python'
179wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
180wsgi.file_wrapper = ''
181wsgi.input = <django.core.handlers.wsgi.LimitedStream object at 0x7fa066b08908>
182wsgi.multiprocess = False
183wsgi.multithread = True
184wsgi.run_once = False
185wsgi.url_scheme = 'http'
186wsgi.version = '(1, 0)'
187
188Settings:
189Using settings module career_support_api.settings
190ABSOLUTE_URL_OVERRIDES = {}
191ADMINS = [('Dimas', 'dimas.ari@frisidea.com'), ('Surya', 'komang.suryadana@frisidea.com')]
192ADMIN_COLOR_THEME = 'blue'
193ADMIN_HEADER_TITLE = 'Career Support Administrator'
194ALLOWED_HOSTS = ['localhost', '127.0.0.1', '0abf327e.ngrok.io', '192.168.5.46', '192.168.5.171']
195ANYMAIL = {'SENDGRID_API_KEY': '********************'}
196APPEND_SLASH = True
197AUTHENTICATION_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']
198AUTH_PASSWORD_VALIDATORS = '********************'
199AUTH_USER_MODEL = 'career_support_models.User'
200BASE_DIR = '/root/cs_api'
201CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
202CACHE_MIDDLEWARE_ALIAS = 'default'
203CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
204CACHE_MIDDLEWARE_SECONDS = 600
205CANDIDATE_PORTAL_URL = 'http://localhost:8000'
206CELERY_ACCEPT_CONTENT = ['application/json']
207CELERY_BROKER_URL = 'redis://localhost:6379'
208CELERY_RESULT_BACKEND = 'redis://localhost:6379'
209CELERY_RESULT_SERIALIZER = 'json'
210CELERY_TASK_SERIALIZER = 'json'
211CELERY_TIMEZONE = 'Asia/Jakarta'
212CORS_ORIGIN_ALLOW_ALL = True
213CSRF_COOKIE_AGE = 31449600
214CSRF_COOKIE_DOMAIN = None
215CSRF_COOKIE_HTTPONLY = False
216CSRF_COOKIE_NAME = 'csrftoken'
217CSRF_COOKIE_PATH = '/'
218CSRF_COOKIE_SAMESITE = 'Lax'
219CSRF_COOKIE_SECURE = False
220CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
221CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
222CSRF_TRUSTED_ORIGINS = []
223CSRF_USE_SESSIONS = False
224DATABASES = {'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}}}
225DATABASE_ROUTERS = []
226DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
227DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
228DATETIME_FORMAT = 'N j, Y, P'
229DATETIME_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']
230DATE_FORMAT = 'N j, Y'
231DATE_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']
232DEBUG = True
233DEBUG_PROPAGATE_EXCEPTIONS = False
234DECIMAL_SEPARATOR = '.'
235DEFAULT_CHARSET = 'utf-8'
236DEFAULT_CONTENT_TYPE = 'text/html'
237DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
238DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
239DEFAULT_FROM_EMAIL = 'noreply@frisidea.com'
240DEFAULT_INDEX_TABLESPACE = ''
241DEFAULT_TABLESPACE = ''
242DISALLOWED_USER_AGENTS = []
243DJADMIN_DYNAMIC_FIELD_DISPLAY = True
244DJADMIN_FIELD_DEPTH = 1
245EMAIL_BACKEND = 'anymail.backends.sendgrid.EmailBackend'
246EMAIL_HOST = 'localhost'
247EMAIL_HOST_PASSWORD = '********************'
248EMAIL_HOST_USER = ''
249EMAIL_PORT = 25
250EMAIL_SSL_CERTFILE = None
251EMAIL_SSL_KEYFILE = '********************'
252EMAIL_SUBJECT_PREFIX = '[Django] '
253EMAIL_TIMEOUT = None
254EMAIL_USE_LOCALTIME = False
255EMAIL_USE_SSL = False
256EMAIL_USE_TLS = False
257EMPLOYER_PORTAL_URL = 'http://localhost:8000'
258FILE_CHARSET = 'utf-8'
259FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
260FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
261FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
262FILE_UPLOAD_PERMISSIONS = None
263FILE_UPLOAD_TEMP_DIR = None
264FIRST_DAY_OF_WEEK = 0
265FIXTURE_DIRS = []
266FORCE_SCRIPT_NAME = None
267FORMAT_MODULE_PATH = None
268FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
269IGNORABLE_404_URLS = []
270INSTALLED_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']
271INTERNAL_IPS = []
272JWT_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_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'}
273LANGUAGES = [('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')]
274LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
275LANGUAGE_CODE = 'en-us'
276LANGUAGE_COOKIE_AGE = None
277LANGUAGE_COOKIE_DOMAIN = None
278LANGUAGE_COOKIE_NAME = 'django_language'
279LANGUAGE_COOKIE_PATH = '/'
280LOCALE_PATHS = []
281LOGGING = {}
282LOGGING_CONFIG = 'logging.config.dictConfig'
283LOGIN_REDIRECT_URL = '/accounts/profile/'
284LOGIN_URL = '/accounts/login/'
285LOGOUT_REDIRECT_URL = None
286MANAGERS = []
287MEDIA_ROOT = '/root/cs_api/root_media'
288MEDIA_URL = '/media/'
289MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
290MIDDLEWARE = ['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']
291MIGRATION_MODULES = {}
292MONTH_DAY_FORMAT = 'F j'
293NUMBER_GROUPING = 0
294PASSWORD_HASHERS = '********************'
295PASSWORD_RESET_TIMEOUT_DAYS = '********************'
296PREPEND_WWW = False
297REST_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'}
298ROOT_URLCONF = 'career_support_api.urls'
299SCHOOL_PORTAL_URL = 'http://localhost:8000'
300SECRET_KEY = '********************'
301SECURE_BROWSER_XSS_FILTER = False
302SECURE_CONTENT_TYPE_NOSNIFF = False
303SECURE_HSTS_INCLUDE_SUBDOMAINS = False
304SECURE_HSTS_PRELOAD = False
305SECURE_HSTS_SECONDS = 0
306SECURE_PROXY_SSL_HEADER = None
307SECURE_REDIRECT_EXEMPT = []
308SECURE_SSL_HOST = None
309SECURE_SSL_REDIRECT = False
310SERVER_EMAIL = 'root@localhost'
311SESSION_CACHE_ALIAS = 'default'
312SESSION_COOKIE_AGE = 1209600
313SESSION_COOKIE_DOMAIN = None
314SESSION_COOKIE_HTTPONLY = True
315SESSION_COOKIE_NAME = 'sessionid'
316SESSION_COOKIE_PATH = '/'
317SESSION_COOKIE_SAMESITE = 'Lax'
318SESSION_COOKIE_SECURE = False
319SESSION_ENGINE = 'django.contrib.sessions.backends.db'
320SESSION_EXPIRE_AT_BROWSER_CLOSE = False
321SESSION_FILE_PATH = None
322SESSION_SAVE_EVERY_REQUEST = False
323SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
324SETTINGS_MODULE = 'career_support_api.settings'
325SHORT_DATETIME_FORMAT = 'm/d/Y P'
326SHORT_DATE_FORMAT = 'm/d/Y'
327SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
328SILENCED_SYSTEM_CHECKS = []
329SITE_ID = 1
330SOCIALACCOUNT_PROVIDERS = {'linkedin': {'SCOPE': ['r_basicprofile', 'r_emailaddress'], 'PROFILE_FIELDS': ['id', 'first-name', 'last-name', 'email-address', 'picture-url', 'public-profile-url']}}
331STATICFILES_DIRS = "('/root/cs_api/static',)"
332STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
333STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
334STATIC_ROOT = '/root/cs_api/root_static'
335STATIC_URL = '/static/'
336SWAGGER_SETTINGS = {'SECURITY_DEFINITIONS': {'JWT': {'type': 'apiKey', 'name': 'Authorization', 'in': 'header'}}, 'USE_SESSION_AUTH': False}
337TEMPLATES = [{'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']}}]
338TEST_NON_SERIALIZED_APPS = []
339TEST_RUNNER = 'django.test.runner.DiscoverRunner'
340THOUSAND_SEPARATOR = ','
341THUMBNAIL_FORCE_OVERWRITE = True
342TIME_FORMAT = 'P'
343TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
344TIME_ZONE = 'Asia/Jakarta'
345USE_I18N = True
346USE_L10N = True
347USE_THOUSAND_SEPARATOR = False
348USE_TZ = True
349USE_X_FORWARDED_HOST = False
350USE_X_FORWARDED_PORT = False
351WSGI_APPLICATION = 'career_support_api.wsgi.application'
352X_FRAME_OPTIONS = 'SAMEORIGIN'
353YEAR_MONTH_FORMAT = 'F Y'
354
355
356You're seeing this error because you have DEBUG = True in your
357Django settings file. Change that to False, and Django will
358display a standard page generated by the handler for this status code.