Advertisement
Guest User

Untitled

a guest
Nov 30th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.03 KB | None | 0 0
  1. IntegrityError at /api/client/invest_recommendations/84/complete/
  2. NOT NULL constraint failed: Payout_payoutproduct.product_id
  3.  
  4. Request Method: POST
  5. Request URL: http://176.113.83.31:8000/api/client/invest_recommendations/84/complete/
  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: Пт, 30 Ноя 2018 18:50:22 +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. 'Portfolio.apps.PortfolioConfig',
  36. 'Payout.apps.PayoutConfig']
  37. Installed Middleware:
  38. ['django.middleware.security.SecurityMiddleware',
  39. 'django.contrib.sessions.middleware.SessionMiddleware',
  40. 'django.middleware.common.CommonMiddleware',
  41. 'django.middleware.csrf.CsrfViewMiddleware',
  42. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  43. 'django.contrib.messages.middleware.MessageMiddleware',
  44. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  45. 'corsheaders.middleware.CorsMiddleware',
  46. 'django.middleware.common.CommonMiddleware']
  47.  
  48.  
  49. Traceback:
  50.  
  51. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
  52. 85. return self.cursor.execute(sql, params)
  53.  
  54. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py" in execute
  55. 296. return Database.Cursor.execute(self, query, params)
  56.  
  57. The above exception (NOT NULL constraint failed: Payout_payoutproduct.product_id) was the direct cause of the following exception:
  58.  
  59. File "/root/bks-backend/env/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  60. 34. response = get_response(request)
  61.  
  62. File "/root/bks-backend/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  63. 126. response = self.process_exception_by_middleware(e, request)
  64.  
  65. File "/root/bks-backend/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  66. 124. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  67.  
  68. File "/root/bks-backend/env/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  69. 54. return view_func(*args, **kwargs)
  70.  
  71. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/viewsets.py" in view
  72. 116. return self.dispatch(request, *args, **kwargs)
  73.  
  74. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  75. 495. response = self.handle_exception(exc)
  76.  
  77. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  78. 455. self.raise_uncaught_exception(exc)
  79.  
  80. File "/root/bks-backend/env/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  81. 492. response = handler(request, *args, **kwargs)
  82.  
  83. File "/root/bks-backend/ClientInvestProfile/views.py" in complete
  84. 126. PayoutProduct.objects.bulk_create(payout_products)
  85.  
  86. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/models/manager.py" in manager_method
  87. 82. return getattr(self.get_queryset(), name)(*args, **kwargs)
  88.  
  89. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/models/query.py" in bulk_create
  90. 465. ids = self._batched_insert(objs_without_pk, fields, batch_size)
  91.  
  92. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/models/query.py" in _batched_insert
  93. 1155. self._insert(item, fields=fields, using=self.db)
  94.  
  95. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/models/query.py" in _insert
  96. 1136. return query.get_compiler(using=using).execute_sql(return_id)
  97.  
  98. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/models/sql/compiler.py" in execute_sql
  99. 1289. cursor.execute(sql, params)
  100.  
  101. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
  102. 100. return super().execute(sql, params)
  103.  
  104. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
  105. 68. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  106.  
  107. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute_with_wrappers
  108. 77. return executor(sql, params, many, context)
  109.  
  110. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
  111. 85. return self.cursor.execute(sql, params)
  112.  
  113. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/utils.py" in __exit__
  114. 89. raise dj_exc_value.with_traceback(traceback) from exc_value
  115.  
  116. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
  117. 85. return self.cursor.execute(sql, params)
  118.  
  119. File "/root/bks-backend/env/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py" in execute
  120. 296. return Database.Cursor.execute(self, query, params)
  121.  
  122. Exception Type: IntegrityError at /api/client/invest_recommendations/84/complete/
  123. Exception Value: NOT NULL constraint failed: Payout_payoutproduct.product_id
  124. Request information:
  125. USER: olkhovoy
  126.  
  127. GET: No GET data
  128.  
  129. POST: No POST data
  130.  
  131. FILES: No FILES data
  132.  
  133. COOKIES: No cookie data
  134.  
  135. META:
  136. CONTENT_LENGTH = '88'
  137. CONTENT_TYPE = 'application/json'
  138. HTTP_ACCEPT = '*/*'
  139. HTTP_ACCEPT_ENCODING = 'gzip, deflate'
  140. HTTP_ACCEPT_LANGUAGE = 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7'
  141. HTTP_AUTHORIZATION = 'Token 2ac4fc775a977ce5592fee25a6d39a7d801a63ef'
  142. HTTP_CONNECTION = 'close'
  143. HTTP_HOST = '176.113.83.31:8000'
  144. HTTP_ORIGIN = 'http://0.0.0.0:8080'
  145. HTTP_REFERER = 'http://0.0.0.0:8080/invest/105'
  146. HTTP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36'
  147. HTTP_X_FORWARDED_FOR = '146.185.136.157'
  148. HTTP_X_FORWARDED_PROTO = 'http'
  149. HTTP_X_REAL_IP = '146.185.136.157'
  150. PATH_INFO = '/api/client/invest_recommendations/84/complete/'
  151. QUERY_STRING = ''
  152. RAW_URI = '/api/client/invest_recommendations/84/complete/'
  153. REMOTE_ADDR = ''
  154. REQUEST_METHOD = 'POST'
  155. SCRIPT_NAME = ''
  156. SERVER_NAME = '176.113.83.31'
  157. SERVER_PORT = '8000'
  158. SERVER_PROTOCOL = 'HTTP/1.0'
  159. SERVER_SOFTWARE = 'gunicorn/19.9.0'
  160. gunicorn.socket = <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/root/bks-backend/bks.sock>
  161. wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f20135c0da0>
  162. wsgi.file_wrapper = ''
  163. wsgi.input = <gunicorn.http.body.Body object at 0x7f20135c0080>
  164. wsgi.multiprocess = True
  165. wsgi.multithread = False
  166. wsgi.run_once = False
  167. wsgi.url_scheme = 'http'
  168. wsgi.version = '(1, 0)'
  169.  
  170. Settings:
  171. Using settings module bksproject.settings
  172. ABSOLUTE_URL_OVERRIDES = {}
  173. ADMINS = []
  174. ALLOWED_HOSTS = ['*']
  175. APPEND_SLASH = True
  176. AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
  177. AUTH_PASSWORD_VALIDATORS = '********************'
  178. AUTH_USER_MODEL = 'Auth.User'
  179. BASE_DIR = '/root/bks-backend'
  180. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
  181. CACHE_MIDDLEWARE_ALIAS = 'default'
  182. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  183. CACHE_MIDDLEWARE_SECONDS = 600
  184. CKEDITOR_BASEPATH = '/static/ckeditor/ckeditor'
  185. 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'}}
  186. CKEDITOR_UPLOAD_PATH = 'attachments/'
  187. CKEDITOR_UPLOAD_SLUGIFY_FILENAME = True
  188. CORS_ORIGIN_ALLOW_ALL = True
  189. CSRF_COOKIE_AGE = 31449600
  190. CSRF_COOKIE_DOMAIN = None
  191. CSRF_COOKIE_HTTPONLY = False
  192. CSRF_COOKIE_NAME = 'csrftoken'
  193. CSRF_COOKIE_PATH = '/'
  194. CSRF_COOKIE_SAMESITE = 'Lax'
  195. CSRF_COOKIE_SECURE = False
  196. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  197. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  198. CSRF_TRUSTED_ORIGINS = []
  199. CSRF_USE_SESSIONS = False
  200. 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}}}
  201. DATABASE_ROUTERS = []
  202. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  203. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  204. DATETIME_FORMAT = 'N j, Y, P'
  205. 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']
  206. DATE_FORMAT = 'N j, Y'
  207. 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']
  208. DEBUG = True
  209. DEBUG_PROPAGATE_EXCEPTIONS = False
  210. DECIMAL_SEPARATOR = '.'
  211. DEFAULT_CHARSET = 'utf-8'
  212. DEFAULT_CONTENT_TYPE = 'text/html'
  213. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  214. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  215. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  216. DEFAULT_INDEX_TABLESPACE = ''
  217. DEFAULT_TABLESPACE = ''
  218. DISALLOWED_USER_AGENTS = []
  219. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  220. EMAIL_HOST = 'smtp.sendgrid.net'
  221. EMAIL_HOST_PASSWORD = '********************'
  222. EMAIL_HOST_USER = 'AnastasiaPicasel'
  223. EMAIL_PORT = 587
  224. EMAIL_SSL_CERTFILE = None
  225. EMAIL_SSL_KEYFILE = '********************'
  226. EMAIL_SUBJECT_PREFIX = '[Django] '
  227. EMAIL_TIMEOUT = None
  228. EMAIL_USE_LOCALTIME = False
  229. EMAIL_USE_SSL = False
  230. EMAIL_USE_TLS = True
  231. FILE_CHARSET = 'utf-8'
  232. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  233. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  234. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  235. FILE_UPLOAD_PERMISSIONS = None
  236. FILE_UPLOAD_TEMP_DIR = None
  237. FIRST_DAY_OF_WEEK = 0
  238. FIXTURE_DIRS = []
  239. FORCE_SCRIPT_NAME = None
  240. FORMAT_MODULE_PATH = None
  241. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  242. IGNORABLE_404_URLS = []
  243. 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', 'Portfolio.apps.PortfolioConfig', 'Payout.apps.PayoutConfig']
  244. INTERNAL_IPS = []
  245. 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')]
  246. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  247. LANGUAGE_CODE = 'ru-ru'
  248. LANGUAGE_COOKIE_AGE = None
  249. LANGUAGE_COOKIE_DOMAIN = None
  250. LANGUAGE_COOKIE_NAME = 'django_language'
  251. LANGUAGE_COOKIE_PATH = '/'
  252. LOCALE_PATHS = []
  253. LOGGING = {}
  254. LOGGING_CONFIG = 'logging.config.dictConfig'
  255. LOGIN_REDIRECT_URL = '/accounts/profile/'
  256. LOGIN_URL = '/accounts/login/'
  257. LOGOUT_REDIRECT_URL = None
  258. MAIN_EMAIL_ADDRESS = 'a.bilyalov@picasel.agency'
  259. MANAGERS = []
  260. MEDIA_ROOT = '/root/bks-backend/media'
  261. MEDIA_URL = '/media/'
  262. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  263. 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']
  264. MIGRATION_MODULES = {}
  265. MONTH_DAY_FORMAT = 'F j'
  266. NUMBER_GROUPING = 0
  267. PASSWORD_HASHERS = '********************'
  268. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  269. PREPEND_WWW = False
  270. REST_FRAMEWORK = {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.TokenAuthentication'), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly',)}
  271. ROOT_URLCONF = 'bksproject.urls'
  272. SECONDS_IN_DAY = 86400
  273. SECRET_KEY = '********************'
  274. SECURE_BROWSER_XSS_FILTER = False
  275. SECURE_CONTENT_TYPE_NOSNIFF = False
  276. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  277. SECURE_HSTS_PRELOAD = False
  278. SECURE_HSTS_SECONDS = 0
  279. SECURE_PROXY_SSL_HEADER = None
  280. SECURE_REDIRECT_EXEMPT = []
  281. SECURE_SSL_HOST = None
  282. SECURE_SSL_REDIRECT = False
  283. SERVER_EMAIL = 'root@localhost'
  284. SESSION_CACHE_ALIAS = 'default'
  285. SESSION_COOKIE_AGE = 1209600
  286. SESSION_COOKIE_DOMAIN = None
  287. SESSION_COOKIE_HTTPONLY = True
  288. SESSION_COOKIE_NAME = 'sessionid'
  289. SESSION_COOKIE_PATH = '/'
  290. SESSION_COOKIE_SAMESITE = 'Lax'
  291. SESSION_COOKIE_SECURE = False
  292. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  293. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  294. SESSION_FILE_PATH = None
  295. SESSION_SAVE_EVERY_REQUEST = False
  296. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  297. SETTINGS_MODULE = 'bksproject.settings'
  298. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  299. SHORT_DATE_FORMAT = 'm/d/Y'
  300. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  301. SILENCED_SYSTEM_CHECKS = []
  302. STATICFILES_DIRS = []
  303. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  304. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  305. STATIC_ROOT = '/root/bks-backend/static'
  306. STATIC_URL = '/static/'
  307. 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']}}]
  308. TEST_NON_SERIALIZED_APPS = []
  309. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  310. THOUSAND_SEPARATOR = ','
  311. TIME_FORMAT = 'P'
  312. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  313. TIME_ZONE = 'UTC'
  314. USE_I18N = True
  315. USE_L10N = True
  316. USE_THOUSAND_SEPARATOR = False
  317. USE_TZ = True
  318. USE_X_FORWARDED_HOST = False
  319. USE_X_FORWARDED_PORT = False
  320. WSGI_APPLICATION = 'bksproject.wsgi.application'
  321. X_FRAME_OPTIONS = 'SAMEORIGIN'
  322. YEAR_MONTH_FORMAT = 'F Y'
  323.  
  324.  
  325. You're seeing this error because you have DEBUG = True in your
  326. Django settings file. Change that to False, and Django will
  327. display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement