SHARE
TWEET

error get ads revs

a guest Jun 12th, 2019 332 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AssertionError at /api/v1/school/ads/revs/
  2. Cannot call `.is_valid()` as no `data=` keyword argument was passed when instantiating the serializer instance.
  3.  
  4. Request Method: GET
  5. Request URL: http://45.118.134.76:9880/api/v1/school/ads/revs/
  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 22:32:00 +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/advertisement.py" in get
  99.   317.         serializer.is_valid(raise_exception=False)
  100.  
  101. File "/opt/env/lib/python3.7/site-packages/rest_framework/serializers.py" in is_valid
  102.   230.             'Cannot call `.is_valid()` as no `data=` keyword argument was '
  103.  
  104. Exception Type: AssertionError at /api/v1/school/ads/revs/
  105. Exception Value: Cannot call `.is_valid()` as no `data=` keyword argument was passed when instantiating the serializer instance.
  106. Request information:
  107. USER: hanang_ilham@yahoo.com
  108.  
  109. GET: No GET data
  110.  
  111. POST: No POST data
  112.  
  113. FILES: No FILES data
  114.  
  115. COOKIES: No cookie data
  116.  
  117. META:
  118. CONTENT_LENGTH = ''
  119. CONTENT_TYPE = 'text/plain'
  120. DJANGO_SETTINGS_MODULE = 'career_support_api.settings'
  121. GATEWAY_INTERFACE = 'CGI/1.1'
  122. HISTCONTROL = 'ignoredups'
  123. HISTSIZE = '1000'
  124. HOME = '/root'
  125. HOSTNAME = 'li1441-76.members.linode.com'
  126. HTTP_ACCEPT = 'application/json, text/plain, */*'
  127. HTTP_ACCEPT_ENCODING = 'gzip, deflate'
  128. HTTP_ACCEPT_LANGUAGE = 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7'
  129. HTTP_AUTHORIZATION = 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxMjAsInVzZXJuYW1lIjoiaGFuYW5nX2lsaGFtQHlhaG9vLmNvbSIsImV4cCI6MTU2MDM3MTM2NSwiZW1haWwiOiJoYW5hbmdfaWxoYW1AeWFob28uY29tIiwib3JpZ19pYXQiOjE1NjAzNDA4MTd9.OpxdESelmjN5o2x_fjGpmPoaYRTowrRv6SPoQC_QEmMl5FENKImurGH1TQPYIo6vgSHzZFUm5jQkQhcXC2iucw'
  130. HTTP_CACHE_CONTROL = 'no-cache'
  131. HTTP_CONNECTION = 'keep-alive'
  132. HTTP_HOST = '45.118.134.76:9880'
  133. HTTP_ORIGIN = 'http://192.168.5.130:8080'
  134. HTTP_PRAGMA = 'no-cache'
  135. HTTP_REFERER = 'http://192.168.5.130:8080/dashboard'
  136. HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
  137. LANG = 'en_US.UTF-8'
  138. LANGUAGE = 'en_US.UTF-8'
  139. LC_COLLATE = 'C'
  140. LC_CTYPE = 'en_US.UTF-8'
  141. LESSOPEN = '||/usr/bin/lesspipe.sh %s'
  142. LOGNAME = 'root'
  143. 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:'
  144. MAIL = '/var/spool/mail/root'
  145. NVM_BIN = '/root/.nvm/versions/node/v12.3.1/bin'
  146. NVM_CD_FLAGS = ''
  147. NVM_DIR = '/root/.nvm'
  148. OLDPWD = '/root'
  149. PATH = '/opt/env/bin:/root/.nvm/versions/node/v12.3.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin'
  150. PATH_INFO = '/api/v1/school/ads/revs/'
  151. PS1 = '(env) [\\u@\\h \\W]\\$ '
  152. PWD = '/opt/cs_api'
  153. QUERY_STRING = ''
  154. REMOTE_ADDR = '172.104.177.245'
  155. REMOTE_HOST = ''
  156. REQUEST_METHOD = 'GET'
  157. RUN_MAIN = 'true'
  158. SCRIPT_NAME = ''
  159. SELINUX_LEVEL_REQUESTED = ''
  160. SELINUX_ROLE_REQUESTED = ''
  161. SELINUX_USE_CURRENT_RANGE = ''
  162. SERVER_NAME = 'li1441-76.members.linode.com'
  163. SERVER_PORT = '9880'
  164. SERVER_PROTOCOL = 'HTTP/1.1'
  165. SERVER_SOFTWARE = 'WSGIServer/0.2'
  166. SHELL = '/bin/bash'
  167. SHLVL = '1'
  168. SSH_CLIENT = '139.194.47.161 60914 22'
  169. SSH_CONNECTION = '139.194.47.161 60914 45.118.134.76 22'
  170. SSH_TTY = '/dev/pts/0'
  171. TERM = 'xterm-256color'
  172. TZ = 'Asia/Jakarta'
  173. USER = 'root'
  174. VIRTUAL_ENV = '/opt/env'
  175. XDG_RUNTIME_DIR = '/run/user/0'
  176. XDG_SESSION_ID = '2728'
  177. _ = '/usr/bin/nohup'
  178. wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
  179. wsgi.file_wrapper = ''
  180. wsgi.input = <django.core.handlers.wsgi.LimitedStream object at 0x7f587fbd9a20>
  181. wsgi.multiprocess = False
  182. wsgi.multithread = True
  183. wsgi.run_once = False
  184. wsgi.url_scheme = 'http'
  185. wsgi.version = '(1, 0)'
  186.  
  187. Settings:
  188. Using settings module career_support_api.settings
  189. ABSOLUTE_URL_OVERRIDES = {}
  190. ADMINS = [('Dimas', 'dimas.ari@frisidea.com'), ('Surya', 'komang.suryadana@frisidea.com')]
  191. ADMIN_COLOR_THEME = 'blue'
  192. ADMIN_HEADER_TITLE = 'Career Support Administrator'
  193. 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']
  194. ANYMAIL = {'SENDGRID_API_KEY': '********************'}
  195. APPEND_SLASH = True
  196. 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']
  197. AUTH_PASSWORD_VALIDATORS = '********************'
  198. AUTH_USER_MODEL = 'career_support_models.User'
  199. BASE_DIR = '/opt/cs_api'
  200. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
  201. CACHE_MIDDLEWARE_ALIAS = 'default'
  202. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  203. CACHE_MIDDLEWARE_SECONDS = 600
  204. CANDIDATE_PORTAL_URL = 'http://45.118.134.76:7080'
  205. CELERY_ACCEPT_CONTENT = ['application/json']
  206. CELERY_BROKER_URL = 'redis://localhost:6379'
  207. CELERY_RESULT_BACKEND = 'redis://localhost:6379'
  208. CELERY_RESULT_SERIALIZER = 'json'
  209. CELERY_TASK_SERIALIZER = 'json'
  210. CELERY_TIMEZONE = 'Asia/Jakarta'
  211. CORS_ORIGIN_ALLOW_ALL = True
  212. CSRF_COOKIE_AGE = 31449600
  213. CSRF_COOKIE_DOMAIN = None
  214. CSRF_COOKIE_HTTPONLY = False
  215. CSRF_COOKIE_NAME = 'csrftoken'
  216. CSRF_COOKIE_PATH = '/'
  217. CSRF_COOKIE_SAMESITE = 'Lax'
  218. CSRF_COOKIE_SECURE = False
  219. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  220. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  221. CSRF_TRUSTED_ORIGINS = []
  222. CSRF_USE_SESSIONS = False
  223. 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}}}
  224. DATABASE_ROUTERS = []
  225. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  226. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  227. DATETIME_FORMAT = 'N j, Y, P'
  228. 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']
  229. DATE_FORMAT = 'N j, Y'
  230. 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']
  231. DEBUG = True
  232. DEBUG_PROPAGATE_EXCEPTIONS = False
  233. DECIMAL_SEPARATOR = '.'
  234. DEFAULT_CHARSET = 'utf-8'
  235. DEFAULT_CONTENT_TYPE = 'text/html'
  236. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  237. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  238. DEFAULT_FROM_EMAIL = 'noreply@frisidea.com'
  239. DEFAULT_INDEX_TABLESPACE = ''
  240. DEFAULT_TABLESPACE = ''
  241. DISALLOWED_USER_AGENTS = []
  242. DJADMIN_DYNAMIC_FIELD_DISPLAY = True
  243. DJADMIN_FIELD_DEPTH = 1
  244. EMAIL_BACKEND = 'anymail.backends.sendgrid.EmailBackend'
  245. EMAIL_HOST = 'localhost'
  246. EMAIL_HOST_PASSWORD = '********************'
  247. EMAIL_HOST_USER = ''
  248. EMAIL_PORT = 25
  249. EMAIL_SSL_CERTFILE = None
  250. EMAIL_SSL_KEYFILE = '********************'
  251. EMAIL_SUBJECT_PREFIX = '[Django] '
  252. EMAIL_TIMEOUT = None
  253. EMAIL_USE_LOCALTIME = False
  254. EMAIL_USE_SSL = False
  255. EMAIL_USE_TLS = False
  256. EMPLOYER_PORTAL_URL = 'http://45.118.134.76:8080'
  257. FILE_CHARSET = 'utf-8'
  258. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  259. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  260. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  261. FILE_UPLOAD_PERMISSIONS = None
  262. FILE_UPLOAD_TEMP_DIR = None
  263. FIRST_DAY_OF_WEEK = 0
  264. FIXTURE_DIRS = []
  265. FORCE_SCRIPT_NAME = None
  266. FORGOT_PASSWORD_URL = '********************'
  267. FORMAT_MODULE_PATH = None
  268. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  269. FRONTEND_IP = '45.118.134.76'
  270. GODADDY_KEY = '********************'
  271. GODADDY_SECRET = '********************'
  272. GODADDY_URL = 'https://api.godaddy.com/v1/domains/karir.work/records'
  273. IGNORABLE_404_URLS = []
  274. 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']
  275. INTERNAL_IPS = []
  276. 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'}
  277. 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')]
  278. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  279. LANGUAGE_CODE = 'en-us'
  280. LANGUAGE_COOKIE_AGE = None
  281. LANGUAGE_COOKIE_DOMAIN = None
  282. LANGUAGE_COOKIE_NAME = 'django_language'
  283. LANGUAGE_COOKIE_PATH = '/'
  284. LOCALE_PATHS = []
  285. LOGGING = {}
  286. LOGGING_CONFIG = 'logging.config.dictConfig'
  287. LOGIN_REDIRECT_URL = '/accounts/profile/'
  288. LOGIN_URL = '/accounts/login/'
  289. LOGOUT_REDIRECT_URL = None
  290. MANAGERS = []
  291. MEDIA_ROOT = '/opt/cs_api/root_media'
  292. MEDIA_URL = '/media/'
  293. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  294. 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']
  295. MIGRATION_MODULES = {}
  296. MONTH_DAY_FORMAT = 'F j'
  297. NUMBER_GROUPING = 0
  298. PASSWORD_HASHERS = '********************'
  299. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  300. PREPEND_WWW = False
  301. 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'}
  302. ROOT_URLCONF = 'career_support_api.urls'
  303. SCHOOL_PORTAL_URL = 'http://45.118.134.76:9080'
  304. SECRET_KEY = '********************'
  305. SECURE_BROWSER_XSS_FILTER = False
  306. SECURE_CONTENT_TYPE_NOSNIFF = False
  307. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  308. SECURE_HSTS_PRELOAD = False
  309. SECURE_HSTS_SECONDS = 0
  310. SECURE_PROXY_SSL_HEADER = None
  311. SECURE_REDIRECT_EXEMPT = []
  312. SECURE_SSL_HOST = None
  313. SECURE_SSL_REDIRECT = False
  314. SERVER_EMAIL = 'root@localhost'
  315. SESSION_CACHE_ALIAS = 'default'
  316. SESSION_COOKIE_AGE = 1209600
  317. SESSION_COOKIE_DOMAIN = None
  318. SESSION_COOKIE_HTTPONLY = True
  319. SESSION_COOKIE_NAME = 'sessionid'
  320. SESSION_COOKIE_PATH = '/'
  321. SESSION_COOKIE_SAMESITE = 'Lax'
  322. SESSION_COOKIE_SECURE = False
  323. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  324. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  325. SESSION_FILE_PATH = None
  326. SESSION_SAVE_EVERY_REQUEST = False
  327. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  328. SETTINGS_MODULE = 'career_support_api.settings'
  329. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  330. SHORT_DATE_FORMAT = 'm/d/Y'
  331. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  332. SILENCED_SYSTEM_CHECKS = []
  333. SITE_ID = 1
  334. SITE_PREFIX = 'http://45.118.134.76:9880'
  335. SOCIALACCOUNT_PROVIDERS = {'linkedin': {'SCOPE': ['r_basicprofile', 'r_emailaddress'], 'PROFILE_FIELDS': ['id', 'first-name', 'last-name', 'email-address', 'picture-url', 'public-profile-url']}}
  336. STATICFILES_DIRS = "('/opt/cs_api/static',)"
  337. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  338. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  339. STATIC_ROOT = '/opt/cs_api/root_static'
  340. STATIC_URL = '/static/'
  341. SWAGGER_SETTINGS = {'SECURITY_DEFINITIONS': {'JWT': {'type': 'apiKey', 'name': 'Authorization', 'in': 'header'}}, 'USE_SESSION_AUTH': False}
  342. 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']}}]
  343. TEST_NON_SERIALIZED_APPS = []
  344. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  345. THOUSAND_SEPARATOR = ','
  346. THUMBNAIL_FORCE_OVERWRITE = True
  347. TIME_FORMAT = 'P'
  348. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  349. TIME_ZONE = 'Asia/Jakarta'
  350. USE_I18N = True
  351. USE_L10N = True
  352. USE_THOUSAND_SEPARATOR = False
  353. USE_TZ = True
  354. USE_X_FORWARDED_HOST = False
  355. USE_X_FORWARDED_PORT = False
  356. WSGI_APPLICATION = 'career_support_api.wsgi.application'
  357. X_FRAME_OPTIONS = 'SAMEORIGIN'
  358. YEAR_MONTH_FORMAT = 'F Y'
  359.  
  360.  
  361. You're seeing this error because you have DEBUG = True in your
  362. Django settings file. Change that to False, and Django will
  363. 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