Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.54 KB | None | 0 0
  1. FieldError at /api/info/2/
  2. Cannot resolve keyword 'name' into field. Choices are: booking, config, config_id, id, translations
  3.  
  4. Request Method: GET
  5. Request URL: http://127.0.0.1:5555/api/info/2/
  6. Django Version: 2.1
  7. Python Executable: /usr/local/bin/python
  8. Python Version: 3.7.1
  9. Python Path: ['/code/server', '/usr/local/lib/python37.zip', '/usr/local/lib/python3.7', '/usr/local/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages', '/code/server']
  10. Server time: Tue, 18 Dec 2018 12:43:25 +0000
  11. Installed Applications:
  12. ['markup',
  13. 'shared',
  14. 'apps.preferences.apps.PreferencesConfig',
  15. 'apps.adventure.apps.AdventureConfig',
  16. 'apps.page.apps.PageConfig',
  17. 'apps.blog.apps.BlogConfig',
  18. 'apps.faq.apps.FaqConfig',
  19. 'apps.prices.apps.PricesConfig',
  20. 'apps.account.apps.AccountConfig',
  21. 'apps.payment',
  22. 'apps.booking',
  23. 'django_cleanup.apps.CleanupConfig',
  24. 'paypal.standard.ipn',
  25. 'django_pesapal',
  26. 'postie',
  27. 'parler',
  28. 'codemirror2',
  29. 'des',
  30. 'rosetta',
  31. 'smart_selects',
  32. 'ckeditor',
  33. 'ckeditor_uploader',
  34. 'robots',
  35. 'django_jinja',
  36. 'easy_thumbnails',
  37. 'solo',
  38. 'rest_framework',
  39. 'django_filters',
  40. 'jet',
  41. 'django.contrib.admin',
  42. 'django.contrib.auth',
  43. 'django.contrib.contenttypes',
  44. 'django.contrib.sessions',
  45. 'django.contrib.messages',
  46. 'django.contrib.staticfiles',
  47. 'django.contrib.sites',
  48. 'debug_toolbar',
  49. 'rest_framework_swagger']
  50. Installed Middleware:
  51. ['django.middleware.security.SecurityMiddleware',
  52. 'django.contrib.sessions.middleware.SessionMiddleware',
  53. 'django.middleware.common.CommonMiddleware',
  54. 'django.middleware.locale.LocaleMiddleware',
  55. 'django.middleware.csrf.CsrfViewMiddleware',
  56. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  57. 'django.contrib.messages.middleware.MessageMiddleware',
  58. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  59. 'debug_toolbar.middleware.DebugToolbarMiddleware']
  60.  
  61.  
  62. Traceback:
  63.  
  64. File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/query.py" in add_fields
  65. 1732. join_info = self.setup_joins(name.split(LOOKUP_SEP), opts, alias, allow_many=allow_m2m)
  66.  
  67. File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/query.py" in setup_joins
  68. 1473. names[:pivot], opts, allow_many, fail_on_missing=True,
  69.  
  70. File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/query.py" in names_to_path
  71. 1389. "Choices are: %s" % (name, ", ".join(available)))
  72.  
  73. During handling of the above exception (Cannot resolve keyword 'name' into field. Choices are: booking, config, config_id, id, translations), another exception occurred:
  74.  
  75. File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
  76. 34. response = get_response(request)
  77.  
  78. File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
  79. 126. response = self.process_exception_by_middleware(e, request)
  80.  
  81. File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
  82. 124. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  83.  
  84. File "/usr/local/lib/python3.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
  85. 54. return view_func(*args, **kwargs)
  86.  
  87. File "/usr/local/lib/python3.7/site-packages/django/views/generic/base.py" in view
  88. 68. return self.dispatch(request, *args, **kwargs)
  89.  
  90. File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
  91. 495. response = self.handle_exception(exc)
  92.  
  93. File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py" in handle_exception
  94. 455. self.raise_uncaught_exception(exc)
  95.  
  96. File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
  97. 492. response = handler(request, *args, **kwargs)
  98.  
  99. File "/usr/local/lib/python3.7/site-packages/rest_framework/generics.py" in get
  100. 210. return self.retrieve(request, *args, **kwargs)
  101.  
  102. File "/usr/local/lib/python3.7/site-packages/rest_framework/mixins.py" in retrieve
  103. 58. return Response(serializer.data)
  104.  
  105. File "/usr/local/lib/python3.7/site-packages/rest_framework/serializers.py" in data
  106. 560. ret = super(Serializer, self).data
  107.  
  108. File "/usr/local/lib/python3.7/site-packages/rest_framework/serializers.py" in data
  109. 262. self._data = self.to_representation(self.instance)
  110.  
  111. File "/usr/local/lib/python3.7/site-packages/rest_framework/serializers.py" in to_representation
  112. 527. ret[field.field_name] = field.to_representation(attribute)
  113.  
  114. File "/usr/local/lib/python3.7/site-packages/rest_framework/fields.py" in to_representation
  115. 1893. return method(value)
  116.  
  117. File "/code/server/apps/booking/api/serializers/info.py" in get_cities
  118. 70. return City.objects.values('id', 'name')
  119.  
  120. File "/usr/local/lib/python3.7/site-packages/django/db/models/manager.py" in manager_method
  121. 82. return getattr(self.get_queryset(), name)(*args, **kwargs)
  122.  
  123. File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py" in values
  124. 747. clone = self._values(*fields, **expressions)
  125.  
  126. File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py" in _values
  127. 742. clone.query.set_values(fields)
  128.  
  129. File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/query.py" in set_values
  130. 1984. self.add_fields(field_names, True)
  131.  
  132. File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/query.py" in add_fields
  133. 1755. "Choices are: %s" % (name, ", ".join(names)))
  134.  
  135. Exception Type: FieldError at /api/info/2/
  136. Exception Value: Cannot resolve keyword 'name' into field. Choices are: booking, config, config_id, id, translations
  137. Request information:
  138. USER: root
  139.  
  140. GET: No GET data
  141.  
  142. POST: No POST data
  143.  
  144. FILES: No FILES data
  145.  
  146. COOKIES:
  147. cart = '3c66f74a-0a21-4b0f-ae93-13119f9519d1:1gWOcx:XqjGiWc4T6XMD5tHfJx8K7HnR7o'
  148. csrftoken = 'DCUxZGOyV8RepEYipltrYzKuyEnft6oD2hZiUlU4U4xkHFHFn3ns46G3fTAdJ3fu'
  149. sessionid = 'bf6e79mfbhxcceelrac3zgdqgveng5eb'
  150.  
  151. META:
  152. CELERY_BROKER_URL = 'redis://cache:6379'
  153. CONTENT_LENGTH = ''
  154. CONTENT_TYPE = 'text/plain'
  155. CSRF_COOKIE = 'DCUxZGOyV8RepEYipltrYzKuyEnft6oD2hZiUlU4U4xkHFHFn3ns46G3fTAdJ3fu'
  156. DJANGO_CACHE_URL = 'redis://cache:6379'
  157. DJANGO_DB_URL = 'psql://postgres:postgres@db:5432/db'
  158. DJANGO_DEBUG = 'True'
  159. DJANGO_SECRET_KEY = 'CHANGEME!!!'
  160. DJANGO_SETTINGS_MODULE = 'app.settings'
  161. GATEWAY_INTERFACE = 'CGI/1.1'
  162. GPG_KEY = '0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'
  163. HOME = '/root'
  164. HOSTNAME = '1d84239a84c4'
  165. HTTP_ACCEPT = 'application/json, text/plain, */*'
  166. HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
  167. HTTP_ACCEPT_LANGUAGE = 'en'
  168. HTTP_CACHE_CONTROL = 'no-cache'
  169. HTTP_CONNECTION = 'keep-alive'
  170. HTTP_COOKIE = 'cart=3c66f74a-0a21-4b0f-ae93-13119f9519d1:1gWOcx:XqjGiWc4T6XMD5tHfJx8K7HnR7o; csrftoken=DCUxZGOyV8RepEYipltrYzKuyEnft6oD2hZiUlU4U4xkHFHFn3ns46G3fTAdJ3fu; sessionid=bf6e79mfbhxcceelrac3zgdqgveng5eb'
  171. HTTP_HOST = '127.0.0.1:5555'
  172. HTTP_PRAGMA = 'no-cache'
  173. HTTP_REFERER = 'http://127.0.0.1:5555/en/booking/'
  174. HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3595.2 Safari/537.36'
  175. HTTP_X_CSRFTOKEN = 'DCUxZGOyV8RepEYipltrYzKuyEnft6oD2hZiUlU4U4xkHFHFn3ns46G3fTAdJ3fu'
  176. HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
  177. LANG = 'C.UTF-8'
  178. PATH = '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
  179. PATH_INFO = '/api/info/2/'
  180. PWD = '/code/server'
  181. PYTHONUNBUFFERED = '1'
  182. PYTHON_PIP_VERSION = '18.1'
  183. PYTHON_VERSION = '3.7.1'
  184. QUERY_STRING = ''
  185. REMOTE_ADDR = '172.18.0.1'
  186. REMOTE_HOST = ''
  187. REQUEST_METHOD = 'GET'
  188. RUN_MAIN = 'true'
  189. SCRIPT_NAME = ''
  190. SERVER_NAME = '1d84239a84c4'
  191. SERVER_PORT = '8000'
  192. SERVER_PROTOCOL = 'HTTP/1.1'
  193. SERVER_SOFTWARE = 'WSGIServer/0.2'
  194. SHLVL = '1'
  195. TZ = 'UTC'
  196. _ = '/usr/local/bin/python'
  197. wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
  198. wsgi.file_wrapper = ''
  199. wsgi.input = <_io.BufferedReader name=8>
  200. wsgi.multiprocess = False
  201. wsgi.multithread = True
  202. wsgi.run_once = False
  203. wsgi.url_scheme = 'http'
  204. wsgi.version = '(1, 0)'
  205.  
  206. Settings:
  207. Using settings module app.settings
  208. ABSOLUTE_URL_OVERRIDES = {}
  209. ADMINS = []
  210. ALLOWED_HOSTS = ['*']
  211. APPEND_SLASH = True
  212. AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
  213. AUTH_PASSWORD_VALIDATORS = '********************'
  214. AUTH_USER_MODEL = 'auth.User'
  215. BASE_DIR = PosixPath('/code/server/app/settings/default.py')
  216. BASE_ROOT = PosixPath('/code/server/app')
  217. BEFORE_AFTER = Choices(('before', 'before', 'Before'), ('after', 'after', 'After'))
  218. CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://cache:6379'}}
  219. CACHE_MIDDLEWARE_ALIAS = 'default'
  220. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  221. CACHE_MIDDLEWARE_SECONDS = 600
  222. CELERY_BROKER_URL = 'redis://cache:6379'
  223. CKEDITOR_UPLOAD_PATH = 'content/ckeditor/'
  224. CSRF_COOKIE_AGE = 31449600
  225. CSRF_COOKIE_DOMAIN = None
  226. CSRF_COOKIE_HTTPONLY = False
  227. CSRF_COOKIE_NAME = 'csrftoken'
  228. CSRF_COOKIE_PATH = '/'
  229. CSRF_COOKIE_SAMESITE = 'Lax'
  230. CSRF_COOKIE_SECURE = False
  231. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  232. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  233. CSRF_TRUSTED_ORIGINS = []
  234. CSRF_USE_SESSIONS = False
  235. CURRENCY = Choices(('d', 'd', 'Dollar'), ('e', 'e', 'Euro'))
  236. DATABASES = {'default': {'NAME': 'db', 'USER': 'postgres', 'PASSWORD': '********************', 'HOST': 'db', 'PORT': 5432, 'ENGINE': 'django.db.backends.postgresql', 'CONN_MAX_AGE': 0, 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  237. DATABASE_ROUTERS = []
  238. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  239. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  240. DATETIME_FORMAT = 'N j, Y, P'
  241. 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']
  242. DATE_FORMAT = 'N j, Y'
  243. 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']
  244. DEBUG = True
  245. DEBUG_PROPAGATE_EXCEPTIONS = False
  246. DECIMAL_SEPARATOR = '.'
  247. DEFAULT_CHARSET = 'utf-8'
  248. DEFAULT_CONTENT_TYPE = 'text/html'
  249. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  250. DEFAULT_EXTENSIONS = ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', 'django_jinja.builtins.extensions.CsrfExtension', 'django_jinja.builtins.extensions.CacheExtension', 'django_jinja.builtins.extensions.TimezoneExtension', 'django_jinja.builtins.extensions.UrlsExtension', 'django_jinja.builtins.extensions.StaticFilesExtension', 'django_jinja.builtins.extensions.DjangoFiltersExtension']
  251. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  252. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  253. DEFAULT_INDEX_TABLESPACE = ''
  254. DEFAULT_TABLESPACE = ''
  255. DISALLOWED_USER_AGENTS = []
  256. EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
  257. EMAIL_HOST = 'localhost'
  258. EMAIL_HOST_PASSWORD = '********************'
  259. EMAIL_HOST_USER = ''
  260. EMAIL_PORT = 25
  261. EMAIL_SSL_CERTFILE = None
  262. EMAIL_SSL_KEYFILE = '********************'
  263. EMAIL_SUBJECT_PREFIX = '[Django] '
  264. EMAIL_TIMEOUT = None
  265. EMAIL_USE_LOCALTIME = False
  266. EMAIL_USE_SSL = False
  267. EMAIL_USE_TLS = False
  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. FORMAT_MODULE_PATH = None
  278. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  279. HINT = Choices(('empty', 'empty', 'Empty (hint disabled)'), ('image', 'image', 'Image'), ('text', 'text', 'Text'))
  280. HINT_EDIT = False
  281. IGNORABLE_404_URLS = []
  282. INSTALLED_APPS = ['markup', 'shared', 'apps.preferences.apps.PreferencesConfig', 'apps.adventure.apps.AdventureConfig', 'apps.page.apps.PageConfig', 'apps.blog.apps.BlogConfig', 'apps.faq.apps.FaqConfig', 'apps.prices.apps.PricesConfig', 'apps.account.apps.AccountConfig', 'apps.payment', 'apps.booking', 'django_cleanup.apps.CleanupConfig', 'paypal.standard.ipn', 'django_pesapal', 'postie', 'parler', 'codemirror2', 'des', 'rosetta', 'smart_selects', 'ckeditor', 'ckeditor_uploader', 'robots', 'django_jinja', 'easy_thumbnails', 'solo', 'rest_framework', 'django_filters', 'jet', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'debug_toolbar', 'rest_framework_swagger']
  283. INTERNAL_IPS = []
  284. LANGUAGES = "(('en', 'English'), ('de', 'Germany'))"
  285. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  286. LANGUAGE_CODE = 'en'
  287. LANGUAGE_COOKIE_AGE = None
  288. LANGUAGE_COOKIE_DOMAIN = None
  289. LANGUAGE_COOKIE_NAME = 'django_language'
  290. LANGUAGE_COOKIE_PATH = '/'
  291. LOCALE_PATHS = "(PosixPath('/code/server/app/locale'),)"
  292. LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'django': {'level': 'ERROR', 'class': 'shared.env.logs.MakeFileHandler', 'filename': '/var/log/django/error.log'}, 'console': {'level': 'ERROR', 'class': 'logging.StreamHandler'}, 'celery': {'level': 'ERROR', 'class': 'shared.env.logs.MakeFileHandler', 'filename': '/var/log/celery/error.log'}}, 'loggers': {'django': {'handlers': ['django', 'console'], 'level': 'ERROR', 'propagate': True}, 'celery': {'handlers': ['celery', 'console'], 'level': 'ERROR', 'propagate': True}}}
  293. LOGGING_CONFIG = 'logging.config.dictConfig'
  294. LOGIN_REDIRECT_URL = '/accounts/profile/'
  295. LOGIN_URL = '/accounts/login/'
  296. LOGOUT_REDIRECT_URL = None
  297. MANAGERS = []
  298. MEDIA_ROOT = PosixPath('/code/server/app/uploads')
  299. MEDIA_URL = '/uploads/'
  300. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  301. MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware']
  302. MIGRATION_MODULES = {}
  303. MONTH_DAY_FORMAT = 'F j'
  304. NUMBER_GROUPING = 0
  305. PARLER_DEFAULT_LANGUAGE_CODE = 'en'
  306. PARLER_LANGUAGES = {1: ({'code': 'en', 'hide_untranslated': False, 'fallbacks': ['en']}, {'code': 'de', 'hide_untranslated': False, 'fallbacks': ['en']}), 'default': {'hide_untranslated': False, 'code': 'en', 'fallbacks': ['en']}}
  307. PASSWORD_HASHERS = '********************'
  308. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  309. PAYPAL_TEST = True
  310. PESAPAL_DEMO = False
  311. PESAPAL_TRANSACTION_DEFAULT_REDIRECT_URL = 'pages:well-done'
  312. POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_module': 'ckeditor.widgets', 'attrs': {'attrs': {'cols': 80, 'rows': 10}}}
  313. POSTIE_INSTANT_SEND = True
  314. POSTIE_TEMPLATE_CONTEXTS = {'JOIN_REQUEST': {'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'country': 'Country', 'already_book': 'Already book tour', 'website': 'Has website', 'datetime': 'Date and time', 'about': 'About', 'images': 'Images'}, 'QUESTION': {'email': 'Email', 'name': 'Name', 'question': 'Question', 'date': 'Date'}, 'SUBSCRIPTION': {'name': 'Name', 'email': 'Email'}}
  315. PREFERENCES_CACHE_TTL = 1800
  316. PREPEND_WWW = False
  317. PROJECT_APPS = ['markup', 'shared', 'apps.preferences.apps.PreferencesConfig', 'apps.adventure.apps.AdventureConfig', 'apps.page.apps.PageConfig', 'apps.blog.apps.BlogConfig', 'apps.faq.apps.FaqConfig', 'apps.prices.apps.PricesConfig', 'apps.account.apps.AccountConfig', 'apps.payment', 'apps.booking']
  318. REST_FRAMEWORK = {'DATETIME_FORMAT': '%m/%d/%Y'}
  319. ROOT_URLCONF = 'app.urls'
  320. SECRET_KEY = '********************'
  321. SECURE_BROWSER_XSS_FILTER = False
  322. SECURE_CONTENT_TYPE_NOSNIFF = False
  323. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  324. SECURE_HSTS_PRELOAD = False
  325. SECURE_HSTS_SECONDS = 0
  326. SECURE_PROXY_SSL_HEADER = None
  327. SECURE_REDIRECT_EXEMPT = []
  328. SECURE_SSL_HOST = None
  329. SECURE_SSL_REDIRECT = False
  330. SERVER_EMAIL = 'root@localhost'
  331. SESSION_CACHE_ALIAS = 'default'
  332. SESSION_COOKIE_AGE = 1209600
  333. SESSION_COOKIE_DOMAIN = None
  334. SESSION_COOKIE_HTTPONLY = True
  335. SESSION_COOKIE_NAME = 'sessionid'
  336. SESSION_COOKIE_PATH = '/'
  337. SESSION_COOKIE_SAMESITE = 'Lax'
  338. SESSION_COOKIE_SECURE = False
  339. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  340. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  341. SESSION_FILE_PATH = None
  342. SESSION_SAVE_EVERY_REQUEST = False
  343. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  344. SETTINGS_MODULE = 'app.settings'
  345. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  346. SHORT_DATE_FORMAT = 'm/d/Y'
  347. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  348. SILENCED_SYSTEM_CHECKS = []
  349. SITE_ID = 1
  350. STATICFILES_DIRS = []
  351. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  352. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  353. STATIC_ROOT = PosixPath('/code/server/app/static')
  354. STATIC_URL = '/static/'
  355. TEMPLATES = [{'BACKEND': 'django_jinja.backend.Jinja2', 'NAME': 'jinja2', 'APP_DIRS': True, 'DIRS': [], 'OPTIONS': {'environment': 'shared.env.jinja2.environment', 'match_extension': '.jinja', 'newstyle_gettext': True, 'auto_reload': True, 'undefined': <class 'jinja2.runtime.Undefined'>, 'debug': True, 'filters': {}, 'globals': {}, 'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'apps.preferences.context_processors.get_preferences'], 'extensions': ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', 'django_jinja.builtins.extensions.CsrfExtension', 'django_jinja.builtins.extensions.CacheExtension', 'django_jinja.builtins.extensions.TimezoneExtension', 'django_jinja.builtins.extensions.UrlsExtension', 'django_jinja.builtins.extensions.StaticFilesExtension', 'django_jinja.builtins.extensions.DjangoFiltersExtension'], 'bytecode_cache': {'name': 'default', 'backend': 'django_jinja.cache.BytecodeCache', 'enabled': True}}}, {'DIRS': [], 'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'OPTIONS': {'context_processors': ['django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.messages.context_processors.messages', 'django.contrib.auth.context_processors.auth']}}]
  356. TEST_NON_SERIALIZED_APPS = []
  357. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  358. THOUSAND_SEPARATOR = ','
  359. TIME_FORMAT = 'P'
  360. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  361. TIME_ZONE = 'UTC'
  362. USE_I18N = True
  363. USE_L10N = True
  364. USE_THOUSAND_SEPARATOR = False
  365. USE_TZ = True
  366. USE_X_FORWARDED_HOST = False
  367. USE_X_FORWARDED_PORT = False
  368. WSGI_APPLICATION = 'app.wsgi.application'
  369. X_FRAME_OPTIONS = 'SAMEORIGIN'
  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