Advertisement
burke

Untitled

Oct 22nd, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.91 KB | None | 0 0
  1. $ http 'https://api.qa2.openconceptlab.org/users/burke/collections/burketest/concepts/?page=1&limit=10&q=*&sortAsc=id&timestamp=1603290338578&includeRetired=true'
  2. HTTP/1.1 500 Internal Server Error
  3. Connection: keep-alive
  4. Content-Length: 19594
  5. Content-Type: text/plain; charset=utf-8
  6. Date: Thu, 22 Oct 2020 12:56:39 GMT
  7. Server: nginx/1.10.3 (Ubuntu)
  8. Vary: Origin, Cookie
  9. X-Content-Type-Options: nosniff
  10. X-Frame-Options: DENY
  11.  
  12. RequestError at /users/burke/collections/burketest/concepts/
  13. RequestError(400, 'search_phase_execution_exception', 'Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [id] in order to load field data by uninverting the inverted index. Note that this can use significant memory.')
  14.  
  15. Request Method: GET
  16. Request URL: http://api.qa2.openconceptlab.org/users/burke/collections/burketest/concepts/?page=1&limit=10&q=*&sortAsc=id&timestamp=1603290338578&includeRetired=true
  17. Django Version: 3.0.9
  18. Python Executable: /usr/local/bin/python
  19. Python Version: 3.8.3
  20. Python Path: ['/code', '/code', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/site-packages']
  21. Server time: Thu, 22 Oct 2020 12:56:39 +0000
  22. Installed Applications:
  23. ['django.contrib.admin',
  24. 'django.contrib.auth',
  25. 'django.contrib.contenttypes',
  26. 'django.contrib.sessions',
  27. 'django.contrib.messages',
  28. 'django.contrib.staticfiles',
  29. 'rest_framework',
  30. 'rest_framework.authtoken',
  31. 'drf_yasg',
  32. 'django_elasticsearch_dsl',
  33. 'corsheaders',
  34. 'core.common.apps.CommonConfig',
  35. 'core.users',
  36. 'core.orgs',
  37. 'core.sources.apps.SourceConfig',
  38. 'core.collections',
  39. 'core.concepts',
  40. 'core.mappings',
  41. 'core.importers']
  42. Installed Middleware:
  43. ['django.middleware.security.SecurityMiddleware',
  44. 'django.contrib.sessions.middleware.SessionMiddleware',
  45. 'corsheaders.middleware.CorsMiddleware',
  46. 'django.middleware.common.CommonMiddleware',
  47. 'django.middleware.csrf.CsrfViewMiddleware',
  48. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  49. 'django.contrib.messages.middleware.MessageMiddleware',
  50. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  51. 'core.middlewares.middlewares.FixMalformedLimitParamMiddleware',
  52. 'core.middlewares.middlewares.RequestLogMiddleware']
  53.  
  54.  
  55. Traceback (most recent call last):
  56. File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
  57. response = get_response(request)
  58. File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
  59. response = self.process_exception_by_middleware(e, request)
  60. File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
  61. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  62. File "/usr/local/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  63. return view_func(*args, **kwargs)
  64. File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 71, in view
  65. return self.dispatch(request, *args, **kwargs)
  66. File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 505, in dispatch
  67. response = self.handle_exception(exc)
  68. File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 465, in handle_exception
  69. self.raise_uncaught_exception(exc)
  70. File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
  71. raise exc
  72. File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 502, in dispatch
  73. response = handler(request, *args, **kwargs)
  74. File "/code/core/concepts/views.py", line 114, in get
  75. return self.list(request, *args, **kwargs)
  76. File "/code/core/common/mixins.py", line 100, in list
  77. self.object_list = self.filter_queryset(self.get_queryset())
  78. File "/code/core/common/views.py", line 76, in filter_queryset
  79. return self.get_search_results_qs().filter(id__in=queryset.values_list('id'))
  80. File "/code/core/common/views.py", line 237, in get_search_results_qs
  81. queryset = search_results.to_queryset()
  82. File "/usr/local/lib/python3.8/site-packages/django_elasticsearch_dsl/search.py", line 27, in to_queryset
  83. s = s.execute()
  84. File "/usr/local/lib/python3.8/site-packages/elasticsearch_dsl/search.py", line 715, in execute
  85. self, es.search(index=self._index, body=self.to_dict(), **self._params)
  86. File "/usr/local/lib/python3.8/site-packages/elasticsearch/client/utils.py", line 152, in _wrapped
  87. return func(*args, params=params, headers=headers, **kwargs)
  88. File "/usr/local/lib/python3.8/site-packages/elasticsearch/client/__init__.py", line 1612, in search
  89. return self.transport.perform_request(
  90. File "/usr/local/lib/python3.8/site-packages/elasticsearch/transport.py", line 392, in perform_request
  91. raise e
  92. File "/usr/local/lib/python3.8/site-packages/elasticsearch/transport.py", line 358, in perform_request
  93. status, headers_response, data = connection.perform_request(
  94. File "/usr/local/lib/python3.8/site-packages/elasticsearch/connection/http_urllib3.py", line 269, in perform_request
  95. self._raise_error(response.status, raw_data)
  96. File "/usr/local/lib/python3.8/site-packages/elasticsearch/connection/base.py", line 300, in _raise_error
  97. raise HTTP_EXCEPTIONS.get(status_code, TransportError)(
  98.  
  99. Exception Type: RequestError at /users/burke/collections/burketest/concepts/
  100. Exception Value: RequestError(400, 'search_phase_execution_exception', 'Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [id] in order to load field data by uninverting the inverted index. Note that this can use significant memory.')
  101. Request information:
  102. USER: AnonymousUser
  103.  
  104. GET:
  105. page = '1'
  106. limit = '10'
  107. q = '*'
  108. sortAsc = 'id'
  109. timestamp = '1603290338578'
  110. includeRetired = 'true'
  111.  
  112. POST: No POST data
  113.  
  114. FILES: No FILES data
  115.  
  116. COOKIES: No cookie data
  117.  
  118. META:
  119. API_SUPERUSER_PASSWORD = 'd/\\9V\'!"4U:cuqR/@68[2{,P%'
  120. API_SUPERUSER_TOKEN = '34d5722cb6a84529a2053a595e2fef9e'
  121. AWS_ACCESS_KEY_ID = 'AKIAICQICRJLRCQ3TYFA'
  122. AWS_SECRET_ACCESS_KEY = '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'
  123. AWS_STORAGE_BUCKET_NAME = 'openmrs-ocl-qa2'
  124. CONTENT_LENGTH = ''
  125. CONTENT_TYPE = 'text/plain'
  126. DB_HOST = 'db'
  127. DB_PASSWORD = 'Postgres123'
  128. DJANGO_SETTINGS_MODULE = 'core.settings'
  129. EMAIL_NOREPLY_PASSWORD = 'L@$bK32zx7'
  130. ENVIRONMENT = 'qa'
  131. GATEWAY_INTERFACE = 'CGI/1.1'
  132. GPG_KEY = 'E3FF2839C048B25C084DEBE9B26995E310250568'
  133. HOME = '/root'
  134. HOSTNAME = 'f55fdaabb7e1'
  135. HTTP_ACCEPT = '*/*'
  136. HTTP_ACCEPT_ENCODING = 'gzip, deflate'
  137. HTTP_CONNECTION = 'close'
  138. HTTP_HOST = 'api.qa2.openconceptlab.org'
  139. HTTP_USER_AGENT = 'HTTPie/1.0.3'
  140. HTTP_X_FORWARD_FOR = '68.58.143.224'
  141. HTTP_X_REAL_IP = '68.58.143.224'
  142. LANG = 'C.UTF-8'
  143. PATH = '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
  144. PATH_INFO = '/users/burke/collections/burketest/concepts/'
  145. PWD = '/code'
  146. PYTHONUNBUFFERED = '1'
  147. PYTHON_GET_PIP_SHA256 = 'b3153ec0cf7b7bbf9556932aa37e4981c35dc2a2c501d70d91d2795aa532be79'
  148. PYTHON_GET_PIP_URL = 'https://github.com/pypa/get-pip/raw/eff16c878c7fd6b688b9b4c4267695cf1a0bf01b/get-pip.py'
  149. PYTHON_PIP_VERSION = '20.1.1'
  150. PYTHON_VERSION = '3.8.3'
  151. QUERY_STRING = 'page=1&limit=10&q=*&sortAsc=id&timestamp=1603290338578&includeRetired=true'
  152. REDIS_HOST = 'redis'
  153. REMOTE_ADDR = '192.168.96.1'
  154. REMOTE_HOST = ''
  155. REQUEST_METHOD = 'GET'
  156. RUN_MAIN = 'true'
  157. SCRIPT_NAME = ''
  158. SECRET_KEY = 'E`1YA$@Mb#GZ02@XGkV"?|W-flD+8M'
  159. SENTRY_DSN_KEY = 'https://81b42656842c48da853b5d95d149698d:5b0d274157c94e2994e7521be3305d56@sentry.io/235935'
  160. SERVER_NAME = 'f55fdaabb7e1'
  161. SERVER_PORT = '8000'
  162. SERVER_PROTOCOL = 'HTTP/1.0'
  163. SERVER_SOFTWARE = 'WSGIServer/0.2'
  164. SHLVL = '1'
  165. TZ = 'UTC'
  166. _ = '/usr/local/bin/python'
  167. wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
  168. wsgi.file_wrapper = ''
  169. wsgi.input = <django.core.handlers.wsgi.LimitedStream object at 0x7fe36d32e730>
  170. wsgi.multiprocess = False
  171. wsgi.multithread = True
  172. wsgi.run_once = False
  173. wsgi.url_scheme = 'http'
  174. wsgi.version = '(1, 0)'
  175.  
  176. Settings:
  177. Using settings module core.settings
  178. ABSOLUTE_URL_OVERRIDES = {}
  179. ADMINS = []
  180. ALLOWED_HOSTS = ['*']
  181. API_SUPERUSER_PASSWORD = '********************'
  182. API_SUPERUSER_TOKEN = '********************'
  183. APPEND_SLASH = True
  184. AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
  185. AUTH_PASSWORD_VALIDATORS = '********************'
  186. AUTH_USER_MODEL = 'users.UserProfile'
  187. AWS_ACCESS_KEY_ID = '********************'
  188. AWS_SECRET_ACCESS_KEY = '********************'
  189. AWS_STORAGE_BUCKET_NAME = 'openmrs-ocl-qa2'
  190. BASE_DIR = '/code'
  191. BROKER_URL = 'redis://redis:6379/0'
  192. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
  193. CACHE_MIDDLEWARE_ALIAS = 'default'
  194. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  195. CACHE_MIDDLEWARE_SECONDS = 600
  196. CELERYD_HIJACK_ROOT_LOGGER = False
  197. CELERYD_MAX_TASKS_PER_CHILD = 1000
  198. CELERYD_PREFETCH_MULTIPLIER = 1
  199. CELERY_ACCEPT_CONTENT = ['application/json']
  200. CELERY_ACKS_LATE = True
  201. CELERY_ALWAYS_EAGER = False
  202. CELERY_BROKER_URL = 'redis://redis:6379/0'
  203. CELERY_DEFAULT_QUEUE = 'default'
  204. CELERY_DISABLE_RATE_LIMITS = False
  205. CELERY_ENABLE_UTC = True
  206. CELERY_IGNORE_RESULT = False
  207. CELERY_QUEUES = '(<unbound Queue default -> <unbound Exchange default(direct)> -> default>,)'
  208. CELERY_RESULT_BACKEND = 'redis://redis:6379/0'
  209. CELERY_ROUTES = {'tasks.bulk_import': {'queue': 'bulk_import'}, 'tasks.bulk_priority_import': {'queue': 'bulk_priority_import'}}
  210. CELERY_SEND_TASK_ERROR_EMAILS = False
  211. CELERY_TASK_PUBLISH_RETRY = True
  212. CELERY_TASK_RESULT_EXPIRES = 259200
  213. CELERY_TASK_SERIALIZER = 'json'
  214. CELERY_TIMEZONE = 'UTC'
  215. CELERY_TRACK_STARTED = True
  216. CORS_ALLOW_HEADERS = "('accept', 'accept-encoding', 'authorization', 'content-type', 'dnt', 'origin', 'user-agent', 'x-csrftoken', 'x-requested-with', 'INCLUDEFACETS')"
  217. CORS_EXPOSE_HEADERS = "('num_found', 'num_returned', 'pages', 'page_number', 'next', 'previous', 'offset', 'Content-Length', 'Content-Range')"
  218. CORS_ORIGIN_ALLOW_ALL = True
  219. CSRF_COOKIE_AGE = 31449600
  220. CSRF_COOKIE_DOMAIN = None
  221. CSRF_COOKIE_HTTPONLY = False
  222. CSRF_COOKIE_NAME = 'csrftoken'
  223. CSRF_COOKIE_PATH = '/'
  224. CSRF_COOKIE_SAMESITE = 'Lax'
  225. CSRF_COOKIE_SECURE = False
  226. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  227. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  228. CSRF_TRUSTED_ORIGINS = []
  229. CSRF_USE_SESSIONS = False
  230. DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql', 'NAME': 'postgres', 'USER': 'postgres', 'PASSWORD': '********************', 'HOST': 'db', 'PORT': 5432, 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  231. DATABASE_ROUTERS = []
  232. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  233. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  234. DATETIME_FORMAT = 'N j, Y, P'
  235. 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']
  236. DATE_FORMAT = 'N j, Y'
  237. 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']
  238. DEBUG = True
  239. DEBUG_PROPAGATE_EXCEPTIONS = False
  240. DECIMAL_SEPARATOR = '.'
  241. DEFAULT_CHARSET = 'utf-8'
  242. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  243. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  244. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  245. DEFAULT_INDEX_TABLESPACE = ''
  246. DEFAULT_LOCALE = 'en'
  247. DEFAULT_TABLESPACE = ''
  248. DISABLE_VALIDATION = False
  249. DISALLOWED_USER_AGENTS = []
  250. ELASTICSEARCH_DSL = {'default': {'hosts': ['es:9200', 'es1:9200']}}
  251. ELASTICSEARCH_DSL_AUTOSYNC = True
  252. ELASTICSEARCH_DSL_AUTO_REFRESH = True
  253. ELASTICSEARCH_DSL_PARALLEL = True
  254. ELASTICSEARCH_DSL_SIGNAL_PROCESSOR = 'core.common.models.CelerySignalProcessor'
  255. EMAIL_BACKEND = 'django.core.mail.backends.smtp.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. ENV = 'qa'
  268. ES_SYNC = True
  269. FILE_CHARSET = 'utf-8'
  270. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  271. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  272. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  273. FILE_UPLOAD_PERMISSIONS = 420
  274. FILE_UPLOAD_TEMP_DIR = None
  275. FIRST_DAY_OF_WEEK = 0
  276. FIXTURE_DIRS = []
  277. FLOWER_PWD = 'Flower123'
  278. FLOWER_USER = 'floweruser'
  279. FORCE_SCRIPT_NAME = None
  280. FORMAT_MODULE_PATH = None
  281. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  282. IGNORABLE_404_URLS = []
  283. INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'rest_framework.authtoken', 'drf_yasg', 'django_elasticsearch_dsl', 'corsheaders', 'core.common.apps.CommonConfig', 'core.users', 'core.orgs', 'core.sources.apps.SourceConfig', 'core.collections', 'core.concepts', 'core.mappings', 'core.importers']
  284. INTERNAL_IPS = []
  285. 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'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')]
  286. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  287. LANGUAGE_CODE = 'en-us'
  288. LANGUAGE_COOKIE_AGE = None
  289. LANGUAGE_COOKIE_DOMAIN = None
  290. LANGUAGE_COOKIE_HTTPONLY = False
  291. LANGUAGE_COOKIE_NAME = 'django_language'
  292. LANGUAGE_COOKIE_PATH = '/'
  293. LANGUAGE_COOKIE_SAMESITE = None
  294. LANGUAGE_COOKIE_SECURE = False
  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 = ''
  303. MEDIA_URL = ''
  304. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  305. MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'core.middlewares.middlewares.FixMalformedLimitParamMiddleware', 'core.middlewares.middlewares.RequestLogMiddleware']
  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. REDIS_DB = 0
  313. REDIS_HOST = 'redis'
  314. REDIS_PORT = 6379
  315. REDOC_SETTINGS = {'LAZY_RENDERING': True, 'NATIVE_SCROLLBARS': True}
  316. REST_FRAMEWORK = {'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',), 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.TokenAuthentication',), 'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer'), 'COERCE_DECIMAL_TO_STRING': False, 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.AcceptHeaderVersioning', 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema'}
  317. ROOT_URLCONF = 'core.urls'
  318. SECRET_KEY = '********************'
  319. SECURE_BROWSER_XSS_FILTER = False
  320. SECURE_CONTENT_TYPE_NOSNIFF = True
  321. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  322. SECURE_HSTS_PRELOAD = False
  323. SECURE_HSTS_SECONDS = 0
  324. SECURE_PROXY_SSL_HEADER = "('HTTP_X_FORWARDED_PROTO', 'https')"
  325. SECURE_REDIRECT_EXEMPT = []
  326. SECURE_REFERRER_POLICY = None
  327. SECURE_SSL_HOST = None
  328. SECURE_SSL_REDIRECT = False
  329. SERVER_EMAIL = 'root@localhost'
  330. SESSION_CACHE_ALIAS = 'default'
  331. SESSION_COOKIE_AGE = 1209600
  332. SESSION_COOKIE_DOMAIN = None
  333. SESSION_COOKIE_HTTPONLY = True
  334. SESSION_COOKIE_NAME = 'sessionid'
  335. SESSION_COOKIE_PATH = '/'
  336. SESSION_COOKIE_SAMESITE = 'Lax'
  337. SESSION_COOKIE_SECURE = False
  338. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  339. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  340. SESSION_FILE_PATH = None
  341. SESSION_SAVE_EVERY_REQUEST = False
  342. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  343. SETTINGS_MODULE = 'core.settings'
  344. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  345. SHORT_DATE_FORMAT = 'm/d/Y'
  346. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  347. SILENCED_SYSTEM_CHECKS = []
  348. STATICFILES_DIRS = []
  349. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  350. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  351. STATIC_ROOT = None
  352. STATIC_URL = '/static/'
  353. SWAGGER_SETTINGS = {'PERSIST_AUTH': True, 'SECURITY_DEFINITIONS': {'Basic': {'type': 'basic'}, 'Token': '********************'}, 'DOC_EXPANSION': 'none'}
  354. TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], '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']}}]
  355. TEST_NON_SERIALIZED_APPS = []
  356. TEST_RUNNER = 'core.common.tests.CustomTestRunner'
  357. THOUSAND_SEPARATOR = ','
  358. TIME_FORMAT = 'P'
  359. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  360. TIME_ZONE = 'UTC'
  361. TIME_ZONE_PLACE = 'America/New_York'
  362. USE_I18N = True
  363. USE_L10N = True
  364. USE_THOUSAND_SEPARATOR = False
  365. USE_TZ = True
  366. USE_X_FORWARDED_HOST = True
  367. USE_X_FORWARDED_PORT = False
  368. WSGI_APPLICATION = 'core.wsgi.application'
  369. X_FRAME_OPTIONS = 'DENY'
  370. YEAR_MONTH_FORMAT = 'F Y'
  371.  
  372.  
  373. You're seeing this error because you have DEBUG = True in your
  374. Django settings file. Change that to False, and Django will
  375. display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement