Advertisement
Guest User

Untitled

a guest
Jan 30th, 2018
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.89 KB | None | 0 0
  1. NotFoundError at /nlc/classify/
  2. Key rnn/gru_cell/gates/kernel/Adam_1 not found in checkpoint
  3. [[Node: save/RestoreV2_31 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_31/tensor_names, save/RestoreV2_31/shape_and_slices)]]
  4.  
  5. Caused by op 'save/RestoreV2_31', defined at:
  6. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/wsgi.py", line 146, in __call__
  7. response = self.get_response(request)
  8. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/base.py", line 81, in get_response
  9. response = self._middleware_chain(request)
  10. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  11. response = get_response(request)
  12. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  13. response = self.get_response(request)
  14. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  15. response = get_response(request)
  16. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  17. response = self.get_response(request)
  18. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  19. response = get_response(request)
  20. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  21. response = self.get_response(request)
  22. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  23. response = get_response(request)
  24. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  25. response = self.get_response(request)
  26. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  27. response = get_response(request)
  28. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  29. response = self.get_response(request)
  30. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  31. response = get_response(request)
  32. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  33. response = self.get_response(request)
  34. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  35. response = get_response(request)
  36. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  37. response = self.get_response(request)
  38. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  39. response = get_response(request)
  40. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/base.py", line 126, in _get_response
  41. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  42. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  43. return view_func(*args, **kwargs)
  44. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/views/generic/base.py", line 69, in view
  45. return self.dispatch(request, *args, **kwargs)
  46. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/rest_framework/views.py", line 491, in dispatch
  47. response = handler(request, *args, **kwargs)
  48. File "/var/www/python/project-new-server/project/SentenceClassifier/views.py", line 196, in post
  49. vectorized_sentences, model_type, model_path)
  50. File "/var/www/python/project-new-server/project/SentenceClassifier/views.py", line 133, in predict_classes
  51. classifier = Classifier(model_path)
  52. File "/var/www/python/project-new-server/project/DeepClassification/Classifier.py", line 9, in __init__
  53. self.saver = tf.train.import_meta_graph(self.model_name + '.meta')
  54. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 1810, in import_meta_graph
  55. **kwargs)
  56. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/framework/meta_graph.py", line 660, in import_scoped_meta_graph
  57. producer_op_list=producer_op_list)
  58. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/framework/importer.py", line 313, in import_graph_def
  59. op_def=op_def)
  60. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2956, in create_op
  61. op_def=op_def)
  62. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1470, in __init__
  63. self._traceback = self._graph._extract_stack() # pylint: disable=protected-access
  64.  
  65. NotFoundError (see above for traceback): Key rnn/gru_cell/gates/kernel/Adam_1 not found in checkpoint
  66. [[Node: save/RestoreV2_31 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_31/tensor_names, save/RestoreV2_31/shape_and_slices)]]
  67.  
  68.  
  69. Request Method: POST
  70. Request URL: http://xyz.amazonaws.com/nlc/classify/
  71. Django Version: 2.0.1
  72. Python Executable: /var/www/python/project-new-server/project-new/bin/python
  73. Python Version: 3.5.2
  74. Python Path: ['/var/www/python/project-new-server', '/var/www/python/project-new-server/project-new/lib/python35.zip', '/var/www/python/project-new-server/project-new/lib/python3.5', '/var/www/python/project-new-server/project-new/lib/python3.5/plat-x86_64-linux-gnu', '/var/www/python/project-new-server/project-new/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/var/www/python/project-new-server/project-new/lib/python3.5/site-packages']
  75. Server time: Tue, 30 Jan 2018 13:13:29 +0000
  76. Installed Applications:
  77. ('django.contrib.admin',
  78. 'django.contrib.auth',
  79. 'django.contrib.contenttypes',
  80. 'django.contrib.sessions',
  81. 'django.contrib.messages',
  82. 'django.contrib.staticfiles',
  83. 'rest_framework',
  84. 'project.api')
  85. Installed Middleware:
  86. ['django.middleware.security.SecurityMiddleware',
  87. 'django.contrib.sessions.middleware.SessionMiddleware',
  88. 'django.middleware.common.CommonMiddleware',
  89. 'django.middleware.csrf.CsrfViewMiddleware',
  90. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  91. 'django.contrib.messages.middleware.MessageMiddleware',
  92. 'django.middleware.clickjacking.XFrameOptionsMiddleware']
  93.  
  94.  
  95. Traceback:
  96.  
  97. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/client/session.py" in _do_call
  98. 1323. return fn(*args)
  99.  
  100. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/client/session.py" in _run_fn
  101. 1302. status, run_metadata)
  102.  
  103. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py" in __exit__
  104. 473. c_api.TF_GetCode(self.status.status))
  105.  
  106. During handling of the above exception (Key rnn/gru_cell/gates/kernel/Adam_1 not found in checkpoint
  107. [[Node: save/RestoreV2_31 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_31/tensor_names, save/RestoreV2_31/shape_and_slices)]]), another exception occurred:
  108.  
  109. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
  110. 35. response = get_response(request)
  111.  
  112. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
  113. 128. response = self.process_exception_by_middleware(e, request)
  114.  
  115. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
  116. 126. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  117.  
  118. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/views/decorators/csrf.py" in wrapped_view
  119. 54. return view_func(*args, **kwargs)
  120.  
  121. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/views/generic/base.py" in view
  122. 69. return self.dispatch(request, *args, **kwargs)
  123.  
  124. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/rest_framework/views.py" in dispatch
  125. 494. response = self.handle_exception(exc)
  126.  
  127. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/rest_framework/views.py" in handle_exception
  128. 454. self.raise_uncaught_exception(exc)
  129.  
  130. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/rest_framework/views.py" in dispatch
  131. 491. response = handler(request, *args, **kwargs)
  132.  
  133. File "/var/www/python/project-new-server/project/SentenceClassifier/views.py" in post
  134. 196. vectorized_sentences, model_type, model_path)
  135.  
  136. File "/var/www/python/project-new-server/project/SentenceClassifier/views.py" in predict_classes
  137. 134. class_probabilities_list = classifier.predict(x_data)
  138.  
  139. File "/var/www/python/project-new-server/project/DeepClassification/Classifier.py" in predict
  140. 36. self.saver.restore(sess, self.model_name)
  141.  
  142. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/training/saver.py" in restore
  143. 1666. {self.saver_def.filename_tensor_name: save_path})
  144.  
  145. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/client/session.py" in run
  146. 889. run_metadata_ptr)
  147.  
  148. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/client/session.py" in _run
  149. 1120. feed_dict_tensor, options, run_metadata)
  150.  
  151. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/client/session.py" in _do_run
  152. 1317. options, run_metadata)
  153.  
  154. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/client/session.py" in _do_call
  155. 1336. raise type(e)(node_def, op, message)
  156.  
  157. Exception Type: NotFoundError at /nlc/classify/
  158. Exception Value: Key rnn/gru_cell/gates/kernel/Adam_1 not found in checkpoint
  159. [[Node: save/RestoreV2_31 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_31/tensor_names, save/RestoreV2_31/shape_and_slices)]]
  160.  
  161. Caused by op 'save/RestoreV2_31', defined at:
  162. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/wsgi.py", line 146, in __call__
  163. response = self.get_response(request)
  164. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/base.py", line 81, in get_response
  165. response = self._middleware_chain(request)
  166. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  167. response = get_response(request)
  168. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  169. response = self.get_response(request)
  170. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  171. response = get_response(request)
  172. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  173. response = self.get_response(request)
  174. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  175. response = get_response(request)
  176. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  177. response = self.get_response(request)
  178. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  179. response = get_response(request)
  180. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  181. response = self.get_response(request)
  182. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  183. response = get_response(request)
  184. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  185. response = self.get_response(request)
  186. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  187. response = get_response(request)
  188. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  189. response = self.get_response(request)
  190. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  191. response = get_response(request)
  192. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/utils/deprecation.py", line 95, in __call__
  193. response = self.get_response(request)
  194. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner
  195. response = get_response(request)
  196. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/core/handlers/base.py", line 126, in _get_response
  197. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  198. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  199. return view_func(*args, **kwargs)
  200. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/django/views/generic/base.py", line 69, in view
  201. return self.dispatch(request, *args, **kwargs)
  202. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/rest_framework/views.py", line 491, in dispatch
  203. response = handler(request, *args, **kwargs)
  204. File "/var/www/python/project-new-server/project/SentenceClassifier/views.py", line 196, in post
  205. vectorized_sentences, model_type, model_path)
  206. File "/var/www/python/project-new-server/project/SentenceClassifier/views.py", line 133, in predict_classes
  207. classifier = Classifier(model_path)
  208. File "/var/www/python/project-new-server/project/DeepClassification/Classifier.py", line 9, in __init__
  209. self.saver = tf.train.import_meta_graph(self.model_name + '.meta')
  210. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 1810, in import_meta_graph
  211. **kwargs)
  212. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/framework/meta_graph.py", line 660, in import_scoped_meta_graph
  213. producer_op_list=producer_op_list)
  214. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/framework/importer.py", line 313, in import_graph_def
  215. op_def=op_def)
  216. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2956, in create_op
  217. op_def=op_def)
  218. File "/var/www/python/project-new-server/project-new/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1470, in __init__
  219. self._traceback = self._graph._extract_stack() # pylint: disable=protected-access
  220.  
  221. NotFoundError (see above for traceback): Key rnn/gru_cell/gates/kernel/Adam_1 not found in checkpoint
  222. [[Node: save/RestoreV2_31 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_31/tensor_names, save/RestoreV2_31/shape_and_slices)]]
  223.  
  224. Request information:
  225. USER: AnonymousUser
  226.  
  227. GET: No GET data
  228.  
  229. POST:
  230. model_id = 'u00000-bnlc-1516620475'
  231. text = " The acquisition was aimed at facilitating the startup's expansion plans to around 20 additional centres in Bengaluru and Delhi by 2017."
  232.  
  233. FILES: No FILES data
  234.  
  235. COOKIES: No cookie data
  236.  
  237. META:
  238. CONTENT_LENGTH = '424'
  239. CONTENT_TYPE = 'multipart/form-data; boundary=--------------------------016307593142594192083101'
  240. CONTEXT_DOCUMENT_ROOT = '/var/www/python/project-new-server/'
  241. CONTEXT_PREFIX = ''
  242. DOCUMENT_ROOT = '/var/www/python/project-new-server/'
  243. GATEWAY_INTERFACE = 'CGI/1.1'
  244. HTTP_ACCEPT = '*/*'
  245. HTTP_ACCEPT_ENCODING = 'gzip, deflate'
  246. HTTP_CACHE_CONTROL = 'no-cache'
  247. HTTP_CONNECTION = 'keep-alive'
  248. HTTP_HOST = 'xyz.amazonaws.com'
  249. HTTP_POSTMAN_TOKEN = '303840ea-1772-4595-9bb6-cdee353553e4'
  250. HTTP_USER_AGENT = 'PostmanRuntime/7.1.1'
  251. PATH_INFO = '/nlc/classify/'
  252. PATH_TRANSLATED = '/var/www/python/project-new-server/config/wsgi.py/nlc/classify/'
  253. QUERY_STRING = ''
  254. REMOTE_ADDR = '123.45.67.89'
  255. REMOTE_PORT = '50850'
  256. REQUEST_METHOD = 'POST'
  257. REQUEST_SCHEME = 'http'
  258. REQUEST_URI = '/nlc/classify/'
  259. SCRIPT_FILENAME = '/var/www/python/project-new-server/config/wsgi.py'
  260. SCRIPT_NAME = ''
  261. SERVER_ADDR = '10.0.0.221'
  262. SERVER_ADMIN = 'webmaster@localhost'
  263. SERVER_NAME = 'xyz.amazonaws.com'
  264. SERVER_PORT = '80'
  265. SERVER_PROTOCOL = 'HTTP/1.1'
  266. SERVER_SIGNATURE = '<address>Apache/2.4.18 (Ubuntu) Server at xyz.amazonaws.com Port 80</address>n'
  267. SERVER_SOFTWARE = 'Apache/2.4.18 (Ubuntu)'
  268. apache.version = '(2, 4, 18)'
  269. mod_wsgi.application_group = 'abc.compute.internal|'
  270. mod_wsgi.callable_object = 'application'
  271. mod_wsgi.enable_sendfile = '0'
  272. mod_wsgi.handler_script = ''
  273. mod_wsgi.input_chunked = '0'
  274. mod_wsgi.listener_host = ''
  275. mod_wsgi.listener_port = '80'
  276. mod_wsgi.process_group = ''
  277. mod_wsgi.request_handler = 'wsgi-script'
  278. mod_wsgi.request_start = '1517318006712024'
  279. mod_wsgi.script_reloading = '1'
  280. mod_wsgi.script_start = '1517318006712196'
  281. mod_wsgi.version = '(4, 3, 0)'
  282. wsgi.errors = <_io.TextIOWrapper encoding='utf-8'>
  283. wsgi.file_wrapper = ''
  284. wsgi.input = <mod_wsgi.Input object at 0x7fd794ebbd70>
  285. wsgi.multiprocess = True
  286. wsgi.multithread = True
  287. wsgi.run_once = False
  288. wsgi.url_scheme = 'http'
  289. wsgi.version = '(1, 0)'
  290.  
  291. Settings:
  292. Using settings module config.settings.production
  293. ABSOLUTE_URL_OVERRIDES = {}
  294. ADMINS = []
  295. ALLOWED_HOSTS = ['*']
  296. APPEND_SLASH = True
  297. APPS_DIR = <Path:/var/www/python/project-new-server/project>
  298. AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
  299. AUTH_PASSWORD_VALIDATORS = '********************'
  300. AUTH_USER_MODEL = 'auth.User'
  301. AWS_BUCKET_NAME = 'newsbytes.prod-bucket.01'
  302. AWS_MODEL_LOCATION = 'project-new/models/natural-language-classifier'
  303. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
  304. CACHE_MIDDLEWARE_ALIAS = 'default'
  305. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  306. CACHE_MIDDLEWARE_SECONDS = 600
  307. CSRF_COOKIE_AGE = 31449600
  308. CSRF_COOKIE_DOMAIN = None
  309. CSRF_COOKIE_HTTPONLY = False
  310. CSRF_COOKIE_NAME = 'csrftoken'
  311. CSRF_COOKIE_PATH = '/'
  312. CSRF_COOKIE_SECURE = False
  313. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  314. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  315. CSRF_TRUSTED_ORIGINS = []
  316. CSRF_USE_SESSIONS = False
  317. DATABASES = {'default': {'PORT': '', 'CONN_MAX_AGE': 0, 'AUTOCOMMIT': True, 'TIME_ZONE': None, 'ENGINE': 'django.db.backends.sqlite3', 'USER': '', 'TEST': {'NAME': None, 'MIRROR': None, 'CHARSET': None, 'COLLATION': None}, 'OPTIONS': {}, 'PASSWORD': '********************', 'HOST': '', 'ATOMIC_REQUESTS': False, 'NAME': '/var/www/python/project-new-server/db.sqlite3'}}
  318. DATABASE_ROUTERS = []
  319. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  320. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  321. DATETIME_FORMAT = 'N j, Y, P'
  322. 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']
  323. DATE_FORMAT = 'N j, Y'
  324. 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']
  325. DEBUG = True
  326. DEBUG_PROPAGATE_EXCEPTIONS = False
  327. DECIMAL_SEPARATOR = '.'
  328. DEFAULT_CHARSET = 'utf-8'
  329. DEFAULT_CONTENT_TYPE = 'text/html'
  330. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  331. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  332. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  333. DEFAULT_INDEX_TABLESPACE = ''
  334. DEFAULT_TABLESPACE = ''
  335. DISALLOWED_USER_AGENTS = []
  336. DJANGO_APPS = "('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles')"
  337. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  338. EMAIL_HOST = 'localhost'
  339. EMAIL_HOST_PASSWORD = '********************'
  340. EMAIL_HOST_USER = ''
  341. EMAIL_PORT = 25
  342. EMAIL_SSL_CERTFILE = None
  343. EMAIL_SSL_KEYFILE = '********************'
  344. EMAIL_SUBJECT_PREFIX = '[Django] '
  345. EMAIL_TIMEOUT = None
  346. EMAIL_USE_LOCALTIME = False
  347. EMAIL_USE_SSL = False
  348. EMAIL_USE_TLS = False
  349. FILE_CHARSET = 'utf-8'
  350. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  351. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  352. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  353. FILE_UPLOAD_PERMISSIONS = None
  354. FILE_UPLOAD_TEMP_DIR = None
  355. FIRST_DAY_OF_WEEK = 0
  356. FIXTURE_DIRS = []
  357. FORCE_SCRIPT_NAME = None
  358. FORMAT_MODULE_PATH = None
  359. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  360. IGNORABLE_404_URLS = []
  361. INSTALLED_APPS = "('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'project.api')"
  362. INTERNAL_IPS = []
  363. LANGUAGES = [('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English')]
  364. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  365. LANGUAGE_CODE = 'en-us'
  366. LANGUAGE_COOKIE_AGE = None
  367. LANGUAGE_COOKIE_DOMAIN = None
  368. LANGUAGE_COOKIE_NAME = 'django_language'
  369. LANGUAGE_COOKIE_PATH = '/'
  370. LOCALE_PATHS = []
  371. LOCAL_APPS = "('project.api',)"
  372. LOGGING = {}
  373. LOGGING_CONFIG = 'logging.config.dictConfig'
  374. LOGIN_REDIRECT_URL = '/accounts/profile/'
  375. LOGIN_URL = '/accounts/login/'
  376. LOGOUT_REDIRECT_URL = None
  377. MANAGERS = []
  378. MEDIA_ROOT = '/var/www/python/project-new-server/project/media'
  379. MEDIA_URL = '/media/'
  380. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  381. 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']
  382. MIGRATION_MODULES = {}
  383. MODELS_DATA_FOLDER = '/var/www/python/project-new-server/storage/savedModels'
  384. MODEL_CACHE_SECONDS = 30
  385. MONTH_DAY_FORMAT = 'F j'
  386. NUMBER_GROUPING = 0
  387. N_KEYWORDS_TO_CHOOSE = '********************'
  388. PASSWORD_HASHERS = '********************'
  389. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  390. PREPEND_WWW = False
  391. QUERY_THRESHOLD = 7
  392. READ_DOT_ENV_FILE = True
  393. REST_FRAMEWORK = {}
  394. ROOT_DIR = <Path:/var/www/python/project-new-server>
  395. ROOT_URLCONF = 'config.urls'
  396. SECRET_KEY = '********************'
  397. SECURE_BROWSER_XSS_FILTER = False
  398. SECURE_CONTENT_TYPE_NOSNIFF = False
  399. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  400. SECURE_HSTS_PRELOAD = False
  401. SECURE_HSTS_SECONDS = 0
  402. SECURE_PROXY_SSL_HEADER = None
  403. SECURE_REDIRECT_EXEMPT = []
  404. SECURE_SSL_HOST = None
  405. SECURE_SSL_REDIRECT = False
  406. SENTENCE_VECTOR_API_URL = '********************'
  407. SERVER_EMAIL = 'root@localhost'
  408. SESSION_CACHE_ALIAS = 'default'
  409. SESSION_COOKIE_AGE = 1209600
  410. SESSION_COOKIE_DOMAIN = None
  411. SESSION_COOKIE_HTTPONLY = True
  412. SESSION_COOKIE_NAME = 'sessionid'
  413. SESSION_COOKIE_PATH = '/'
  414. SESSION_COOKIE_SECURE = False
  415. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  416. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  417. SESSION_FILE_PATH = None
  418. SESSION_SAVE_EVERY_REQUEST = False
  419. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  420. SETTINGS_MODULE = 'config.settings.production'
  421. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  422. SHORT_DATE_FORMAT = 'm/d/Y'
  423. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  424. SILENCED_SYSTEM_CHECKS = []
  425. STANFORD_TAGGER = 'english.all.3class.distsim.crf.ser.gz'
  426. STATICFILES_DIRS = "('/var/www/python/project-new-server/project/static',)"
  427. STATICFILES_FINDERS = "('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder')"
  428. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  429. STATIC_ROOT = '/var/www/python/project-new-server/staticfiles'
  430. STATIC_URL = '/static/'
  431. 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']}, 'DIRS': [], 'BACKEND': 'django.template.backends.django.DjangoTemplates'}]
  432. TEST_NON_SERIALIZED_APPS = []
  433. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  434. THIRD_PARTY_APPS = "('rest_framework',)"
  435. THOUSAND_SEPARATOR = ','
  436. TIME_FORMAT = 'P'
  437. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  438. TIME_ZONE = 'UTC'
  439. USE_ETAGS = False
  440. USE_I18N = True
  441. USE_L10N = True
  442. USE_THOUSAND_SEPARATOR = False
  443. USE_TZ = True
  444. USE_X_FORWARDED_HOST = False
  445. USE_X_FORWARDED_PORT = False
  446. WSGI_APPLICATION = 'config.wsgi.application'
  447. X_FRAME_OPTIONS = 'SAMEORIGIN'
  448. YEAR_MONTH_FORMAT = 'F Y'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement