SHARE
TWEET

error form agreement

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