Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.22 KB | None | 0 0
  1. ConnectionError at /api/petitions/20036/
  2. ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f8980a2d668>: Failed to establish a new connection: [Errno -2] Name or service not known) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f8980a2d668>: Failed to establish a new connection: [Errno -2] Name or service not known)
  3.  
  4. Request Method: PATCH
  5. Request URL: http://mlg4og.usetech.ru/api/petitions/20036/
  6. Django Version: 1.11.4
  7. Python Executable: /usr/local/bin/python
  8. Python Version: 3.6.2
  9. Python Path: ['/app', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/site-packages', '/app']
  10. Server time: Чт, 18 Янв 2018 11:50:43 +0300
  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. 'channels',
  19. 'rest_framework',
  20. 'rest_framework_swagger',
  21. 'django_extensions',
  22. 'fsm_admin',
  23. 'django_permanent',
  24. 'nested_inline',
  25. 'tinymce',
  26. 'apps.core',
  27. 'apps.petition',
  28. 'apps.incident',
  29. 'apps.msed',
  30. 'apps.reports',
  31. 'apps.reports.operational_report',
  32. 'apps.reports.incident_report',
  33. 'apps.dictionary',
  34. 'apps.rso']
  35. Installed Middleware:
  36. ['corsheaders.middleware.CorsMiddleware',
  37. 'django.middleware.security.SecurityMiddleware',
  38. 'django.contrib.sessions.middleware.SessionMiddleware',
  39. 'django.middleware.common.CommonMiddleware',
  40. 'django.middleware.csrf.CsrfViewMiddleware',
  41. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  42. 'django.contrib.messages.middleware.MessageMiddleware',
  43. 'django.middleware.clickjacking.XFrameOptionsMiddleware']
  44.  
  45.  
  46. Traceback:
  47.  
  48. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py" in _new_conn
  49. 141. (self.host, self.port), self.timeout, **extra_kw)
  50.  
  51. File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py" in create_connection
  52. 60. for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  53.  
  54. File "/usr/local/lib/python3.6/socket.py" in getaddrinfo
  55. 743. for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  56.  
  57.  
  58. During handling of the above exception ([Errno -2] Name or service not known), another exception occurred:
  59.  
  60.  
  61.  
  62. File "/usr/local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py" in perform_request
  63. 149. response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, **kw)
  64.  
  65. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py" in urlopen
  66. 639. _stacktrace=sys.exc_info()[2])
  67.  
  68. File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py" in increment
  69. 333. raise six.reraise(type(error), error, _stacktrace)
  70.  
  71. File "/usr/local/lib/python3.6/site-packages/urllib3/packages/six.py" in reraise
  72. 686. raise value
  73.  
  74. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py" in urlopen
  75. 601. chunked=chunked)
  76.  
  77. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py" in _make_request
  78. 357. conn.request(method, url, **httplib_request_kw)
  79.  
  80. File "/usr/local/lib/python3.6/http/client.py" in request
  81. 1239. self._send_request(method, url, body, headers, encode_chunked)
  82.  
  83. File "/usr/local/lib/python3.6/http/client.py" in _send_request
  84. 1285. self.endheaders(body, encode_chunked=encode_chunked)
  85.  
  86. File "/usr/local/lib/python3.6/http/client.py" in endheaders
  87. 1234. self._send_output(message_body, encode_chunked=encode_chunked)
  88.  
  89. File "/usr/local/lib/python3.6/http/client.py" in _send_output
  90. 1026. self.send(msg)
  91.  
  92. File "/usr/local/lib/python3.6/http/client.py" in send
  93. 964. self.connect()
  94.  
  95. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py" in connect
  96. 166. conn = self._new_conn()
  97.  
  98. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py" in _new_conn
  99. 150. self, "Failed to establish a new connection: %s" % e)
  100.  
  101.  
  102. During handling of the above exception (<urllib3.connection.HTTPConnection object at 0x7f8980a2d668>: Failed to establish a new connection: [Errno -2] Name or service not known), another exception occurred:
  103.  
  104.  
  105.  
  106. File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  107. 41. response = get_response(request)
  108.  
  109. File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  110. 187. response = self.process_exception_by_middleware(e, request)
  111.  
  112. File "/usr/local/lib/python3.6/site-packages/channels/handler.py" in process_exception_by_middleware
  113. 243. return super(AsgiHandler, self).process_exception_by_middleware(exception, request)
  114.  
  115. File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  116. 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  117.  
  118. File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  119. 58. return view_func(*args, **kwargs)
  120.  
  121. File "/usr/local/lib/python3.6/site-packages/rest_framework/viewsets.py" in view
  122. 86. return self.dispatch(request, *args, **kwargs)
  123.  
  124. File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  125. 489. response = self.handle_exception(exc)
  126.  
  127. File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  128. 449. self.raise_uncaught_exception(exc)
  129.  
  130. File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  131. 486. response = handler(request, *args, **kwargs)
  132.  
  133. File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py" in partial_update
  134. 84. return self.update(request, *args, **kwargs)
  135.  
  136. File "/app/apps/utils/views.py" in update
  137. 284. response = super().update(request, *args, **kwargs)
  138.  
  139. File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py" in update
  140. 70. self.perform_update(serializer)
  141.  
  142. File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py" in perform_update
  143. 80. serializer.save()
  144.  
  145. File "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in save
  146. 210. self.instance = self.update(self.instance, validated_data)
  147.  
  148. File "/app/apps/petition/serializers.py" in update
  149. 79. return super().update(instance, validated_data)
  150.  
  151. File "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in update
  152. 955. instance.save()
  153.  
  154. File "/app/apps/petition/models.py" in save
  155. 201. self.update_elastic_index()
  156.  
  157. File "/app/apps/utils/models.py" in update_elastic_index
  158. 116. get_elastic_client(),
  159.  
  160. File "/app/apps/petition/elastic_helpers.py" in create_or_update_document
  161. 15. if is_document_exists(document_id, index, doc_type, elastic_client):
  162.  
  163. File "/app/apps/petition/elastic_helpers.py" in is_document_exists
  164. 30. elastic_client.get(index=index, doc_type=doc_type, id=document_id)
  165.  
  166. File "/usr/local/lib/python3.6/site-packages/elasticsearch/client/utils.py" in _wrapped
  167. 76. return func(*args, params=params, **kwargs)
  168.  
  169. File "/usr/local/lib/python3.6/site-packages/elasticsearch/client/__init__.py" in get
  170. 411. doc_type, id), params=params)
  171.  
  172. File "/usr/local/lib/python3.6/site-packages/elasticsearch/transport.py" in perform_request
  173. 314. status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
  174.  
  175. File "/usr/local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py" in perform_request
  176. 158. raise ConnectionError('N/A', str(e), e)
  177.  
  178. Exception Type: ConnectionError at /api/petitions/20036/
  179. Exception Value: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f8980a2d668>: Failed to establish a new connection: [Errno -2] Name or service not known) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f8980a2d668>: Failed to establish a new connection: [Errno -2] Name or service not known)
  180. Request information:
  181. USER: npasynkov@usetech.ru
  182.  
  183. GET: No GET data
  184.  
  185. POST: No POST data
  186.  
  187. FILES: No FILES data
  188.  
  189. COOKIES: No cookie data
  190.  
  191. META:
  192. CONTENT_LENGTH = '640'
  193. CONTENT_TYPE = 'application/json'
  194. HTTP_ACCEPT = 'application/json'
  195. HTTP_ACCEPT_LANGUAGE = 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7'
  196. HTTP_CONNECTION = 'upgrade'
  197. HTTP_HOST = 'mlg4og.usetech.ru'
  198. HTTP_ORIGIN = 'http://mlg4og.usetech.ru'
  199. HTTP_REFERER = 'http://mlg4og.usetech.ru/petitions/on_clarifying/20036'
  200. HTTP_REVERSE_VIA = 'GW1'
  201. HTTP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36'
  202. HTTP_X_ACCESS_TOKEN = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTE2MzUxODI5LCJ1c2VyX2lkIjozNywidXNlcm5hbWUiOiJucGFzeW5rb3ZAdXNldGVjaC5ydSIsImlhdCI6MTUxNjI2NTQyOSwidW5pY29ybl9wb255IjoibjRjdGdwL1BqV1VnczA9In0.7M0OT1qP10NeFovEGd9DTPjQEBBigq_qH9W90fsh56Y'
  203. HTTP_X_FORWARDED_FOR = '91.146.50.41, 192.168.50.254'
  204. HTTP_X_USER_ROLE = 'operator'
  205. PATH_INFO = '/api/petitions/20036/'
  206. QUERY_STRING = ''
  207. REMOTE_ADDR = '172.18.0.8'
  208. REMOTE_HOST = '172.18.0.8'
  209. REMOTE_PORT = 49864
  210. REQUEST_METHOD = 'PATCH'
  211. SCRIPT_NAME = ''
  212. SERVER_NAME = '172.18.0.7'
  213. SERVER_PORT = '8000'
  214. wsgi.multiprocess = True
  215. wsgi.multithread = True
  216.  
  217. Settings:
  218. Using settings module config.settings.production
  219. ABSOLUTE_URL_OVERRIDES = {}
  220. ADMINS = []
  221. ALLOWED_HOSTS = ['mlg4og.usetech.ru', '192.168.100.99']
  222. APPEND_SLASH = True
  223. AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
  224. AUTH_PASSWORD_VALIDATORS = '********************'
  225. AUTH_USER_MODEL = 'core.User'
  226. BASE_DIR = <Path:/app>
  227. CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://redis:6379/1', 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}}}
  228. CACHE_MIDDLEWARE_ALIAS = 'default'
  229. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  230. CACHE_MIDDLEWARE_SECONDS = 600
  231. CELERY_ACCEPT_CONTENT = ['application/json']
  232. CELERY_BROKER_URL = 'redis://redis:6379/0'
  233. CELERY_RESULT_BACKEND = 'redis://redis:6379/0'
  234. CELERY_RESULT_SERIALIZER = 'json'
  235. CELERY_TASK_SERIALIZER = 'json'
  236. CELERY_TIMEZONE = 'Europe/Moscow'
  237. CHANNEL_LAYERS = {'default': {'BACKEND': 'asgi_redis.RedisChannelLayer', 'CONFIG': {'hosts': [('redis', 6379)]}, 'ROUTING': 'config.routing.channel_routing'}}
  238. CSRF_COOKIE_AGE = 31449600
  239. CSRF_COOKIE_DOMAIN = None
  240. CSRF_COOKIE_HTTPONLY = False
  241. CSRF_COOKIE_NAME = 'csrftoken'
  242. CSRF_COOKIE_PATH = '/'
  243. CSRF_COOKIE_SECURE = False
  244. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  245. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  246. CSRF_TRUSTED_ORIGINS = []
  247. CSRF_USE_SESSIONS = False
  248. DATABASES = {'default': {'NAME': 'postgresdevuser', 'USER': 'postgresdevuser', 'PASSWORD': '********************', 'HOST': 'postgres', 'PORT': 5432, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  249. DATABASE_ROUTERS = []
  250. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  251. DATA_UPLOAD_MAX_NUMBER_FIELDS = 2000
  252. DATETIME_FORMAT = 'N j, Y, P'
  253. 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']
  254. DATE_FORMAT = 'N j, Y'
  255. 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']
  256. DEBUG = True
  257. DEBUG_PROPAGATE_EXCEPTIONS = False
  258. DECIMAL_SEPARATOR = '.'
  259. DEFAULT_CHARSET = 'utf-8'
  260. DEFAULT_CONTENT_TYPE = 'text/html'
  261. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  262. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  263. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  264. DEFAULT_INDEX_TABLESPACE = ''
  265. DEFAULT_TABLESPACE = ''
  266. DISALLOWED_USER_AGENTS = []
  267. DJANGO_APPS = ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles']
  268. DOCX_UNZIP_TMP_DIR = '/tmp/docx_carantine/'
  269. ELASTIC_URL = 'http://elastic:9200'
  270. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  271. EMAIL_FROM = 'ecur@usetech.ru'
  272. EMAIL_HOST = 'mail.usetech.ru'
  273. EMAIL_HOST_PASSWORD = '********************'
  274. EMAIL_HOST_USER = 'ecur@usetech.ru'
  275. EMAIL_PORT = '25'
  276. EMAIL_SSL_CERTFILE = None
  277. EMAIL_SSL_KEYFILE = '********************'
  278. EMAIL_SUBJECT_PREFIX = '[Django] '
  279. EMAIL_TIMEOUT = None
  280. EMAIL_USE_LOCALTIME = False
  281. EMAIL_USE_SSL = False
  282. EMAIL_USE_TLS = True
  283. FILE_CHARSET = 'utf-8'
  284. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  285. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  286. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  287. FILE_UPLOAD_PERMISSIONS = None
  288. FILE_UPLOAD_TEMP_DIR = None
  289. FIRST_DAY_OF_WEEK = 0
  290. FIXTURE_DIRS = []
  291. FORCE_SCRIPT_NAME = None
  292. FORMAT_MODULE_PATH = None
  293. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  294. IGNORABLE_404_URLS = []
  295. INCIDENT_DOC_TYPE = 'incidents'
  296. INCIDENT_INDEX = 'incidents'
  297. INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'channels', 'rest_framework', 'rest_framework_swagger', 'django_extensions', 'fsm_admin', 'django_permanent', 'nested_inline', 'tinymce', 'apps.core', 'apps.petition', 'apps.incident', 'apps.msed', 'apps.reports', 'apps.reports.operational_report', 'apps.reports.incident_report', 'apps.dictionary', 'apps.rso']
  298. INTERNAL_IPS = []
  299. JWT_ACCESS_EXPIRATION_DELTA = datetime.timedelta(1)
  300. JWT_REFRESH_EXPIRATION_DELTA = datetime.timedelta(2)
  301. 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'), ('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')]
  302. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  303. LANGUAGE_CODE = 'ru-RU'
  304. LANGUAGE_COOKIE_AGE = None
  305. LANGUAGE_COOKIE_DOMAIN = None
  306. LANGUAGE_COOKIE_NAME = 'django_language'
  307. LANGUAGE_COOKIE_PATH = '/'
  308. LOCALE_PATHS = []
  309. LOCAL_APPS = ['apps.core', 'apps.petition', 'apps.incident', 'apps.msed', 'apps.reports', 'apps.reports.operational_report', 'apps.reports.incident_report', 'apps.dictionary', 'apps.rso']
  310. LOGGING = {}
  311. LOGGING_CONFIG = 'logging.config.dictConfig'
  312. LOGIN_REDIRECT_URL = '/accounts/profile/'
  313. LOGIN_URL = '/accounts/login/'
  314. LOGOUT_REDIRECT_URL = None
  315. MANAGERS = []
  316. MEDIA_ROOT = '/app/media'
  317. MEDIA_URL = '/media/'
  318. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  319. MIDDLEWARE = ['corsheaders.middleware.CorsMiddleware', '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']
  320. MIDDLEWARE_CLASSES = ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware']
  321. MIGRATION_MODULES = {}
  322. MONTH_DAY_FORMAT = 'F j'
  323. NOTIFICATION_MESSAGE_KEY_PREFIX = '********************'
  324. NOTIFICATION_MESSAGE_TTL = 172800
  325. NOTIFICATION_TASK_LOCK_KEY = '********************'
  326. NOTIFICATION_TASK_MAX_MESSAGES = 100
  327. NUMBER_GROUPING = 0
  328. PASSWORD_HASHERS = '********************'
  329. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  330. PETITION_DOC_TYPE = 'petitions'
  331. PETITION_INDEX = 'petitions'
  332. PREPEND_WWW = False
  333. RAVEN_CONFIG = {'CELERY_LOGLEVEL': 20, 'DSN': ''}
  334. READ_DOT_ENV_FILE = False
  335. REST_FRAMEWORK = {'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.AllowAny'], 'DEFAULT_AUTHENTICATION_CLASSES': ('apps.core.authentication.CombinedAuthentication',), 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend', 'rest_framework.filters.OrderingFilter'), 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'PAGE_SIZE': 10}
  336. ROOT_URLCONF = 'config.urls'
  337. RSO_SERVER_DICT_ENDPOINT = ''
  338. RSO_SERVER_PETITION_ENDPOINT = ''
  339. SECRET_KEY = '********************'
  340. SECURE_BROWSER_XSS_FILTER = False
  341. SECURE_CONTENT_TYPE_NOSNIFF = False
  342. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  343. SECURE_HSTS_PRELOAD = False
  344. SECURE_HSTS_SECONDS = 0
  345. SECURE_PROXY_SSL_HEADER = None
  346. SECURE_REDIRECT_EXEMPT = []
  347. SECURE_SSL_HOST = None
  348. SECURE_SSL_REDIRECT = False
  349. SENTRY_CLIENT = 'raven.contrib.django.raven_compat.DjangoClient'
  350. SENTRY_DSN = ''
  351. SERVER_EMAIL = 'root@localhost'
  352. SESSION_CACHE_ALIAS = 'default'
  353. SESSION_COOKIE_AGE = 1209600
  354. SESSION_COOKIE_DOMAIN = None
  355. SESSION_COOKIE_HTTPONLY = True
  356. SESSION_COOKIE_NAME = 'sessionid'
  357. SESSION_COOKIE_PATH = '/'
  358. SESSION_COOKIE_SECURE = False
  359. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  360. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  361. SESSION_FILE_PATH = None
  362. SESSION_SAVE_EVERY_REQUEST = False
  363. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  364. SETTINGS_MODULE = 'config.settings.production'
  365. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  366. SHORT_DATE_FORMAT = 'm/d/Y'
  367. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  368. SILENCED_SYSTEM_CHECKS = []
  369. SMS_PASSWORD = '********************'
  370. SMS_URL = 'http://cab.websms.ru/http_in6.asp?{}&format=xml'
  371. SMS_USERNAME = 'medialogia'
  372. STATICFILES_DIRS = []
  373. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  374. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  375. STATIC_ROOT = '/app/static'
  376. STATIC_URL = '/static/'
  377. SWAGGER_SETTINGS = {'LOGIN_URL': 'rest_framework:login', 'LOGOUT_URL': 'rest_framework:logout'}
  378. SYNC_DATA_WITH_ELASTIC = True
  379. TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/app/templates', '/app/static'], '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']}}]
  380. TEST_NON_SERIALIZED_APPS = []
  381. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  382. THIRD_PARTY_APPS = ['channels', 'rest_framework', 'rest_framework_swagger', 'django_extensions', 'fsm_admin', 'django_permanent', 'nested_inline', 'tinymce']
  383. THOUSAND_SEPARATOR = ','
  384. TIME_FORMAT = 'P'
  385. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  386. TIME_ZONE = 'Europe/Moscow'
  387. TINYMCE_DEFAULT_CONFIG = {'theme': 'advanced', 'width': 800, 'height': 400, 'theme_advanced_buttons1': 'bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,', 'theme_advanced_buttons2': 'bullist,numlist,|,undo,redo,|,cleanup,help,code'}
  388. USE_ETAGS = False
  389. USE_I18N = True
  390. USE_L10N = True
  391. USE_THOUSAND_SEPARATOR = False
  392. USE_TZ = True
  393. USE_X_FORWARDED_HOST = False
  394. USE_X_FORWARDED_PORT = False
  395. VPN_PROXY = 'http://192.168.100.99:3128'
  396. WSGI_APPLICATION = 'config.wsgi.application'
  397. X_FRAME_OPTIONS = 'SAMEORIGIN'
  398. YEAR_MONTH_FORMAT = 'F Y'
  399.  
  400.  
  401. You're seeing this error because you have DEBUG = True in your
  402. Django settings file. Change that to False, and Django will
  403. display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement