Advertisement
Guest User

Untitled

a guest
Mar 5th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.60 KB | None | 0 0
  1. IOError at /webapi/v2/action/
  2. [Errno 2] No such file or directory: '/opt/asuothodi/data/export_trip_tmpl.xlsx'
  3.  
  4. Request Method: POST
  5. Request URL: http://trip.asu.big3.ru:80/webapi/v2/action/?date=2019-03-05
  6. Django Version: 1.11.16
  7. Python Executable: /usr/local/bin/python
  8. Python Version: 2.7.15
  9. Python Path: ['/opt/asuothodi/asu/asuothodi', '/usr/local/bin', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/opt/asuothodi/asu/asuothodi', '/opt/asuothodi/asu/asuothodi']
  10. Server time: Вт, 5 Мар 2019 12:45:37 +0300
  11. Installed Applications:
  12. ['dbbackup',
  13. 'dal',
  14. 'dal_select2',
  15. 'django.contrib.auth',
  16. 'django.contrib.contenttypes',
  17. 'django.contrib.sessions',
  18. 'django.contrib.messages',
  19. 'django.contrib.staticfiles',
  20. 'asuothodi',
  21. 'django.contrib.admin',
  22. 'asuothodi.frontend',
  23. 'asuothodi.mobileapi',
  24. 'asuothodi.imports',
  25. 'rest_framework',
  26. 'rest_framework.authtoken',
  27. 'corsheaders',
  28. 'rest_framework_gis',
  29. 'django.contrib.gis',
  30. 'django_filters',
  31. 'debug_toolbar',
  32. 'easy_select2',
  33. 'rest_framework_swagger',
  34. 'simple_history',
  35. 'asuothodi.webapi_v2',
  36. 'asuothodi.mobileapi_v2',
  37. 'asuothodi.mobile_rfid_v2',
  38. 'asuothodi.extapi',
  39. 'asuothodi.useractions',
  40. 'asuothodi.stats',
  41. 'raven.contrib.django.raven_compat']
  42. Installed Middleware:
  43. [u'raven.contrib.django.middleware.DjangoRestFrameworkCompatMiddleware',
  44. u'raven.contrib.django.middleware.SentryMiddleware',
  45. 'debug_toolbar.middleware.DebugToolbarMiddleware',
  46. 'django.middleware.security.SecurityMiddleware',
  47. 'django.contrib.sessions.middleware.SessionMiddleware',
  48. 'django.middleware.common.CommonMiddleware',
  49. 'django.middleware.csrf.CsrfViewMiddleware',
  50. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  51. 'django.contrib.messages.middleware.MessageMiddleware',
  52. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  53. 'corsheaders.middleware.CorsMiddleware',
  54. 'django.middleware.common.CommonMiddleware',
  55. 'asuothodi.useractions.middleware.Middleware',
  56. 'simple_history.middleware.HistoryRequestMiddleware']
  57.  
  58.  
  59. Traceback:
  60.  
  61. File "/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
  62. 41. response = get_response(request)
  63.  
  64. File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
  65. 187. response = self.process_exception_by_middleware(e, request)
  66.  
  67. File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
  68. 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  69.  
  70. File "/usr/local/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
  71. 58. return view_func(*args, **kwargs)
  72.  
  73. File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py" in view
  74. 68. return self.dispatch(request, *args, **kwargs)
  75.  
  76. File "/usr/local/lib/python2.7/site-packages/rest_framework/views.py" in dispatch
  77. 477. response = self.handle_exception(exc)
  78.  
  79. File "/usr/local/lib/python2.7/site-packages/rest_framework/views.py" in handle_exception
  80. 437. self.raise_uncaught_exception(exc)
  81.  
  82. File "/usr/local/lib/python2.7/site-packages/rest_framework/views.py" in dispatch
  83. 474. response = handler(request, *args, **kwargs)
  84.  
  85. File "/opt/asuothodi/asu/asuothodi/asuothodi/webapi_v2/views.py" in post
  86. 2839. response = action_func(data, request)
  87.  
  88. File "/opt/asuothodi/asu/asuothodi/asuothodi/webapi_v2/actions.py" in download_triptpl_export
  89. 1006. with open(fname, 'rb') as f:
  90.  
  91. Exception Type: IOError at /webapi/v2/action/
  92. Exception Value: [Errno 2] No such file or directory: '/opt/asuothodi/data/export_trip_tmpl.xlsx'
  93. Request information:
  94. USER: admin
  95.  
  96. GET:
  97. date = u'2019-03-05'
  98.  
  99. POST: No POST data
  100.  
  101. FILES: No FILES data
  102.  
  103. COOKIES:
  104. _TRAEFIK_BACKEND = 'http://10.0.12.167:80'
  105.  
  106. META:
  107. CONTENT_LENGTH = '78'
  108. CONTENT_TYPE = 'application/json'
  109. HTTP_ACCEPT = 'application/json, text/plain, */*'
  110. HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
  111. HTTP_ACCEPT_LANGUAGE = 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7'
  112. HTTP_AUTHORIZATION = 'Token 88d6b119b73c6453cb72cae90341d2cb5f424e9f'
  113. HTTP_CACHE_CONTROL = 'no-cache'
  114. HTTP_CONNECTION = 'close'
  115. HTTP_COOKIE = '_TRAEFIK_BACKEND=http://10.0.12.167:80'
  116. HTTP_HOST = 'trip.asu.big3.ru:80'
  117. HTTP_ORIGIN = 'http://localhost:4200'
  118. HTTP_PRAGMA = 'no-cache'
  119. HTTP_REFERER = 'http://localhost:4200/workspace/ws_executive/trip'
  120. HTTP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36'
  121. HTTP_USER_MODE = 'ws_executive'
  122. HTTP_X_COMPRESS = 'null'
  123. HTTP_X_FORWARDED_FOR = '10.255.0.2, 10.0.12.181'
  124. HTTP_X_FORWARDED_HOST = 'trip.asu.big3.ru:80'
  125. HTTP_X_FORWARDED_PORT = '80'
  126. HTTP_X_FORWARDED_PROTO = 'http'
  127. HTTP_X_FORWARDED_SERVER = 'ba660a3d6c35'
  128. HTTP_X_REAL_IP = '10.0.12.181'
  129. PATH_INFO = u'/webapi/v2/action/'
  130. QUERY_STRING = 'date=2019-03-05'
  131. RAW_URI = '/webapi/v2/action/?date=2019-03-05'
  132. REMOTE_ADDR = '10.0.133.7'
  133. REMOTE_PORT = '57426'
  134. REQUEST_METHOD = 'POST'
  135. SCRIPT_NAME = u''
  136. SERVER_NAME = '0.0.0.0'
  137. SERVER_PORT = '8000'
  138. SERVER_PROTOCOL = 'HTTP/1.0'
  139. SERVER_SOFTWARE = 'gunicorn/19.9.0'
  140. gunicorn.socket = <socket._socketobject object at 0x7f335ee56ec0>
  141. wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f335fb98090>
  142. wsgi.file_wrapper = ''
  143. wsgi.input = <gunicorn.http.body.Body object at 0x7f335fb59490>
  144. wsgi.multiprocess = True
  145. wsgi.multithread = False
  146. wsgi.run_once = False
  147. wsgi.url_scheme = 'http'
  148. wsgi.version = u'(1, 0)'
  149.  
  150. Settings:
  151. Using settings module asuothodi.settings
  152. ABSOLUTE_URL_OVERRIDES = {}
  153. ADMINS = []
  154. ALLOWED_HOSTS = ['*']
  155. APPEND_SLASH = True
  156. AUTHENTICATION_BACKENDS = u"('django.contrib.auth.backends.ModelBackend',)"
  157. AUTH_PASSWORD_VALIDATORS = u'********************'
  158. AUTH_USER_MODEL = u'auth.User'
  159. BASE_DIR = '/opt/asuothodi/asu/asuothodi'
  160. CACHES = {'default': {'LOCATION': 'redis://redis:6379/0', 'BACKEND': 'redis_cache.RedisCache'}, 'locmem': {'LOCATION': 'asuothodi', 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
  161. CACHE_MIDDLEWARE_ALIAS = u'default'
  162. CACHE_MIDDLEWARE_KEY_PREFIX = u'********************'
  163. CACHE_MIDDLEWARE_SECONDS = 600
  164. CACHE_ROOT = '/opt/asuothodi/cache'
  165. CELERY_ACCEPT_CONTENT = ['json']
  166. CELERY_BEAT_SCHEDULE = {'celery_ext_unload_emitter': {'task': 'asuothodi.tasks.celery_ext_unload_emitter', 'schedule': <crontab: 0 1 * * * (m/h/d/dM/MY)>}, 'unload_accrual_showcase_task': {'task': 'asuothodi.tasks.unload_accrual_showcase_task', 'schedule': datetime.timedelta(1)}, 'celery_telemetry': {'task': 'asuothodi.tasks.celery_telemetry', 'schedule': 60}, 'clear_task': {'task': 'asuothodi.tasks.clear_task', 'schedule': datetime.timedelta(0, 43200)}, 'celery_scheduler': {'task': 'asuothodi.tasks.celery_scheduler', 'schedule': 5}, 'clear_emitter_report_task': {'task': 'asuothodi.tasks.clear_emitter_report_task', 'schedule': datetime.timedelta(1)}, 'clean_not_user_history': {'task': 'asuothodi.tasks.clean_not_user_history', 'schedule': datetime.timedelta(1)}}
  167. CELERY_BROKER_URL = 'redis://redis:6379/2'
  168. CELERY_RESULT_BACKEND = 'redis://redis:6379/1'
  169. CELERY_RESULT_SERIALIZER = 'json'
  170. CELERY_TASK_RESULT_EXPIRES = 604800
  171. CELERY_TASK_SERIALIZER = 'json'
  172. COMPANY_NAME = '\xd0\x9c\xd0\xbe\xd1\x8f \xd0\xba\xd0\xbe\xd0\xbc\xd0\xbf\xd0\xb0\xd0\xbd\xd0\xb8\xd1\x8f'
  173. CORS_ORIGIN_ALLOW_ALL = True
  174. CSRF_COOKIE_AGE = 31449600
  175. CSRF_COOKIE_DOMAIN = None
  176. CSRF_COOKIE_HTTPONLY = False
  177. CSRF_COOKIE_NAME = u'csrftoken'
  178. CSRF_COOKIE_PATH = u'/'
  179. CSRF_COOKIE_SECURE = False
  180. CSRF_FAILURE_VIEW = u'django.views.csrf.csrf_failure'
  181. CSRF_HEADER_NAME = u'HTTP_X_CSRFTOKEN'
  182. CSRF_TRUSTED_ORIGINS = []
  183. CSRF_USE_SESSIONS = False
  184. DADATA_DEFAULT_ADDRESS = '\xd0\x9d\xd0\xbe\xd0\xb2\xd0\xbe\xd0\xba\xd1\x83\xd0\xb7\xd0\xbd\xd0\xb5\xd1\x86\xd0\xba'
  185. DADATA_LOCATIONS = [{'region': '\xd0\x9a\xd0\xb5\xd0\xbc\xd0\xb5\xd1\x80\xd0\xbe\xd0\xb2\xd1\x81\xd0\xba\xd0\xb0\xd1\x8f'}, {'kladr_id': '42'}]
  186. DADATA_SECRET = u'********************'
  187. DADATA_TOKEN = u'********************'
  188. DADATA_URL_SUGGEST = 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/%s'
  189. DATABASES = {'default': {'ENGINE': 'django.contrib.gis.db.backends.postgis', 'AUTOCOMMIT': True, 'ATOMIC_REQUESTS': False, 'NAME': 'asu', 'CONN_MAX_AGE': 60.0, 'TIME_ZONE': None, 'PORT': '5432', 'HOST': 'postgres', 'USER': 'asu', 'TEST': {'COLLATION': None, 'CHARSET': None, 'NAME': None, 'MIRROR': None}, 'PASSWORD': u'********************', 'OPTIONS': {}}}
  190. DATABASE_ROUTERS = ['asuothodi.models.DBRouter']
  191. DATA_ROOT = '/opt/asuothodi/data'
  192. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  193. DATA_UPLOAD_MAX_NUMBER_FIELDS = 10000
  194. DATETIME_FORMAT = u'N j, Y, P'
  195. DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%d.%m.%Y %H:%M:%S', '%d.%m.%Y', '%d-%m-%Y %H:%M:%S', '%d-%m-%Y']
  196. DATE_FORMAT = u'N j, Y'
  197. DATE_INPUT_FORMATS = [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y']
  198. DBBACKUP_CLEANUP_KEEP = 60
  199. DBBACKUP_CLEANUP_KEEP_MEDIA = 60
  200. DEBUG = 'True'
  201. DEBUG_PROPAGATE_EXCEPTIONS = False
  202. DECIMAL_SEPARATOR = u'.'
  203. DEFAULT_CHARSET = 'utf-8'
  204. DEFAULT_CONTENT_TYPE = u'text/html'
  205. DEFAULT_EXCEPTION_REPORTER_FILTER = u'django.views.debug.SafeExceptionReporterFilter'
  206. DEFAULT_FILE_STORAGE = u'django.core.files.storage.FileSystemStorage'
  207. DEFAULT_FROM_EMAIL = 'robot@big3.ru'
  208. DEFAULT_INDEX_TABLESPACE = u''
  209. DEFAULT_TABLESPACE = u''
  210. DISALLOWED_USER_AGENTS = []
  211. EMAIL_BACKEND = 'asuothodi.email_backend.LoggingEmailBackend'
  212. EMAIL_HOST = 'smtp.yandex.ru'
  213. EMAIL_HOST_PASSWORD = u'********************'
  214. EMAIL_HOST_USER = 'robot@big3.ru'
  215. EMAIL_PORT = 587
  216. EMAIL_SSL_CERTFILE = None
  217. EMAIL_SSL_KEYFILE = u'********************'
  218. EMAIL_SUBJECT_PREFIX = u'[Django] '
  219. EMAIL_TIMEOUT = None
  220. EMAIL_USE_LOCALTIME = False
  221. EMAIL_USE_SSL = False
  222. EMAIL_USE_TLS = True
  223. FCM_API_KEY = u'********************'
  224. FILES_UPLOAD_TO = '/opt/asuothodi/media/files/'
  225. FILE_CHARSET = u'utf-8'
  226. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  227. FILE_UPLOAD_HANDLERS = [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  228. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  229. FILE_UPLOAD_PERMISSIONS = 420
  230. FILE_UPLOAD_TEMP_DIR = None
  231. FIRST_DAY_OF_WEEK = 0
  232. FIXTURE_DIRS = []
  233. FORCE_SCRIPT_NAME = None
  234. FORMAT_MODULE_PATH = None
  235. FORM_RENDERER = u'django.forms.renderers.DjangoTemplates'
  236. GEO_BOX = {'lat': 55.157592, 'lon': 86.7807403, 'zoom': 10}
  237. IGNORABLE_404_URLS = []
  238. INSTALLED_APPS = ['dbbackup', 'dal', 'dal_select2', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'asuothodi', 'django.contrib.admin', 'asuothodi.frontend', 'asuothodi.mobileapi', 'asuothodi.imports', 'rest_framework', 'rest_framework.authtoken', 'corsheaders', 'rest_framework_gis', 'django.contrib.gis', 'django_filters', 'debug_toolbar', 'easy_select2', 'rest_framework_swagger', 'simple_history', 'asuothodi.webapi_v2', 'asuothodi.mobileapi_v2', 'asuothodi.mobile_rfid_v2', 'asuothodi.extapi', 'asuothodi.useractions', 'asuothodi.stats', 'raven.contrib.django.raven_compat']
  239. INTERNAL_IPS = []
  240. LANGUAGES = [(u'af', u'Afrikaans'), (u'ar', u'Arabic'), (u'ast', u'Asturian'), (u'az', u'Azerbaijani'), (u'bg', u'Bulgarian'), (u'be', u'Belarusian'), (u'bn', u'Bengali'), (u'br', u'Breton'), (u'bs', u'Bosnian'), (u'ca', u'Catalan'), (u'cs', u'Czech'), (u'cy', u'Welsh'), (u'da', u'Danish'), (u'de', u'German'), (u'dsb', u'Lower Sorbian'), (u'el', u'Greek'), (u'en', u'English'), (u'en-au', u'Australian English'), (u'en-gb', u'British English'), (u'eo', u'Esperanto'), (u'es', u'Spanish'), (u'es-ar', u'Argentinian Spanish'), (u'es-co', u'Colombian Spanish'), (u'es-mx', u'Mexican Spanish'), (u'es-ni', u'Nicaraguan Spanish'), (u'es-ve', u'Venezuelan Spanish'), (u'et', u'Estonian'), (u'eu', u'Basque'), (u'fa', u'Persian'), (u'fi', u'Finnish'), (u'fr', u'French'), (u'fy', u'Frisian'), (u'ga', u'Irish'), (u'gd', u'Scottish Gaelic'), (u'gl', u'Galician'), (u'he', u'Hebrew'), (u'hi', u'Hindi'), (u'hr', u'Croatian'), (u'hsb', u'Upper Sorbian'), (u'hu', u'Hungarian'), (u'ia', u'Interlingua'), (u'id', u'Indonesian'), (u'io', u'Ido'), (u'is', u'Icelandic'), (u'it', u'Italian'), (u'ja', u'Japanese'), (u'ka', u'Georgian'), (u'kk', u'Kazakh'), (u'km', u'Khmer'), (u'kn', u'Kannada'), (u'ko', u'Korean'), (u'lb', u'Luxembourgish'), (u'lt', u'Lithuanian'), (u'lv', u'Latvian'), (u'mk', u'Macedonian'), (u'ml', u'Malayalam'), (u'mn', u'Mongolian'), (u'mr', u'Marathi'), (u'my', u'Burmese'), (u'nb', u'Norwegian Bokm\xe5l'), (u'ne', u'Nepali'), (u'nl', u'Dutch'), (u'nn', u'Norwegian Nynorsk'), (u'os', u'Ossetic'), (u'pa', u'Punjabi'), (u'pl', u'Polish'), (u'pt', u'Portuguese'), (u'pt-br', u'Brazilian Portuguese'), (u'ro', u'Romanian'), (u'ru', u'Russian'), (u'sk', u'Slovak'), (u'sl', u'Slovenian'), (u'sq', u'Albanian'), (u'sr', u'Serbian'), (u'sr-latn', u'Serbian Latin'), (u'sv', u'Swedish'), (u'sw', u'Swahili'), (u'ta', u'Tamil'), (u'te', u'Telugu'), (u'th', u'Thai'), (u'tr', u'Turkish'), (u'tt', u'Tatar'), (u'udm', u'Udmurt'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'vi', u'Vietnamese'), (u'zh-hans', u'Simplified Chinese'), (u'zh-hant', u'Traditional Chinese')]
  241. LANGUAGES_BIDI = [u'he', u'ar', u'fa', u'ur']
  242. LANGUAGE_CODE = 'ru-ru'
  243. LANGUAGE_COOKIE_AGE = None
  244. LANGUAGE_COOKIE_DOMAIN = None
  245. LANGUAGE_COOKIE_NAME = u'django_language'
  246. LANGUAGE_COOKIE_PATH = u'/'
  247. LOCALE_PATHS = []
  248. LOGGING = {}
  249. LOGGING_CONFIG = u'logging.config.dictConfig'
  250. LOGIN_REDIRECT_URL = u'/accounts/profile/'
  251. LOGIN_URL = u'/accounts/login/'
  252. LOGOUT_REDIRECT_URL = None
  253. MANAGERS = []
  254. MAP_TILE_SERVER = 'http://map.asu.big3.ru/street/%s/%s/%s.png'
  255. MEDIA_ROOT = '/opt/asuothodi/media'
  256. MEDIA_URL = '/media/'
  257. MESSAGE_STORAGE = u'django.contrib.messages.storage.fallback.FallbackStorage'
  258. MIDDLEWARE = [u'raven.contrib.django.middleware.DjangoRestFrameworkCompatMiddleware', u'raven.contrib.django.middleware.SentryMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', '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', 'asuothodi.useractions.middleware.Middleware', 'simple_history.middleware.HistoryRequestMiddleware']
  259. MIDDLEWARE_CLASSES = [u'django.middleware.common.CommonMiddleware', u'django.middleware.csrf.CsrfViewMiddleware']
  260. MIGRATION_MODULES = {}
  261. MONITOR_SERVER_BASE = '81.177.167.215'
  262. MONITOR_SERVER_DEFAULT_TRANSPORT = '109.95.210.203'
  263. MONTH_DAY_FORMAT = u'F j'
  264. NUMBER_GROUPING = 0
  265. PARENT_DIR = '/opt/asuothodi/asu/asuothodi'
  266. PASSWORD_HASHERS = u'********************'
  267. PASSWORD_RESET_TIMEOUT_DAYS = u'********************'
  268. PREPEND_WWW = False
  269. PROJECT_ROOT = '/opt/asuothodi/asu/asuothodi/asuothodi'
  270. PUBLIC_ADDRESS_SITE = 'http://82.202.225.57'
  271. REDIS_URL = 'redis://redis:6379/0'
  272. REST_FRAMEWORK = {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication'), 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'EXCEPTION_HANDLER': 'asuothodi.errors.custom_exception_handler', 'DEFAULT_PERMISSION_CLASSES': 'rest_framework.permissions.IsAuthenticated', 'DEFAULT_THROTTLE_RATES': {'anon': '5/sec', 'user': '50/sec'}, 'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', 'asuothodi.webapi_v2.renderers.XLSXRenderer'), 'DEFAULT_THROTTLE_CLASSES': ('rest_framework.throttling.AnonRateThrottle', 'rest_framework.throttling.UserRateThrottle', 'rest_framework.throttling.ScopedRateThrottle')}
  273. ROOT_URLCONF = 'asuothodi.urls'
  274. ROUTES_URL_OLD = ''
  275. SECRET_KEY = u'********************'
  276. SECURE_BROWSER_XSS_FILTER = False
  277. SECURE_CONTENT_TYPE_NOSNIFF = False
  278. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  279. SECURE_HSTS_PRELOAD = False
  280. SECURE_HSTS_SECONDS = 0
  281. SECURE_PROXY_SSL_HEADER = None
  282. SECURE_REDIRECT_EXEMPT = []
  283. SECURE_SSL_HOST = None
  284. SECURE_SSL_REDIRECT = False
  285. SERVER_EMAIL = 'robot@big3.ru'
  286. SERVER_OSRM = 'osrm:5000'
  287. SESSION_CACHE_ALIAS = u'default'
  288. SESSION_COOKIE_AGE = 1209600
  289. SESSION_COOKIE_DOMAIN = None
  290. SESSION_COOKIE_HTTPONLY = False
  291. SESSION_COOKIE_NAME = u'sessionid'
  292. SESSION_COOKIE_PATH = u'/'
  293. SESSION_COOKIE_SECURE = False
  294. SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
  295. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  296. SESSION_FILE_PATH = None
  297. SESSION_SAVE_EVERY_REQUEST = False
  298. SESSION_SERIALIZER = u'django.contrib.sessions.serializers.JSONSerializer'
  299. SETTINGS_MODULE = 'asuothodi.settings'
  300. SHORT_DATETIME_FORMAT = u'm/d/Y P'
  301. SHORT_DATE_FORMAT = u'm/d/Y'
  302. SIGNING_BACKEND = u'django.core.signing.TimestampSigner'
  303. SILENCED_SYSTEM_CHECKS = []
  304. SIMPLE_DISTANCE_COEF = 3
  305. SITE_ROOT = '/opt/asuothodi/asu/asuothodi/asuothodi'
  306. STATICFILES_DIRS = u'()'
  307. STATICFILES_FINDERS = [u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  308. STATICFILES_STORAGE = u'django.contrib.staticfiles.storage.StaticFilesStorage'
  309. STATIC_ROOT = '/opt/asuothodi/static'
  310. STATIC_URL = '/static/'
  311. TARIFF_CBM = 1
  312. TARIFF_TONN = 1
  313. TEMPLATES = [{'DIRS': ['/opt/asuothodi/asu/asuothodi/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']}, 'BACKEND': 'django.template.backends.django.DjangoTemplates'}]
  314. TEST_NON_SERIALIZED_APPS = []
  315. TEST_RUNNER = u'django.test.runner.DiscoverRunner'
  316. THOUSAND_SEPARATOR = u','
  317. TIME_FORMAT = u'P'
  318. TIME_INPUT_FORMATS = [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M']
  319. TIME_ZONE = 'Europe/Moscow'
  320. UNOCONV_URL = 'http://unoconv:3000'
  321. USERACTIONS_EXCLUDE = ['GET']
  322. USE_ETAGS = False
  323. USE_I18N = True
  324. USE_L10N = True
  325. USE_THOUSAND_SEPARATOR = False
  326. USE_TZ = True
  327. USE_X_FORWARDED_HOST = False
  328. USE_X_FORWARDED_PORT = False
  329. WSGI_APPLICATION = 'asuothodi.wsgi.application'
  330. X_FRAME_OPTIONS = u'SAMEORIGIN'
  331. YEAR_MONTH_FORMAT = u'F Y'
  332.  
  333.  
  334. You're seeing this error because you have DEBUG = True in your
  335. Django settings file. Change that to False, and Django will
  336. display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement