SHARE
TWEET

error create second admin

a guest Jun 12th, 2019 339 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. IntegrityError at /api/v1/school/1667/personal/
  2. null value in column "user_id" violates not-null constraint
  3. DETAIL:  Failing row contains (54, f, 2019-06-12 14:29:46.306942+00, 2019-06-12 14:29:46.306982+00, +6285954120493, , HRD, , null, null, null, null, f, super@user.com, f, f).
  4.  
  5.  
  6. Request Method: POST
  7. Request URL: http://45.118.134.76:9880/api/v1/school/1667/personal/
  8. Django Version: 2.2.1
  9. Python Executable: /opt/env/bin/python
  10. Python Version: 3.7.3
  11. Python Path: ['/opt/cs_api', '/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']
  12. Server time: Wed, 12 Jun 2019 21:29:46 +0700
  13. Installed Applications:
  14. ['djadmin',
  15.  'advanced_filters',
  16.  'django.contrib.admin',
  17.  'django.contrib.auth',
  18.  'django.contrib.sites',
  19.  'django.contrib.contenttypes',
  20.  'django.contrib.sessions',
  21.  'django.contrib.messages',
  22.  'django.contrib.staticfiles',
  23.  'celery',
  24.  'rest_framework',
  25.  'rest_framework_jwt',
  26.  'django_filters',
  27.  'corsheaders',
  28.  'drf_yasg',
  29.  'anymail',
  30.  'allauth',
  31.  'allauth.account',
  32.  'allauth.socialaccount',
  33.  'allauth.socialaccount.providers.google',
  34.  'allauth.socialaccount.providers.twitter',
  35.  'allauth.socialaccount.providers.facebook',
  36.  'allauth.socialaccount.providers.instagram',
  37.  'allauth.socialaccount.providers.linkedin_oauth2',
  38.  'career_support_models',
  39.  'cs_administrator.apps.CsAdministratorConfig',
  40.  'cs_advertisement.apps.CsAdvertisementConfig',
  41.  'cs_authentication.apps.CsAuthenticationConfig',
  42.  'cs_billing.apps.CsBillingConfig',
  43.  'cs_core.apps.CsCoreConfig',
  44.  'cs_candidate.apps.CsCandidateConfig',
  45.  'cs_employer.apps.CsEmployerConfig',
  46.  'cs_faq.apps.CsFAQConfig',
  47.  'cs_history.apps.CsHistoryConfig',
  48.  'cs_interview.apps.CsInterviewConfig',
  49.  'cs_job.apps.CsJobConfig',
  50.  'cs_log.apps.CsLogConfig',
  51.  'cs_message.apps.CsMessageConfig',
  52.  'cs_news.apps.CsNewsConfig',
  53.  'cs_organization.apps.CsOrganizationConfig',
  54.  'cs_profile.apps.CsProfileConfig',
  55.  'cs_region.apps.CsRegionConfig',
  56.  'cs_requirement.apps.CsRequirementConfig',
  57.  'cs_school.apps.CsSchoolConfig',
  58.  'cs_social.apps.CsSocialConfig',
  59.  'cs_transaction.apps.CsTransactionConfig',
  60.  'cs_user.apps.CsUserConfig',
  61.  'dbbackup']
  62. Installed Middleware:
  63. ['django.middleware.security.SecurityMiddleware',
  64.  'corsheaders.middleware.CorsMiddleware',
  65.  'django.contrib.sessions.middleware.SessionMiddleware',
  66.  'django.middleware.common.CommonMiddleware',
  67.  'django.middleware.csrf.CsrfViewMiddleware',
  68.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  69.  'django.contrib.messages.middleware.MessageMiddleware',
  70.  'django.middleware.clickjacking.XFrameOptionsMiddleware',
  71.  'djadmin.middleware.DJMiddleware']
  72.  
  73.  
  74. Traceback:
  75.  
  76. File "/opt/env/lib/python3.7/site-packages/django/db/backends/utils.py" in _execute
  77.   84.                 return self.cursor.execute(sql, params)
  78.  
  79. The above exception (null value in column "user_id" violates not-null constraint
  80. DETAIL:  Failing row contains (54, f, 2019-06-12 14:29:46.306942+00, 2019-06-12 14:29:46.306982+00, +6285954120493, , HRD, , null, null, null, null, f, super@user.com, f, f).
  81. ) was the direct cause of the following exception:
  82.  
  83. File "/opt/env/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
  84.   34.             response = get_response(request)
  85.  
  86. File "/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.  
  89. File "/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.  
  92. File "/opt/env/lib/python3.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
  93.   54.         return view_func(*args, **kwargs)
  94.  
  95. File "/opt/env/lib/python3.7/site-packages/django/views/generic/base.py" in view
  96.   71.             return self.dispatch(request, *args, **kwargs)
  97.  
  98. File "/opt/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
  99.   495.             response = self.handle_exception(exc)
  100.  
  101. File "/opt/env/lib/python3.7/site-packages/rest_framework/views.py" in handle_exception
  102.   455.             self.raise_uncaught_exception(exc)
  103.  
  104. File "/opt/env/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
  105.   492.             response = handler(request, *args, **kwargs)
  106.  
  107. File "/opt/env/lib/python3.7/site-packages/rest_framework/generics.py" in post
  108.   244.         return self.create(request, *args, **kwargs)
  109.  
  110. File "/opt/env/lib/python3.7/site-packages/rest_framework/mixins.py" in create
  111.   21.         self.perform_create(serializer)
  112.  
  113. File "/opt/env/lib/python3.7/site-packages/rest_framework/mixins.py" in perform_create
  114.   26.         serializer.save()
  115.  
  116. File "/opt/env/lib/python3.7/site-packages/rest_framework/serializers.py" in save
  117.   214.             self.instance = self.create(validated_data)
  118.  
  119. File "/opt/env/lib/python3.7/site-packages/rest_framework/serializers.py" in create
  120.   943.             instance = ModelClass._default_manager.create(**validated_data)
  121.  
  122. File "/opt/env/lib/python3.7/site-packages/django/db/models/manager.py" in manager_method
  123.   82.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
  124.  
  125. File "/opt/env/lib/python3.7/site-packages/django/db/models/query.py" in create
  126.   422.         obj.save(force_insert=True, using=self.db)
  127.  
  128. File "/opt/env/lib/python3.7/site-packages/career_support_models/models/academy.py" in save
  129.   236.         super(SchoolPersonal, self).save(*args, **kwargs) # Call the real save() method
  130.  
  131. File "/opt/env/lib/python3.7/site-packages/django/db/models/base.py" in save
  132.   741.                        force_update=force_update, update_fields=update_fields)
  133.  
  134. File "/opt/env/lib/python3.7/site-packages/django/db/models/base.py" in save_base
  135.   779.                 force_update, using, update_fields,
  136.  
  137. File "/opt/env/lib/python3.7/site-packages/django/db/models/base.py" in _save_table
  138.   870.             result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
  139.  
  140. File "/opt/env/lib/python3.7/site-packages/django/db/models/base.py" in _do_insert
  141.   908.                                using=using, raw=raw)
  142.  
  143. File "/opt/env/lib/python3.7/site-packages/django/db/models/manager.py" in manager_method
  144.   82.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
  145.  
  146. File "/opt/env/lib/python3.7/site-packages/django/db/models/query.py" in _insert
  147.   1186.         return query.get_compiler(using=using).execute_sql(return_id)
  148.  
  149. File "/opt/env/lib/python3.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
  150.   1335.                 cursor.execute(sql, params)
  151.  
  152. File "/opt/env/lib/python3.7/site-packages/django/db/backends/utils.py" in execute
  153.   99.             return super().execute(sql, params)
  154.  
  155. File "/opt/env/lib/python3.7/site-packages/django/db/backends/utils.py" in execute
  156.   67.         return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  157.  
  158. File "/opt/env/lib/python3.7/site-packages/django/db/backends/utils.py" in _execute_with_wrappers
  159.   76.         return executor(sql, params, many, context)
  160.  
  161. File "/opt/env/lib/python3.7/site-packages/django/db/backends/utils.py" in _execute
  162.   84.                 return self.cursor.execute(sql, params)
  163.  
  164. File "/opt/env/lib/python3.7/site-packages/django/db/utils.py" in __exit__
  165.   89.                 raise dj_exc_value.with_traceback(traceback) from exc_value
  166.  
  167. File "/opt/env/lib/python3.7/site-packages/django/db/backends/utils.py" in _execute
  168.   84.                 return self.cursor.execute(sql, params)
  169.  
  170. Exception Type: IntegrityError at /api/v1/school/1667/personal/
  171. Exception Value: null value in column "user_id" violates not-null constraint
  172. DETAIL:  Failing row contains (54, f, 2019-06-12 14:29:46.306942+00, 2019-06-12 14:29:46.306982+00, +6285954120493, , HRD, , null, null, null, null, f, super@user.com, f, f).
  173.  
  174. Request information:
  175. USER: hanang_ilham@yahoo.com
  176.  
  177. GET: No GET data
  178.  
  179. POST: No POST data
  180.  
  181. FILES: No FILES data
  182.  
  183. COOKIES: No cookie data
  184.  
  185. META:
  186. CONTENT_LENGTH = '176'
  187. CONTENT_TYPE = 'application/json;charset=UTF-8'
  188. DJANGO_SETTINGS_MODULE = 'career_support_api.settings'
  189. GATEWAY_INTERFACE = 'CGI/1.1'
  190. HISTCONTROL = 'ignoredups'
  191. HISTSIZE = '1000'
  192. HOME = '/root'
  193. HOSTNAME = 'li1441-76.members.linode.com'
  194. HTTP_ACCEPT = 'application/json, text/plain, */*'
  195. HTTP_ACCEPT_ENCODING = 'gzip, deflate'
  196. HTTP_ACCEPT_LANGUAGE = 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7'
  197. HTTP_AUTHORIZATION = 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxMjAsInVzZXJuYW1lIjoiaGFuYW5nX2lsaGFtQHlhaG9vLmNvbSIsImV4cCI6MTU2MDM2NzczNywiZW1haWwiOiJoYW5hbmdfaWxoYW1AeWFob28uY29tIiwib3JpZ19pYXQiOjE1NjAzNDA4MTd9.wi8MDbK8QX9ZGRJsgVxcxENzRD1duPUBS2dN15oEYxqoVpU_B8KBGOnOVUoyFiwE9_eViisFapUxJ4tWmVRY-w'
  198. HTTP_CACHE_CONTROL = 'no-cache'
  199. HTTP_CONNECTION = 'keep-alive'
  200. HTTP_HOST = '45.118.134.76:9880'
  201. HTTP_ORIGIN = 'http://192.168.5.130:8080'
  202. HTTP_PRAGMA = 'no-cache'
  203. HTTP_REFERER = 'http://192.168.5.130:8080/administrator'
  204. HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
  205. LANG = 'en_US.UTF-8'
  206. LC_CTYPE = 'UTF-8'
  207. LESSOPEN = '||/usr/bin/lesspipe.sh %s'
  208. LOGNAME = 'root'
  209. LS_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:'
  210. MAIL = '/var/spool/mail/root'
  211. NVM_BIN = '/root/.nvm/versions/node/v12.3.1/bin'
  212. NVM_CD_FLAGS = ''
  213. NVM_DIR = '/root/.nvm'
  214. OLDPWD = '/opt'
  215. PATH = '/opt/env/bin:/root/.nvm/versions/node/v12.3.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin'
  216. PATH_INFO = '/api/v1/school/1667/personal/'
  217. PS1 = '(env) [\\u@\\h \\W]\\$ '
  218. PWD = '/opt/cs_api'
  219. QUERY_STRING = ''
  220. REMOTE_ADDR = '172.104.177.245'
  221. REMOTE_HOST = ''
  222. REQUEST_METHOD = 'POST'
  223. RUN_MAIN = 'true'
  224. SCRIPT_NAME = ''
  225. SELINUX_LEVEL_REQUESTED = ''
  226. SELINUX_ROLE_REQUESTED = ''
  227. SELINUX_USE_CURRENT_RANGE = ''
  228. SERVER_NAME = 'li1441-76.members.linode.com'
  229. SERVER_PORT = '9880'
  230. SERVER_PROTOCOL = 'HTTP/1.1'
  231. SERVER_SOFTWARE = 'WSGIServer/0.2'
  232. SHELL = '/bin/bash'
  233. SHLVL = '1'
  234. SSH_CLIENT = '118.136.107.40 54608 22'
  235. SSH_CONNECTION = '118.136.107.40 54608 45.118.134.76 22'
  236. SSH_TTY = '/dev/pts/0'
  237. TERM = 'xterm-256color'
  238. TZ = 'Asia/Jakarta'
  239. USER = 'root'
  240. VIRTUAL_ENV = '/opt/env'
  241. XDG_RUNTIME_DIR = '/run/user/0'
  242. XDG_SESSION_ID = '2362'
  243. _ = '/usr/bin/nohup'
  244. wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
  245. wsgi.file_wrapper = ''
  246. wsgi.input = <django.core.handlers.wsgi.LimitedStream object at 0x7ffbae2487b8>
  247. wsgi.multiprocess = False
  248. wsgi.multithread = True
  249. wsgi.run_once = False
  250. wsgi.url_scheme = 'http'
  251. wsgi.version = '(1, 0)'
  252.  
  253. Settings:
  254. Using settings module career_support_api.settings
  255. ABSOLUTE_URL_OVERRIDES = {}
  256. ADMINS = [('Dimas', 'dimas.ari@frisidea.com'), ('Surya', 'komang.suryadana@frisidea.com')]
  257. ADMIN_COLOR_THEME = 'blue'
  258. ADMIN_HEADER_TITLE = 'Career Support Administrator'
  259. ALLOWED_HOSTS = ['localhost', '.karir.work', '.career.support', '127.0.0.1', '0abf327e.ngrok.io', '45.118.134.76', '192.168.5.46', '192.168.5.171']
  260. ANYMAIL = {'SENDGRID_API_KEY': '********************'}
  261. APPEND_SLASH = True
  262. 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']
  263. AUTH_PASSWORD_VALIDATORS = '********************'
  264. AUTH_USER_MODEL = 'career_support_models.User'
  265. BASE_DIR = '/opt/cs_api'
  266. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
  267. CACHE_MIDDLEWARE_ALIAS = 'default'
  268. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  269. CACHE_MIDDLEWARE_SECONDS = 600
  270. CANDIDATE_PORTAL_URL = 'http://45.118.134.76:7080'
  271. CELERY_ACCEPT_CONTENT = ['application/json']
  272. CELERY_BROKER_URL = 'redis://localhost:6379'
  273. CELERY_RESULT_BACKEND = 'redis://localhost:6379'
  274. CELERY_RESULT_SERIALIZER = 'json'
  275. CELERY_TASK_SERIALIZER = 'json'
  276. CELERY_TIMEZONE = 'Asia/Jakarta'
  277. CORS_ORIGIN_ALLOW_ALL = True
  278. CSRF_COOKIE_AGE = 31449600
  279. CSRF_COOKIE_DOMAIN = None
  280. CSRF_COOKIE_HTTPONLY = False
  281. CSRF_COOKIE_NAME = 'csrftoken'
  282. CSRF_COOKIE_PATH = '/'
  283. CSRF_COOKIE_SAMESITE = 'Lax'
  284. CSRF_COOKIE_SECURE = False
  285. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  286. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  287. CSRF_TRUSTED_ORIGINS = []
  288. CSRF_USE_SESSIONS = False
  289. DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'career_support', 'USER': 'frisidea', 'PASSWORD': '********************', 'HOST': 'localhost', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  290. DATABASE_ROUTERS = []
  291. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  292. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  293. DATETIME_FORMAT = 'N j, Y, P'
  294. 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']
  295. DATE_FORMAT = 'N j, Y'
  296. 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']
  297. DEBUG = True
  298. DEBUG_PROPAGATE_EXCEPTIONS = False
  299. DECIMAL_SEPARATOR = '.'
  300. DEFAULT_CHARSET = 'utf-8'
  301. DEFAULT_CONTENT_TYPE = 'text/html'
  302. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  303. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  304. DEFAULT_FROM_EMAIL = 'noreply@frisidea.com'
  305. DEFAULT_INDEX_TABLESPACE = ''
  306. DEFAULT_TABLESPACE = ''
  307. DISALLOWED_USER_AGENTS = []
  308. DJADMIN_DYNAMIC_FIELD_DISPLAY = True
  309. DJADMIN_FIELD_DEPTH = 1
  310. EMAIL_BACKEND = 'anymail.backends.sendgrid.EmailBackend'
  311. EMAIL_HOST = 'localhost'
  312. EMAIL_HOST_PASSWORD = '********************'
  313. EMAIL_HOST_USER = ''
  314. EMAIL_PORT = 25
  315. EMAIL_SSL_CERTFILE = None
  316. EMAIL_SSL_KEYFILE = '********************'
  317. EMAIL_SUBJECT_PREFIX = '[Django] '
  318. EMAIL_TIMEOUT = None
  319. EMAIL_USE_LOCALTIME = False
  320. EMAIL_USE_SSL = False
  321. EMAIL_USE_TLS = False
  322. EMPLOYER_PORTAL_URL = 'http://45.118.134.76:8080'
  323. FILE_CHARSET = 'utf-8'
  324. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  325. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  326. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  327. FILE_UPLOAD_PERMISSIONS = None
  328. FILE_UPLOAD_TEMP_DIR = None
  329. FIRST_DAY_OF_WEEK = 0
  330. FIXTURE_DIRS = []
  331. FORCE_SCRIPT_NAME = None
  332. FORGOT_PASSWORD_URL = '********************'
  333. FORMAT_MODULE_PATH = None
  334. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  335. FRONTEND_IP = '45.118.134.76'
  336. GODADDY_KEY = '********************'
  337. GODADDY_SECRET = '********************'
  338. GODADDY_URL = 'https://api.godaddy.com/v1/domains/karir.work/records'
  339. IGNORABLE_404_URLS = []
  340. 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']
  341. INTERNAL_IPS = []
  342. 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'}
  343. 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'), ('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')]
  344. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  345. LANGUAGE_CODE = 'en-us'
  346. LANGUAGE_COOKIE_AGE = None
  347. LANGUAGE_COOKIE_DOMAIN = None
  348. LANGUAGE_COOKIE_NAME = 'django_language'
  349. LANGUAGE_COOKIE_PATH = '/'
  350. LOCALE_PATHS = []
  351. LOGGING = {}
  352. LOGGING_CONFIG = 'logging.config.dictConfig'
  353. LOGIN_REDIRECT_URL = '/accounts/profile/'
  354. LOGIN_URL = '/accounts/login/'
  355. LOGOUT_REDIRECT_URL = None
  356. MANAGERS = []
  357. MEDIA_ROOT = '/opt/cs_api/root_media'
  358. MEDIA_URL = '/media/'
  359. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  360. 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']
  361. MIGRATION_MODULES = {}
  362. MONTH_DAY_FORMAT = 'F j'
  363. NUMBER_GROUPING = 0
  364. PASSWORD_HASHERS = '********************'
  365. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  366. PREPEND_WWW = False
  367. 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'}
  368. ROOT_URLCONF = 'career_support_api.urls'
  369. SCHOOL_PORTAL_URL = 'http://45.118.134.76:9080'
  370. SECRET_KEY = '********************'
  371. SECURE_BROWSER_XSS_FILTER = False
  372. SECURE_CONTENT_TYPE_NOSNIFF = False
  373. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  374. SECURE_HSTS_PRELOAD = False
  375. SECURE_HSTS_SECONDS = 0
  376. SECURE_PROXY_SSL_HEADER = None
  377. SECURE_REDIRECT_EXEMPT = []
  378. SECURE_SSL_HOST = None
  379. SECURE_SSL_REDIRECT = False
  380. SERVER_EMAIL = 'root@localhost'
  381. SESSION_CACHE_ALIAS = 'default'
  382. SESSION_COOKIE_AGE = 1209600
  383. SESSION_COOKIE_DOMAIN = None
  384. SESSION_COOKIE_HTTPONLY = True
  385. SESSION_COOKIE_NAME = 'sessionid'
  386. SESSION_COOKIE_PATH = '/'
  387. SESSION_COOKIE_SAMESITE = 'Lax'
  388. SESSION_COOKIE_SECURE = False
  389. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  390. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  391. SESSION_FILE_PATH = None
  392. SESSION_SAVE_EVERY_REQUEST = False
  393. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  394. SETTINGS_MODULE = 'career_support_api.settings'
  395. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  396. SHORT_DATE_FORMAT = 'm/d/Y'
  397. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  398. SILENCED_SYSTEM_CHECKS = []
  399. SITE_ID = 1
  400. SITE_PREFIX = 'http://45.118.134.76:9880'
  401. SOCIALACCOUNT_PROVIDERS = {'linkedin': {'SCOPE': ['r_basicprofile', 'r_emailaddress'], 'PROFILE_FIELDS': ['id', 'first-name', 'last-name', 'email-address', 'picture-url', 'public-profile-url']}}
  402. STATICFILES_DIRS = "('/opt/cs_api/static',)"
  403. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  404. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  405. STATIC_ROOT = '/opt/cs_api/root_static'
  406. STATIC_URL = '/static/'
  407. SWAGGER_SETTINGS = {'SECURITY_DEFINITIONS': {'JWT': {'type': 'apiKey', 'name': 'Authorization', 'in': 'header'}}, 'USE_SESSION_AUTH': False}
  408. TEMPLATES = [{'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']}}]
  409. TEST_NON_SERIALIZED_APPS = []
  410. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  411. THOUSAND_SEPARATOR = ','
  412. THUMBNAIL_FORCE_OVERWRITE = True
  413. TIME_FORMAT = 'P'
  414. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  415. TIME_ZONE = 'Asia/Jakarta'
  416. USE_I18N = True
  417. USE_L10N = True
  418. USE_THOUSAND_SEPARATOR = False
  419. USE_TZ = True
  420. USE_X_FORWARDED_HOST = False
  421. USE_X_FORWARDED_PORT = False
  422. WSGI_APPLICATION = 'career_support_api.wsgi.application'
  423. X_FRAME_OPTIONS = 'SAMEORIGIN'
  424. YEAR_MONTH_FORMAT = 'F Y'
  425.  
  426.  
  427. You're seeing this error because you have DEBUG = True in your
  428. Django settings file. Change that to False, and Django will
  429. 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