Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.59 KB | None | 0 0
  1. OperationalError at /api/invest_profile/products/
  2. no such table: FinanceProduct_financeproductfile
  3.  
  4. Request Method: GET
  5. Request URL: http://176.113.83.31:8000/api/invest_profile/products/?type=1
  6. Django Version: 2.1.3
  7. Python Executable: /root/bks-backend/env/bin/python3.6
  8. Python Version: 3.6.3
  9. Python Path: ['/root/bks-backend', '/root/bks-backend/env/bin', '/root/bks-backend/env/lib/python36.zip', '/root/bks-backend/env/lib/python3.6', '/root/bks-backend/env/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6', '/root/bks-backend/env/lib/python3.6/site-packages', '/root/bks-backend']
  10. Server time: РЎСЂ, 21 РќРѕСЏ 2018 06:32:26 +0000
  11. Installed Applications:
  12. ['django.contrib.admin',
  13. 'django.contrib.auth',
  14. 'django.contrib.contenttypes',
  15. 'django.contrib.sessions',
  16. 'django.contrib.messages',
  17. 'django.contrib.staticfiles',
  18. 'drf_yasg',
  19. 'nested_admin',
  20. 'rest_framework',
  21. 'rest_framework.authtoken',
  22. 'django_filters',
  23. 'corsheaders',
  24. 'ckeditor',
  25. 'ckeditor_uploader',
  26. 'Auth.apps.AuthConfig',
  27. 'Client.apps.ClientConfig',
  28. 'ClientProfile.apps.ClientProfileConfig',
  29. 'ClientGoal.apps.ClientGoalConfig',
  30. 'ClientInvestProfile.apps.ClientInvestProfileConfig',
  31. 'Courses.apps.CoursesConfig',
  32. 'News.apps.NewsConfig',
  33. 'TemplateDoc.apps.TemplateDocConfig',
  34. 'FinanceProduct.apps.FinanceProductConfig']
  35. Installed Middleware:
  36. ['django.middleware.security.SecurityMiddleware',
  37. 'django.contrib.sessions.middleware.SessionMiddleware',
  38. 'django.middleware.common.CommonMiddleware',
  39. 'django.middleware.csrf.CsrfViewMiddleware',
  40. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  41. 'django.contrib.messages.middleware.MessageMiddleware',
  42. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  43. 'corsheaders.middleware.CorsMiddleware',
  44. 'django.middleware.common.CommonMiddleware']
  45.  
  46.  
  47. Traceback:
  48.  
  49. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
  50. 85. return self.cursor.execute(sql, params)
  51.  
  52. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py" in execute
  53. 296. return Database.Cursor.execute(self, query, params)
  54.  
  55. The above exception (no such table: FinanceProduct_financeproductfile) was the direct cause of the following exception:
  56.  
  57. File "/root/bks-backend/env/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  58. 34. response = get_response(request)
  59.  
  60. File "/root/bks-backend/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  61. 126. response = self.process_exception_by_middleware(e, request)
  62.  
  63. File "/root/bks-backend/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  64. 124. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  65.  
  66. File "/root/bks-backend/env/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  67. 54. return view_func(*args, **kwargs)
  68.  
  69. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/viewsets.py" in view
  70. 116. return self.dispatch(request, *args, **kwargs)
  71.  
  72. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  73. 495. response = self.handle_exception(exc)
  74.  
  75. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  76. 455. self.raise_uncaught_exception(exc)
  77.  
  78. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  79. 492. response = handler(request, *args, **kwargs)
  80.  
  81. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/mixins.py" in list
  82. 48. return Response(serializer.data)
  83.  
  84. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/serializers.py" in data
  85. 765. ret = super(ListSerializer, self).data
  86.  
  87. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/serializers.py" in data
  88. 262. self._data = self.to_representation(self.instance)
  89.  
  90. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
  91. 683. self.child.to_representation(item) for item in iterable
  92.  
  93. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/serializers.py" in <listcomp>
  94. 683. self.child.to_representation(item) for item in iterable
  95.  
  96. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
  97. 527. ret[field.field_name] = field.to_representation(attribute)
  98.  
  99. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
  100. 683. self.child.to_representation(item) for item in iterable
  101.  
  102. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/models/query.py" in __iter__
  103. 268. self._fetch_all()
  104.  
  105. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/models/query.py" in _fetch_all
  106. 1186. self._result_cache = list(self._iterable_class(self))
  107.  
  108. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/models/query.py" in __iter__
  109. 54. results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  110.  
  111. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/models/sql/compiler.py" in execute_sql
  112. 1065. cursor.execute(sql, params)
  113.  
  114. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
  115. 100. return super().execute(sql, params)
  116.  
  117. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
  118. 68. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  119.  
  120. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute_with_wrappers
  121. 77. return executor(sql, params, many, context)
  122.  
  123. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
  124. 85. return self.cursor.execute(sql, params)
  125.  
  126. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/utils.py" in __exit__
  127. 89. raise dj_exc_value.with_traceback(traceback) from exc_value
  128.  
  129. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
  130. 85. return self.cursor.execute(sql, params)
  131.  
  132. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py" in execute
  133. 296. return Database.Cursor.execute(self, query, params)
  134.  
  135. Exception Type: OperationalError at /api/invest_profile/products/
  136. Exception Value: no such table: FinanceProduct_financeproductfile
  137. Request information:
  138. USER: picasel
  139.  
  140. GET:
  141. type = '1'
  142.  
  143. POST: No POST data
  144.  
  145. FILES: No FILES data
  146.  
  147. COOKIES: No cookie data
  148.  
  149. META:
  150. HTTP_ACCEPT = '*/*'
  151. HTTP_ACCEPT_ENCODING = 'gzip, deflate'
  152. HTTP_ACCEPT_LANGUAGE = 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7'
  153. HTTP_AUTHORIZATION = 'Token bce502eb8296278d1ca3056a69ce95507c516c94'
  154. HTTP_CONNECTION = 'close'
  155. HTTP_HOST = '176.113.83.31:8000'
  156. HTTP_ORIGIN = 'http://0.0.0.0:8080'
  157. HTTP_REFERER = 'http://0.0.0.0:8080/add_client/13'
  158. HTTP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36'
  159. HTTP_X_FORWARDED_FOR = '146.185.136.157'
  160. HTTP_X_FORWARDED_PROTO = 'http'
  161. HTTP_X_REAL_IP = '146.185.136.157'
  162. PATH_INFO = '/api/invest_profile/products/'
  163. QUERY_STRING = 'type=1'
  164. RAW_URI = '/api/invest_profile/products/?type=1'
  165. REMOTE_ADDR = ''
  166. REQUEST_METHOD = 'GET'
  167. SCRIPT_NAME = ''
  168. SERVER_NAME = '176.113.83.31'
  169. SERVER_PORT = '8000'
  170. SERVER_PROTOCOL = 'HTTP/1.0'
  171. SERVER_SOFTWARE = 'gunicorn/19.9.0'
  172. gunicorn.socket = <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/root/bks-backend/bks.sock>
  173. wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f98fe401780>
  174. wsgi.file_wrapper = ''
  175. wsgi.input = <gunicorn.http.body.Body object at 0x7f98fe401908>
  176. wsgi.multiprocess = True
  177. wsgi.multithread = False
  178. wsgi.run_once = False
  179. wsgi.url_scheme = 'http'
  180. wsgi.version = '(1, 0)'
  181.  
  182. Settings:
  183. Using settings module bksproject.settings
  184. ABSOLUTE_URL_OVERRIDES = {}
  185. ADMINS = []
  186. ALLOWED_HOSTS = ['*']
  187. APPEND_SLASH = True
  188. AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
  189. AUTH_PASSWORD_VALIDATORS = '********************'
  190. AUTH_USER_MODEL = 'Auth.User'
  191. BASE_DIR = '/root/bks-backend'
  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. CKEDITOR_BASEPATH = '/static/ckeditor/ckeditor'
  197. CKEDITOR_CONFIGS = {'default': {'toolbar': [{'name': 'document', 'items': ['Source', '-', 'Preview', '-', 'Templates']}, {'name': 'clipboard', 'items': ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']}, {'name': 'editing', 'items': ['Find', 'Replace', '-', 'SelectAll']}, {'name': 'tools', 'items': ['Maximize', 'ShowBlocks']}, {'name': 'basicstyles', 'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']}, {'name': 'paragraph', 'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']}, {'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']}, {'name': 'insert', 'items': ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak']}, {'name': 'styles', 'items': ['Format', 'FontSize', 'LineHeight']}], 'tabSpaces': 4, 'extraPlugins': 'uploadimage'}}
  198. CKEDITOR_UPLOAD_PATH = 'attachments/'
  199. CKEDITOR_UPLOAD_SLUGIFY_FILENAME = True
  200. CORS_ORIGIN_ALLOW_ALL = True
  201. CSRF_COOKIE_AGE = 31449600
  202. CSRF_COOKIE_DOMAIN = None
  203. CSRF_COOKIE_HTTPONLY = False
  204. CSRF_COOKIE_NAME = 'csrftoken'
  205. CSRF_COOKIE_PATH = '/'
  206. CSRF_COOKIE_SAMESITE = 'Lax'
  207. CSRF_COOKIE_SECURE = False
  208. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  209. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  210. CSRF_TRUSTED_ORIGINS = []
  211. CSRF_USE_SESSIONS = False
  212. DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/root/bks-backend/db.sqlite3', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'USER': '', 'PASSWORD': '********************', 'HOST': '', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  213. DATABASE_ROUTERS = []
  214. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  215. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  216. DATETIME_FORMAT = 'N j, Y, P'
  217. 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']
  218. DATE_FORMAT = 'N j, Y'
  219. 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']
  220. DEBUG = True
  221. DEBUG_PROPAGATE_EXCEPTIONS = False
  222. DECIMAL_SEPARATOR = '.'
  223. DEFAULT_CHARSET = 'utf-8'
  224. DEFAULT_CONTENT_TYPE = 'text/html'
  225. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  226. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  227. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  228. DEFAULT_INDEX_TABLESPACE = ''
  229. DEFAULT_TABLESPACE = ''
  230. DISALLOWED_USER_AGENTS = []
  231. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  232. EMAIL_HOST = 'smtp.sendgrid.net'
  233. EMAIL_HOST_PASSWORD = '********************'
  234. EMAIL_HOST_USER = 'AnastasiaPicasel'
  235. EMAIL_PORT = 587
  236. EMAIL_SSL_CERTFILE = None
  237. EMAIL_SSL_KEYFILE = '********************'
  238. EMAIL_SUBJECT_PREFIX = '[Django] '
  239. EMAIL_TIMEOUT = None
  240. EMAIL_USE_LOCALTIME = False
  241. EMAIL_USE_SSL = False
  242. EMAIL_USE_TLS = True
  243. FILE_CHARSET = 'utf-8'
  244. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  245. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  246. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  247. FILE_UPLOAD_PERMISSIONS = None
  248. FILE_UPLOAD_TEMP_DIR = None
  249. FIRST_DAY_OF_WEEK = 0
  250. FIXTURE_DIRS = []
  251. FORCE_SCRIPT_NAME = None
  252. FORMAT_MODULE_PATH = None
  253. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  254. IGNORABLE_404_URLS = []
  255. INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'drf_yasg', 'nested_admin', 'rest_framework', 'rest_framework.authtoken', 'django_filters', 'corsheaders', 'ckeditor', 'ckeditor_uploader', 'Auth.apps.AuthConfig', 'Client.apps.ClientConfig', 'ClientProfile.apps.ClientProfileConfig', 'ClientGoal.apps.ClientGoalConfig', 'ClientInvestProfile.apps.ClientInvestProfileConfig', 'Courses.apps.CoursesConfig', 'News.apps.NewsConfig', 'TemplateDoc.apps.TemplateDocConfig', 'FinanceProduct.apps.FinanceProductConfig']
  256. INTERNAL_IPS = []
  257. 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'), ('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')]
  258. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  259. LANGUAGE_CODE = 'ru-ru'
  260. LANGUAGE_COOKIE_AGE = None
  261. LANGUAGE_COOKIE_DOMAIN = None
  262. LANGUAGE_COOKIE_NAME = 'django_language'
  263. LANGUAGE_COOKIE_PATH = '/'
  264. LOCALE_PATHS = []
  265. LOGGING = {}
  266. LOGGING_CONFIG = 'logging.config.dictConfig'
  267. LOGIN_REDIRECT_URL = '/accounts/profile/'
  268. LOGIN_URL = '/accounts/login/'
  269. LOGOUT_REDIRECT_URL = None
  270. MAIN_EMAIL_ADDRESS = 'a.bilyalov@picasel.agency'
  271. MANAGERS = []
  272. MEDIA_ROOT = '/root/bks-backend/media'
  273. MEDIA_URL = '/media/'
  274. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  275. MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', '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', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware']
  276. MIGRATION_MODULES = {}
  277. MONTH_DAY_FORMAT = 'F j'
  278. NUMBER_GROUPING = 0
  279. PASSWORD_HASHERS = '********************'
  280. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  281. PREPEND_WWW = False
  282. REST_FRAMEWORK = {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.TokenAuthentication'), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly',)}
  283. ROOT_URLCONF = 'bksproject.urls'
  284. SECONDS_IN_DAY = 86400
  285. SECRET_KEY = '********************'
  286. SECURE_BROWSER_XSS_FILTER = False
  287. SECURE_CONTENT_TYPE_NOSNIFF = False
  288. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  289. SECURE_HSTS_PRELOAD = False
  290. SECURE_HSTS_SECONDS = 0
  291. SECURE_PROXY_SSL_HEADER = None
  292. SECURE_REDIRECT_EXEMPT = []
  293. SECURE_SSL_HOST = None
  294. SECURE_SSL_REDIRECT = False
  295. SERVER_EMAIL = 'root@localhost'
  296. SESSION_CACHE_ALIAS = 'default'
  297. SESSION_COOKIE_AGE = 1209600
  298. SESSION_COOKIE_DOMAIN = None
  299. SESSION_COOKIE_HTTPONLY = True
  300. SESSION_COOKIE_NAME = 'sessionid'
  301. SESSION_COOKIE_PATH = '/'
  302. SESSION_COOKIE_SAMESITE = 'Lax'
  303. SESSION_COOKIE_SECURE = False
  304. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  305. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  306. SESSION_FILE_PATH = None
  307. SESSION_SAVE_EVERY_REQUEST = False
  308. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  309. SETTINGS_MODULE = 'bksproject.settings'
  310. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  311. SHORT_DATE_FORMAT = 'm/d/Y'
  312. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  313. SILENCED_SYSTEM_CHECKS = []
  314. STATICFILES_DIRS = []
  315. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  316. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  317. STATIC_ROOT = '/root/bks-backend/static'
  318. STATIC_URL = '/static/'
  319. TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/root/bks-backend/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']}}]
  320. TEST_NON_SERIALIZED_APPS = []
  321. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  322. THOUSAND_SEPARATOR = ','
  323. TIME_FORMAT = 'P'
  324. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  325. TIME_ZONE = 'UTC'
  326. USE_I18N = True
  327. USE_L10N = True
  328. USE_THOUSAND_SEPARATOR = False
  329. USE_TZ = True
  330. USE_X_FORWARDED_HOST = False
  331. USE_X_FORWARDED_PORT = False
  332. WSGI_APPLICATION = 'bksproject.wsgi.application'
  333. X_FRAME_OPTIONS = 'SAMEORIGIN'
  334. YEAR_MONTH_FORMAT = 'F Y'
  335.  
  336.  
  337. You're seeing this error because you have DEBUG = True in your
  338. Django settings file. Change that to False, and Django will
  339. display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement