Duca Di Venezia
Серия | Декоративные покрытия |
Разведение | На 10 - 15% чистой водой. |
Расход | 12 - 14 м2/л в зависимости от степени поглощения подложки. |
Инструменты для нанесения | Большая кисть, синтетическая губка компании Oikos. |
Состав | Акриловые сополимеры в водной дисперсии, органические и неорганические пигменты, отборные наполнители, добавки, облегчающие нанесение. |
Температура хранения | +2°C - +36°C. Боится мороза. |
Токсикологические показатели | Продукт не содержит вредных веществ или других компонентов, имеющих в своём составе тяжелые металлы, токсичных, ароматизированных, хлорированных растворителей. |
Цена | от 150,00 грн./ м2 ( Грунт + Fondo Murales + Duca Di Venezia). |
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="robots" content="NONE,NOARCHIVE"> <title>TypeError at /touk/</title> <style type="text/css"> html * { padding:0; margin:0; } body * { padding:10px 20px; } body * * { padding:0; } body { font:small sans-serif; background-color:#fff; color:#000; } body>div { border-bottom:1px solid #ddd; } h1 { font-weight:normal; } h2 { margin-bottom:.8em; } h3 { margin:1em 0 .5em 0; } h4 { margin:0 0 .5em 0; font-weight: normal; } code, pre { font-size: 100%; white-space: pre-wrap; } table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; } tbody td, tbody th { vertical-align:top; padding:2px 3px; } thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; } tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; } table.vars { margin:5px 0 2px 40px; } table.vars td, table.req td { font-family:monospace; } table td.code { width:100%; } table td.code pre { overflow:hidden; } table.source th { color:#666; } table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; } ul.traceback { list-style-type:none; color: #222; } ul.traceback li.frame { padding-bottom:1em; color:#4f4f4f; } ul.traceback li.user { background-color:#e0e0e0; color:#000 } div.context { padding:10px 0; overflow:hidden; } div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; } div.context ol li { font-family:monospace; white-space:pre; color:#777; cursor:pointer; padding-left: 2px; } div.context ol li pre { display:inline; } div.context ol.context-line li { color:#464646; background-color:#dfdfdf; padding: 3px 2px; } div.context ol.context-line li span { position:absolute; right:32px; } .user div.context ol.context-line li { background-color:#bbb; color:#000; } .user div.context ol li { color:#666; } div.commands { margin-left: 40px; } div.commands a { color:#555; text-decoration:none; } .user div.commands a { color: black; } #summary { background: #ffc; } #summary h2 { font-weight: normal; color: #666; } #explanation { background:#eee; } #template, #template-not-exist { background:#f6f6f6; } #template-not-exist ul { margin: 0 0 10px 20px; } #template-not-exist .postmortem-section { margin-bottom: 3px; } #unicode-hint { background:#eee; } #traceback { background:#eee; } #requestinfo { background:#f6f6f6; padding-left:120px; } #summary table { border:none; background:transparent; } #requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; } #requestinfo h3 { margin-bottom:-1em; } .error { background: #ffc; } .specific { color:#cc3300; font-weight:bold; } h2 span.commands { font-size:.7em; font-weight:normal; } span.commands a:link {color:#5E5694;} pre.exception_value { font-family: sans-serif; color: #575757; font-size: 1.5em; margin: 10px 0 10px 0; } .append-bottom { margin-bottom: 10px; } </style> <script type="text/javascript"> function hideAll(elems) { for (var e = 0; e < elems.length; e++) { elems[e].style.display = 'none'; } } window.onload = function() { hideAll(document.querySelectorAll('table.vars')); hideAll(document.querySelectorAll('ol.pre-context')); hideAll(document.querySelectorAll('ol.post-context')); hideAll(document.querySelectorAll('div.pastebin')); } function toggle() { for (var i = 0; i < arguments.length; i++) { var e = document.getElementById(arguments[i]); if (e) { e.style.display = e.style.display == 'none' ? 'block': 'none'; } } return false; } function varToggle(link, id) { toggle('v' + id); var s = link.getElementsByTagName('span')[0]; var uarr = String.fromCharCode(0x25b6); var darr = String.fromCharCode(0x25bc); s.textContent = s.textContent == uarr ? darr : uarr; return false; } function switchPastebinFriendly(link) { s1 = "Switch to copy-and-paste view"; s2 = "Switch back to interactive view"; link.textContent = link.textContent.trim() == s1 ? s2: s1; toggle('browserTraceback', 'pastebinTraceback'); return false; } </script> </head> <body> <div id="summary"> <h1>TypeError at /touk/</h1> <pre class="exception_value">'NoneType' object is not iterable</pre> <table class="meta"> <tr> <th>Request Method:</th> <td>GET</td> </tr> <tr> <th>Request URL:</th> <td>http://127.0.0.1:8999/touk/?name=</td> </tr> <tr> <th>Django Version:</th> <td>2.2.12</td> </tr> <tr> <th>Exception Type:</th> <td>TypeError</td> </tr> <tr> <th>Exception Value:</th> <td><pre>'NoneType' object is not iterable</pre></td> </tr> <tr> <th>Exception Location:</th> <td>/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/googletrans/client.py in translate, line 185</td> </tr> <tr> <th>Python Executable:</th> <td>/Users/andrewageyev/env/moyahata/bin/python</td> </tr> <tr> <th>Python Version:</th> <td>3.8.3</td> </tr> <tr> <th>Python Path:</th> <td><pre>['/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python38.zip', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload', '/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages']</pre></td> </tr> <tr> <th>Server time:</th> <td>Ðн, 15 Ð§ÐµÑ 2020 06:31:25 +0300</td> </tr> </table> </div> <div id="traceback"> <h2>Traceback <span class="commands"><a href="#" onclick="return switchPastebinFriendly(this);"> Switch to copy-and-paste view</a></span> </h2> <div id="browserTraceback"> <ul class="traceback"> <li class="frame django"> <code>/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/exception.py</code> in <code>inner</code> <div class="context" id="c140294493489664"> <ol start="27" class="pre-context" id="pre140294493489664"> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> This decorator is automatically applied to all middleware to ensure that</pre></li> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> no middleware leaks an exception and that the next middleware in the stack</pre></li> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> can rely on getting a response instead of an exception.</pre></li> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> """</pre></li> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> @wraps(get_response)</pre></li> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> def inner(request):</pre></li> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> try:</pre></li> </ol> <ol start="34" class="context-line"> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> response = get_response(request)</pre> <span>â¦</span></li> </ol> <ol start='35' class="post-context" id="post140294493489664"> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> except Exception as exc:</pre></li> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> response = response_for_exception(request, exc)</pre></li> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> return response</pre></li> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre> return inner</pre></li> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre></pre></li> <li onclick="toggle('pre140294493489664', 'post140294493489664')"><pre></pre></li> </ol> </div> <div class="commands"> <a href="#" onclick="return varToggle(this, '140294493489664')"><span>▶</span> Local vars</a> </div> <table class="vars" id="v140294493489664"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>exc</td> <td class="code"><pre>TypeError("'NoneType' object is not iterable")</pre></td> </tr> <tr> <td>get_response</td> <td class="code"><pre><bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f98d8fb31c0>></pre></td> </tr> <tr> <td>request</td> <td class="code"><pre><WSGIRequest: GET '/touk/?name='></pre></td> </tr> </tbody> </table> </li> <li class="frame django"> <code>/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/base.py</code> in <code>_get_response</code> <div class="context" id="c140294487948992"> <ol start="108" class="pre-context" id="pre140294487948992"> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> break</pre></li> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre></pre></li> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> if response is None:</pre></li> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> wrapped_callback = self.make_view_atomic(callback)</pre></li> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> try:</pre></li> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> response = wrapped_callback(request, *callback_args, **callback_kwargs)</pre></li> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> except Exception as e:</pre></li> </ol> <ol start="115" class="context-line"> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> response = self.process_exception_by_middleware(e, request)</pre> <span>â¦</span></li> </ol> <ol start='116' class="post-context" id="post140294487948992"> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre></pre></li> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> # Complain if the view returned None (a common error).</pre></li> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> if response is None:</pre></li> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> if isinstance(callback, types.FunctionType): # FBV</pre></li> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> view_name = callback.__name__</pre></li> <li onclick="toggle('pre140294487948992', 'post140294487948992')"><pre> else: # CBV</pre></li> </ol> </div> <div class="commands"> <a href="#" onclick="return varToggle(this, '140294487948992')"><span>▶</span> Local vars</a> </div> <table class="vars" id="v140294487948992"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>callback</td> <td class="code"><pre><function touk at 0x7f98da934160></pre></td> </tr> <tr> <td>callback_args</td> <td class="code"><pre>()</pre></td> </tr> <tr> <td>callback_kwargs</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>middleware_method</td> <td class="code"><pre><bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f98dac4ce50>></pre></td> </tr> <tr> <td>request</td> <td class="code"><pre><WSGIRequest: GET '/touk/?name='></pre></td> </tr> <tr> <td>resolver</td> <td class="code"><pre><URLResolver 'shopcms.urls' (None:None) '^/'></pre></td> </tr> <tr> <td>resolver_match</td> <td class="code"><pre>ResolverMatch(func=shop.views.touk, args=(), kwargs={}, url_name=touk, app_names=[], namespaces=[], route=^touk/)</pre></td> </tr> <tr> <td>response</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>self</td> <td class="code"><pre><django.core.handlers.wsgi.WSGIHandler object at 0x7f98d8fb31c0></pre></td> </tr> <tr> <td>wrapped_callback</td> <td class="code"><pre><function touk at 0x7f98da934160></pre></td> </tr> </tbody> </table> </li> <li class="frame django"> <code>/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/base.py</code> in <code>_get_response</code> <div class="context" id="c140294487948288"> <ol start="106" class="pre-context" id="pre140294487948288"> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> response = middleware_method(request, callback, callback_args, callback_kwargs)</pre></li> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> if response:</pre></li> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> break</pre></li> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre></pre></li> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> if response is None:</pre></li> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> wrapped_callback = self.make_view_atomic(callback)</pre></li> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> try:</pre></li> </ol> <ol start="113" class="context-line"> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> response = wrapped_callback(request, *callback_args, **callback_kwargs)</pre> <span>â¦</span></li> </ol> <ol start='114' class="post-context" id="post140294487948288"> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> except Exception as e:</pre></li> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> response = self.process_exception_by_middleware(e, request)</pre></li> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre></pre></li> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> # Complain if the view returned None (a common error).</pre></li> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> if response is None:</pre></li> <li onclick="toggle('pre140294487948288', 'post140294487948288')"><pre> if isinstance(callback, types.FunctionType): # FBV</pre></li> </ol> </div> <div class="commands"> <a href="#" onclick="return varToggle(this, '140294487948288')"><span>▶</span> Local vars</a> </div> <table class="vars" id="v140294487948288"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>callback</td> <td class="code"><pre><function touk at 0x7f98da934160></pre></td> </tr> <tr> <td>callback_args</td> <td class="code"><pre>()</pre></td> </tr> <tr> <td>callback_kwargs</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>middleware_method</td> <td class="code"><pre><bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f98dac4ce50>></pre></td> </tr> <tr> <td>request</td> <td class="code"><pre><WSGIRequest: GET '/touk/?name='></pre></td> </tr> <tr> <td>resolver</td> <td class="code"><pre><URLResolver 'shopcms.urls' (None:None) '^/'></pre></td> </tr> <tr> <td>resolver_match</td> <td class="code"><pre>ResolverMatch(func=shop.views.touk, args=(), kwargs={}, url_name=touk, app_names=[], namespaces=[], route=^touk/)</pre></td> </tr> <tr> <td>response</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>self</td> <td class="code"><pre><django.core.handlers.wsgi.WSGIHandler object at 0x7f98d8fb31c0></pre></td> </tr> <tr> <td>wrapped_callback</td> <td class="code"><pre><function touk at 0x7f98da934160></pre></td> </tr> </tbody> </table> </li> <li class="frame user"> <code>/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/shop/views.py</code> in <code>touk</code> <div class="context" id="c140294484823680"> <ol start="486" class="pre-context" id="pre140294484823680"> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre></pre></li> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre>def touk(request):</pre></li> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre> name = request.GET.get('name')</pre></li> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre> import googletrans</pre></li> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre> from googletrans import Translator</pre></li> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre> print(googletrans.LANGCODES)</pre></li> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre> translator = Translator()</pre></li> </ol> <ol start="493" class="context-line"> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre> translate = translator.translate(name, src="ru", dest="uk")</pre> <span>â¦</span></li> </ol> <ol start='494' class="post-context" id="post140294484823680"> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre> print (translate.__dict__)</pre></li> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre> return HttpResponse(translate.text)</pre></li> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre></pre></li> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre>@login_required</pre></li> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre>def all(request, slug, page=False):</pre></li> <li onclick="toggle('pre140294484823680', 'post140294484823680')"><pre> # assert False, reverse('all', args=(slug,))</pre></li> </ol> </div> <div class="commands"> <a href="#" onclick="return varToggle(this, '140294484823680')"><span>▶</span> Local vars</a> </div> <table class="vars" id="v140294484823680"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>Translator</td> <td class="code"><pre><class 'googletrans.client.Translator'></pre></td> </tr> <tr> <td>googletrans</td> <td class="code"><pre><module 'googletrans' from '/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/googletrans/__init__.py'></pre></td> </tr> <tr> <td>name</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>request</td> <td class="code"><pre><WSGIRequest: GET '/touk/?name='></pre></td> </tr> <tr> <td>translator</td> <td class="code"><pre><googletrans.client.Translator object at 0x7f98db15a970></pre></td> </tr> </tbody> </table> </li> <li class="frame user"> <code>/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/googletrans/client.py</code> in <code>translate</code> <div class="context" id="c140294488868096"> <ol start="178" class="pre-context" id="pre140294488868096"> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre> result.append(translated)</pre></li> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre> return result</pre></li> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre></pre></li> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre> origin = text</pre></li> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre> data = self._translate(text, dest, src, kwargs)</pre></li> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre></pre></li> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre> # this code will be updated when the format is changed.</pre></li> </ol> <ol start="185" class="context-line"> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre> translated = ''.join([d[0] if d[0] else '' for d in data[0]])</pre> <span>â¦</span></li> </ol> <ol start='186' class="post-context" id="post140294488868096"> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre></pre></li> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre> extra_data = self._parse_extra_data(data)</pre></li> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre></pre></li> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre> # actual source language that will be recognized by Google Translator when the</pre></li> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre> # src passed is equal to auto.</pre></li> <li onclick="toggle('pre140294488868096', 'post140294488868096')"><pre> try:</pre></li> </ol> </div> <div class="commands"> <a href="#" onclick="return varToggle(this, '140294488868096')"><span>▶</span> Local vars</a> </div> <table class="vars" id="v140294488868096"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>data</td> <td class="code"><pre>[None, None, 'ru', None, None, None, 0.0, [], [['ru'], None, [0.0], ['ru']]]</pre></td> </tr> <tr> <td>dest</td> <td class="code"><pre>'uk'</pre></td> </tr> <tr> <td>kwargs</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>origin</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>self</td> <td class="code"><pre><googletrans.client.Translator object at 0x7f98db15a970></pre></td> </tr> <tr> <td>src</td> <td class="code"><pre>'ru'</pre></td> </tr> <tr> <td>text</td> <td class="code"><pre>''</pre></td> </tr> </tbody> </table> </li> </ul> </div> <form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post"> <div id="pastebinTraceback" class="pastebin"> <input type="hidden" name="language" value="PythonConsole"> <input type="hidden" name="title" value="TypeError at /touk/"> <input type="hidden" name="source" value="Django Dpaste Agent"> <input type="hidden" name="poster" value="Django"> <textarea name="content" id="traceback_area" cols="140" rows="25"> Environment: Request Method: GET Request URL: http://127.0.0.1:8999/touk/?name= Django Version: 2.2.12 Python Version: 3.8.3 Installed Applications: ['djangocms_admin_style', 'django.contrib.auth', 'mptt', 'django.contrib.contenttypes', 'django.contrib.sessions', 'modeltranslation', 'django.contrib.admin', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'django.contrib.redirects', 'cms', 'menus', 'sekizai', 'treebeard', 'djangocms_text_ckeditor', 'filer', 'easy_thumbnails', 'djangocms_bootstrap4', 'djangocms_bootstrap4.contrib.bootstrap4_alerts', 'djangocms_bootstrap4.contrib.bootstrap4_badge', 'djangocms_bootstrap4.contrib.bootstrap4_card', 'djangocms_bootstrap4.contrib.bootstrap4_carousel', 'djangocms_bootstrap4.contrib.bootstrap4_collapse', 'djangocms_bootstrap4.contrib.bootstrap4_content', 'djangocms_bootstrap4.contrib.bootstrap4_grid', 'djangocms_bootstrap4.contrib.bootstrap4_jumbotron', 'djangocms_bootstrap4.contrib.bootstrap4_link', 'djangocms_bootstrap4.contrib.bootstrap4_listgroup', 'djangocms_bootstrap4.contrib.bootstrap4_media', 'djangocms_bootstrap4.contrib.bootstrap4_picture', 'djangocms_bootstrap4.contrib.bootstrap4_tabs', 'djangocms_bootstrap4.contrib.bootstrap4_utilities', 'djangocms_file', 'djangocms_icon', 'djangocms_link', 'djangocms_picture', 'djangocms_style', 'djangocms_snippet', 'djangocms_googlemap', 'djangocms_video', 'solo', 'shopcms', 'shop', 'content', 'django_rq', 'inline_static', 'comments', 'critical'] Installed Middleware: ['cms.middleware.utils.ApphookReloadMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware'] Traceback: File "/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/exception.py" in inner 34. response = get_response(request) File "/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response 115. response = self.process_exception_by_middleware(e, request) File "/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response 113. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/shop/views.py" in touk 493. translate = translator.translate(name, src="ru", dest="uk") File "/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/googletrans/client.py" in translate 185. translated = ''.join([d[0] if d[0] else '' for d in data[0]]) Exception Type: TypeError at /touk/ Exception Value: 'NoneType' object is not iterable </textarea> <br><br> <input type="submit" value="Share this traceback on a public website"> </div> </form> </div> <div id="requestinfo"> <h2>Request information</h2> <h3 id="user-info">USER</h3> <p>AnonymousUser</p> <h3 id="get-info">GET</h3> <table class="req"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>name</td> <td class="code"><pre>''</pre></td> </tr> </tbody> </table> <h3 id="post-info">POST</h3> <p>No POST data</p> <h3 id="files-info">FILES</h3> <p>No FILES data</p> <h3 id="cookie-info">COOKIES</h3> <p>No cookie data</p> <h3 id="meta-info">META</h3> <table class="req"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>COLORTERM</td> <td class="code"><pre>'truecolor'</pre></td> </tr> <tr> <td>COMMAND_MODE</td> <td class="code"><pre>'unix2003'</pre></td> </tr> <tr> <td>CONTENT_LENGTH</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>CONTENT_TYPE</td> <td class="code"><pre>'text/plain'</pre></td> </tr> <tr> <td>DJANGO_SETTINGS_MODULE</td> <td class="code"><pre>'shopcms.settings'</pre></td> </tr> <tr> <td>GATEWAY_INTERFACE</td> <td class="code"><pre>'CGI/1.1'</pre></td> </tr> <tr> <td>GIT_ASKPASS</td> <td class="code"><pre>('/Users/andrewageyev/Downloads/Visual Studio ' 'Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh')</pre></td> </tr> <tr> <td>HOME</td> <td class="code"><pre>'/Users/andrewageyev'</pre></td> </tr> <tr> <td>HTTP_ACCEPT</td> <td class="code"><pre>'*/*'</pre></td> </tr> <tr> <td>HTTP_ACCEPT_ENCODING</td> <td class="code"><pre>'gzip, deflate'</pre></td> </tr> <tr> <td>HTTP_CONNECTION</td> <td class="code"><pre>'keep-alive'</pre></td> </tr> <tr> <td>HTTP_HOST</td> <td class="code"><pre>'127.0.0.1:8999'</pre></td> </tr> <tr> <td>HTTP_USER_AGENT</td> <td class="code"><pre>'python-requests/2.18.4'</pre></td> </tr> <tr> <td>LANG</td> <td class="code"><pre>'en_GB.UTF-8'</pre></td> </tr> <tr> <td>LOGNAME</td> <td class="code"><pre>'andrewageyev'</pre></td> </tr> <tr> <td>LaunchInstanceID</td> <td class="code"><pre>'625F2F19-3339-4F03-9134-372DE134A866'</pre></td> </tr> <tr> <td>OLDPWD</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www'</pre></td> </tr> <tr> <td>PATH</td> <td class="code"><pre>'/Users/andrewageyev/env/moyahata/bin:/usr/local/opt/postgresql@10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/postgresql@10/bin'</pre></td> </tr> <tr> <td>PATH_INFO</td> <td class="code"><pre>'/touk/'</pre></td> </tr> <tr> <td>PS1</td> <td class="code"><pre>'(moyahata) %n@%m %1~ %# '</pre></td> </tr> <tr> <td>PWD</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms'</pre></td> </tr> <tr> <td>QUERY_STRING</td> <td class="code"><pre>'name='</pre></td> </tr> <tr> <td>REMOTE_ADDR</td> <td class="code"><pre>'127.0.0.1'</pre></td> </tr> <tr> <td>REMOTE_HOST</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>REQUEST_METHOD</td> <td class="code"><pre>'GET'</pre></td> </tr> <tr> <td>RUN_MAIN</td> <td class="code"><pre>'true'</pre></td> </tr> <tr> <td>SCRIPT_NAME</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>SECURITYSESSIONID</td> <td class="code"><pre>'186a7'</pre></td> </tr> <tr> <td>SERVER_NAME</td> <td class="code"><pre>'1.0.0.127.in-addr.arpa'</pre></td> </tr> <tr> <td>SERVER_PORT</td> <td class="code"><pre>'8999'</pre></td> </tr> <tr> <td>SERVER_PROTOCOL</td> <td class="code"><pre>'HTTP/1.1'</pre></td> </tr> <tr> <td>SERVER_SOFTWARE</td> <td class="code"><pre>'WSGIServer/0.2'</pre></td> </tr> <tr> <td>SHELL</td> <td class="code"><pre>'/bin/zsh'</pre></td> </tr> <tr> <td>SHLVL</td> <td class="code"><pre>'1'</pre></td> </tr> <tr> <td>SSH_AUTH_SOCK</td> <td class="code"><pre>'/private/tmp/com.apple.launchd.bvyZjQGLqp/Listeners'</pre></td> </tr> <tr> <td>TERM</td> <td class="code"><pre>'xterm-256color'</pre></td> </tr> <tr> <td>TERM_PROGRAM</td> <td class="code"><pre>'vscode'</pre></td> </tr> <tr> <td>TERM_PROGRAM_VERSION</td> <td class="code"><pre>'1.45.1'</pre></td> </tr> <tr> <td>TMPDIR</td> <td class="code"><pre>'/var/folders/wd/3t7bmymj11l75_qyv83x6sgc0000gn/T/'</pre></td> </tr> <tr> <td>TZ</td> <td class="code"><pre>'Europe/Kiev'</pre></td> </tr> <tr> <td>USER</td> <td class="code"><pre>'andrewageyev'</pre></td> </tr> <tr> <td>VIRTUAL_ENV</td> <td class="code"><pre>'/Users/andrewageyev/env/moyahata'</pre></td> </tr> <tr> <td>VSCODE_GIT_ASKPASS_MAIN</td> <td class="code"><pre>('/Users/andrewageyev/Downloads/Visual Studio ' 'Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js')</pre></td> </tr> <tr> <td>VSCODE_GIT_ASKPASS_NODE</td> <td class="code"><pre>('/Users/andrewageyev/Downloads/Visual Studio ' 'Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code ' 'Helper (Renderer)')</pre></td> </tr> <tr> <td>VSCODE_GIT_IPC_HANDLE</td> <td class="code"><pre>'/var/folders/wd/3t7bmymj11l75_qyv83x6sgc0000gn/T/vscode-git-e566ebdb32.sock'</pre></td> </tr> <tr> <td>XPC_FLAGS</td> <td class="code"><pre>'0x0'</pre></td> </tr> <tr> <td>XPC_SERVICE_NAME</td> <td class="code"><pre>'0'</pre></td> </tr> <tr> <td>_</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/./manage.py'</pre></td> </tr> <tr> <td>__CF_USER_TEXT_ENCODING</td> <td class="code"><pre>'0x1F5:0x0:0x0'</pre></td> </tr> <tr> <td>wsgi.errors</td> <td class="code"><pre><_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'></pre></td> </tr> <tr> <td>wsgi.file_wrapper</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>wsgi.input</td> <td class="code"><pre><django.core.handlers.wsgi.LimitedStream object at 0x7f98db787790></pre></td> </tr> <tr> <td>wsgi.multiprocess</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>wsgi.multithread</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>wsgi.run_once</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>wsgi.url_scheme</td> <td class="code"><pre>'http'</pre></td> </tr> <tr> <td>wsgi.version</td> <td class="code"><pre>(1, 0)</pre></td> </tr> </tbody> </table> <h3 id="settings-info">Settings</h3> <h4>Using settings module <code>shopcms.settings</code></h4> <table class="req"> <thead> <tr> <th>Setting</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>ABSOLUTE_URL_OVERRIDES</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>ADMINS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>ALLOWED_HOSTS</td> <td class="code"><pre>['127.0.0.1', 'keramobloki.com.ua']</pre></td> </tr> <tr> <td>APPEND_SLASH</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>AUTHENTICATION_BACKENDS</td> <td class="code"><pre>['django.contrib.auth.backends.ModelBackend']</pre></td> </tr> <tr> <td>AUTH_PASSWORD_VALIDATORS</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>AUTH_USER_MODEL</td> <td class="code"><pre>'auth.User'</pre></td> </tr> <tr> <td>BASE_DIR</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms'</pre></td> </tr> <tr> <td>CACHES</td> <td class="code"><pre>{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}</pre></td> </tr> <tr> <td>CACHE_MIDDLEWARE_ALIAS</td> <td class="code"><pre>'default'</pre></td> </tr> <tr> <td>CACHE_MIDDLEWARE_KEY_PREFIX</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>CACHE_MIDDLEWARE_SECONDS</td> <td class="code"><pre>600</pre></td> </tr> <tr> <td>CMS_LANGUAGES</td> <td class="code"><pre>{1: [{'code': 'uk', 'fallbacks': ['ru'], 'hide_untranslated': False, 'name': 'uk', 'public': True, 'redirect_on_fallback': True}, {'code': 'ru', 'fallbacks': ['uk'], 'hide_untranslated': False, 'name': 'ru', 'public': True, 'redirect_on_fallback': True}], 'default': {'hide_untranslated': False, 'public': True, 'redirect_on_fallback': True}, <class 'cms.utils.conf.VERIFIED'>: True}</pre></td> </tr> <tr> <td>CMS_PERMISSION</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>CMS_PLACEHOLDER_CONF</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>CMS_TEMPLATES</td> <td class="code"><pre>(('fullwidth.html', 'Fullwidth'), ('sidebar_left.html', 'Sidebar Left'), ('sidebar_right.html', 'Sidebar Right'))</pre></td> </tr> <tr> <td>CSRF_COOKIE_AGE</td> <td class="code"><pre>31449600</pre></td> </tr> <tr> <td>CSRF_COOKIE_DOMAIN</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>CSRF_COOKIE_HTTPONLY</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>CSRF_COOKIE_NAME</td> <td class="code"><pre>'csrftoken'</pre></td> </tr> <tr> <td>CSRF_COOKIE_PATH</td> <td class="code"><pre>'/'</pre></td> </tr> <tr> <td>CSRF_COOKIE_SAMESITE</td> <td class="code"><pre>'Lax'</pre></td> </tr> <tr> <td>CSRF_COOKIE_SECURE</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>CSRF_FAILURE_VIEW</td> <td class="code"><pre>'django.views.csrf.csrf_failure'</pre></td> </tr> <tr> <td>CSRF_HEADER_NAME</td> <td class="code"><pre>'HTTP_X_CSRFTOKEN'</pre></td> </tr> <tr> <td>CSRF_TRUSTED_ORIGINS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>CSRF_USE_SESSIONS</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>DATABASES</td> <td class="code"><pre>{'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'localhost', 'NAME': 'moyahata', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'moyahata'}}</pre></td> </tr> <tr> <td>DATABASE_ROUTERS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>DATA_DIR</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms'</pre></td> </tr> <tr> <td>DATA_UPLOAD_MAX_MEMORY_SIZE</td> <td class="code"><pre>2621440</pre></td> </tr> <tr> <td>DATA_UPLOAD_MAX_NUMBER_FIELDS</td> <td class="code"><pre>100000</pre></td> </tr> <tr> <td>DATETIME_FORMAT</td> <td class="code"><pre>'N j, Y, P'</pre></td> </tr> <tr> <td>DATETIME_INPUT_FORMATS</td> <td class="code"><pre>['%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']</pre></td> </tr> <tr> <td>DATE_FORMAT</td> <td class="code"><pre>'N j, Y'</pre></td> </tr> <tr> <td>DATE_INPUT_FORMATS</td> <td class="code"><pre>['%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']</pre></td> </tr> <tr> <td>DEBUG</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>DEBUG_PROPAGATE_EXCEPTIONS</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>DECIMAL_SEPARATOR</td> <td class="code"><pre>'.'</pre></td> </tr> <tr> <td>DEFAULT_CHARSET</td> <td class="code"><pre>'utf-8'</pre></td> </tr> <tr> <td>DEFAULT_CONTENT_TYPE</td> <td class="code"><pre>'text/html'</pre></td> </tr> <tr> <td>DEFAULT_EXCEPTION_REPORTER_FILTER</td> <td class="code"><pre>'django.views.debug.SafeExceptionReporterFilter'</pre></td> </tr> <tr> <td>DEFAULT_FILE_STORAGE</td> <td class="code"><pre>'django.core.files.storage.FileSystemStorage'</pre></td> </tr> <tr> <td>DEFAULT_FROM_EMAIL</td> <td class="code"><pre>'[email protected]'</pre></td> </tr> <tr> <td>DEFAULT_INDEX_TABLESPACE</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>DEFAULT_TABLESPACE</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>DISALLOWED_USER_AGENTS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>DJANGOCMS_PICTURE_RESPONSIVE_IMAGES</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>DJANGOCMS_PICTURE_RESPONSIVE_IMAGES_VIEWPORT_BREAKPOINTS</td> <td class="code"><pre>[576, 768, 992, 1230]</pre></td> </tr> <tr> <td>EMAIL_BACKEND</td> <td class="code"><pre>'django.core.mail.backends.smtp.EmailBackend'</pre></td> </tr> <tr> <td>EMAIL_HOST</td> <td class="code"><pre>'localhost'</pre></td> </tr> <tr> <td>EMAIL_HOST_PASSWORD</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>EMAIL_HOST_USER</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>EMAIL_PORT</td> <td class="code"><pre>25</pre></td> </tr> <tr> <td>EMAIL_SSL_CERTFILE</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>EMAIL_SSL_KEYFILE</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>EMAIL_SUBJECT_PREFIX</td> <td class="code"><pre>'[Django] '</pre></td> </tr> <tr> <td>EMAIL_TIMEOUT</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>EMAIL_USE_LOCALTIME</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>EMAIL_USE_SSL</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>EMAIL_USE_TLS</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>FILER_IMAGE_MODEL</td> <td class="code"><pre>'filer.Image'</pre></td> </tr> <tr> <td>FILE_CHARSET</td> <td class="code"><pre>'utf-8'</pre></td> </tr> <tr> <td>FILE_UPLOAD_DIRECTORY_PERMISSIONS</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>FILE_UPLOAD_HANDLERS</td> <td class="code"><pre>['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']</pre></td> </tr> <tr> <td>FILE_UPLOAD_MAX_MEMORY_SIZE</td> <td class="code"><pre>2621440</pre></td> </tr> <tr> <td>FILE_UPLOAD_PERMISSIONS</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>FILE_UPLOAD_TEMP_DIR</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>FIRST_DAY_OF_WEEK</td> <td class="code"><pre>0</pre></td> </tr> <tr> <td>FIXTURE_DIRS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>FORCE_SCRIPT_NAME</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>FORMAT_MODULE_PATH</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>FORM_RENDERER</td> <td class="code"><pre>'django.forms.renderers.DjangoTemplates'</pre></td> </tr> <tr> <td>IGNORABLE_404_URLS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>IMAGE_UPLOAD_DIR</td> <td class="code"><pre>'img'</pre></td> </tr> <tr> <td>INSTALLED_APPS</td> <td class="code"><pre>['djangocms_admin_style', 'django.contrib.auth', 'mptt', 'django.contrib.contenttypes', 'django.contrib.sessions', 'modeltranslation', 'django.contrib.admin', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'django.contrib.redirects', 'cms', 'menus', 'sekizai', 'treebeard', 'djangocms_text_ckeditor', 'filer', 'easy_thumbnails', 'djangocms_bootstrap4', 'djangocms_bootstrap4.contrib.bootstrap4_alerts', 'djangocms_bootstrap4.contrib.bootstrap4_badge', 'djangocms_bootstrap4.contrib.bootstrap4_card', 'djangocms_bootstrap4.contrib.bootstrap4_carousel', 'djangocms_bootstrap4.contrib.bootstrap4_collapse', 'djangocms_bootstrap4.contrib.bootstrap4_content', 'djangocms_bootstrap4.contrib.bootstrap4_grid', 'djangocms_bootstrap4.contrib.bootstrap4_jumbotron', 'djangocms_bootstrap4.contrib.bootstrap4_link', 'djangocms_bootstrap4.contrib.bootstrap4_listgroup', 'djangocms_bootstrap4.contrib.bootstrap4_media', 'djangocms_bootstrap4.contrib.bootstrap4_picture', 'djangocms_bootstrap4.contrib.bootstrap4_tabs', 'djangocms_bootstrap4.contrib.bootstrap4_utilities', 'djangocms_file', 'djangocms_icon', 'djangocms_link', 'djangocms_picture', 'djangocms_style', 'djangocms_snippet', 'djangocms_googlemap', 'djangocms_video', 'solo', 'shopcms', 'shop', 'content', 'django_rq', 'inline_static', 'comments', 'critical']</pre></td> </tr> <tr> <td>INTERNAL_IPS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>LANGUAGES</td> <td class="code"><pre>(('uk', 'uk'), ('ru', 'ru'))</pre></td> </tr> <tr> <td>LANGUAGES_BIDI</td> <td class="code"><pre>['he', 'ar', 'fa', 'ur']</pre></td> </tr> <tr> <td>LANGUAGE_CODE</td> <td class="code"><pre>'uk'</pre></td> </tr> <tr> <td>LANGUAGE_COOKIE_AGE</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>LANGUAGE_COOKIE_DOMAIN</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>LANGUAGE_COOKIE_NAME</td> <td class="code"><pre>'django_language'</pre></td> </tr> <tr> <td>LANGUAGE_COOKIE_PATH</td> <td class="code"><pre>'/'</pre></td> </tr> <tr> <td>LOCALE_PATHS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>LOGGING</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>LOGGING_CONFIG</td> <td class="code"><pre>'logging.config.dictConfig'</pre></td> </tr> <tr> <td>LOGIN_REDIRECT_URL</td> <td class="code"><pre>'/accounts/profile/'</pre></td> </tr> <tr> <td>LOGIN_URL</td> <td class="code"><pre>'/accounts/login/'</pre></td> </tr> <tr> <td>LOGOUT_REDIRECT_URL</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>MANAGERS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>MEDIA_ROOT</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/media'</pre></td> </tr> <tr> <td>MEDIA_URL</td> <td class="code"><pre>'/media/'</pre></td> </tr> <tr> <td>MESSAGE_STORAGE</td> <td class="code"><pre>'django.contrib.messages.storage.fallback.FallbackStorage'</pre></td> </tr> <tr> <td>MIDDLEWARE</td> <td class="code"><pre>['cms.middleware.utils.ApphookReloadMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware']</pre></td> </tr> <tr> <td>MIGRATION_MODULES</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>MONTH_DAY_FORMAT</td> <td class="code"><pre>'F j'</pre></td> </tr> <tr> <td>NUMBER_GROUPING</td> <td class="code"><pre>0</pre></td> </tr> <tr> <td>PASSWORD_HASHERS</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>PASSWORD_RESET_TIMEOUT_DAYS</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>PENTHOUSE_URL</td> <td class="code"><pre>'http://46.105.111.98:3000/'</pre></td> </tr> <tr> <td>PREPEND_WWW</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>ROOT_URLCONF</td> <td class="code"><pre>'shopcms.urls'</pre></td> </tr> <tr> <td>RQ_QUEUES</td> <td class="code"><pre>{'default': {'DB': 10, 'DEFAULT_TIMEOUT': 360, 'HOST': 'localhost', 'PORT': 6379}}</pre></td> </tr> <tr> <td>SECRET_KEY</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>SECURE_BROWSER_XSS_FILTER</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SECURE_CONTENT_TYPE_NOSNIFF</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SECURE_HSTS_INCLUDE_SUBDOMAINS</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SECURE_HSTS_PRELOAD</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SECURE_HSTS_SECONDS</td> <td class="code"><pre>0</pre></td> </tr> <tr> <td>SECURE_PROXY_SSL_HEADER</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>SECURE_REDIRECT_EXEMPT</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>SECURE_SSL_HOST</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>SECURE_SSL_REDIRECT</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SERVER_EMAIL</td> <td class="code"><pre>'root@localhost'</pre></td> </tr> <tr> <td>SESSION_CACHE_ALIAS</td> <td class="code"><pre>'default'</pre></td> </tr> <tr> <td>SESSION_COOKIE_AGE</td> <td class="code"><pre>1209600</pre></td> </tr> <tr> <td>SESSION_COOKIE_DOMAIN</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>SESSION_COOKIE_HTTPONLY</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>SESSION_COOKIE_NAME</td> <td class="code"><pre>'sessionid'</pre></td> </tr> <tr> <td>SESSION_COOKIE_PATH</td> <td class="code"><pre>'/'</pre></td> </tr> <tr> <td>SESSION_COOKIE_SAMESITE</td> <td class="code"><pre>'Lax'</pre></td> </tr> <tr> <td>SESSION_COOKIE_SECURE</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SESSION_ENGINE</td> <td class="code"><pre>'django.contrib.sessions.backends.db'</pre></td> </tr> <tr> <td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SESSION_FILE_PATH</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>SESSION_SAVE_EVERY_REQUEST</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SESSION_SERIALIZER</td> <td class="code"><pre>'django.contrib.sessions.serializers.JSONSerializer'</pre></td> </tr> <tr> <td>SETTINGS_MODULE</td> <td class="code"><pre>'shopcms.settings'</pre></td> </tr> <tr> <td>SHORT_DATETIME_FORMAT</td> <td class="code"><pre>'m/d/Y P'</pre></td> </tr> <tr> <td>SHORT_DATE_FORMAT</td> <td class="code"><pre>'m/d/Y'</pre></td> </tr> <tr> <td>SIGNING_BACKEND</td> <td class="code"><pre>'django.core.signing.TimestampSigner'</pre></td> </tr> <tr> <td>SILENCED_SYSTEM_CHECKS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>SITE_ID</td> <td class="code"><pre>1</pre></td> </tr> <tr> <td>STATICFILES_DIRS</td> <td class="code"><pre>('/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/shopcms/static',)</pre></td> </tr> <tr> <td>STATICFILES_FINDERS</td> <td class="code"><pre>['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']</pre></td> </tr> <tr> <td>STATICFILES_STORAGE</td> <td class="code"><pre>'django.contrib.staticfiles.storage.StaticFilesStorage'</pre></td> </tr> <tr> <td>STATIC_ROOT</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/static'</pre></td> </tr> <tr> <td>STATIC_URL</td> <td class="code"><pre>'/static/'</pre></td> </tr> <tr> <td>TEMPLATES</td> <td class="code"><pre>[{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/shopcms/templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.i18n', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.template.context_processors.csrf', 'django.template.context_processors.tz', 'sekizai.context_processors.sekizai', 'django.template.context_processors.static', 'cms.context_processors.cms_settings'], 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']}}]</pre></td> </tr> <tr> <td>TEST_NON_SERIALIZED_APPS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>TEST_RUNNER</td> <td class="code"><pre>'django.test.runner.DiscoverRunner'</pre></td> </tr> <tr> <td>THOUSAND_SEPARATOR</td> <td class="code"><pre>','</pre></td> </tr> <tr> <td>THUMBNAIL_PROCESSORS</td> <td class="code"><pre>('easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters')</pre></td> </tr> <tr> <td>TIME_FORMAT</td> <td class="code"><pre>'P'</pre></td> </tr> <tr> <td>TIME_INPUT_FORMATS</td> <td class="code"><pre>['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']</pre></td> </tr> <tr> <td>TIME_ZONE</td> <td class="code"><pre>'Europe/Kiev'</pre></td> </tr> <tr> <td>USE_I18N</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>USE_L10N</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>USE_THOUSAND_SEPARATOR</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>USE_TZ</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>USE_X_FORWARDED_HOST</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>USE_X_FORWARDED_PORT</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>WSGI_APPLICATION</td> <td class="code"><pre>'shopcms.wsgi.application'</pre></td> </tr> <tr> <td>X_FRAME_OPTIONS</td> <td class="code"><pre>'SAMEORIGIN'</pre></td> </tr> <tr> <td>YEAR_MONTH_FORMAT</td> <td class="code"><pre>'F Y'</pre></td> </tr> </tbody> </table> </div> <div id="explanation"> <p> You're seeing this error because you have <code>DEBUG = True</code> in your Django settings file. Change that to <code>False</code>, and Django will display a standard page generated by the handler for this status code. </p> </div> </body> </html> | <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="robots" content="NONE,NOARCHIVE"> <title>TypeError at /touk/</title> <style type="text/css"> html * { padding:0; margin:0; } body * { padding:10px 20px; } body * * { padding:0; } body { font:small sans-serif; background-color:#fff; color:#000; } body>div { border-bottom:1px solid #ddd; } h1 { font-weight:normal; } h2 { margin-bottom:.8em; } h3 { margin:1em 0 .5em 0; } h4 { margin:0 0 .5em 0; font-weight: normal; } code, pre { font-size: 100%; white-space: pre-wrap; } table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; } tbody td, tbody th { vertical-align:top; padding:2px 3px; } thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; } tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; } table.vars { margin:5px 0 2px 40px; } table.vars td, table.req td { font-family:monospace; } table td.code { width:100%; } table td.code pre { overflow:hidden; } table.source th { color:#666; } table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; } ul.traceback { list-style-type:none; color: #222; } ul.traceback li.frame { padding-bottom:1em; color:#4f4f4f; } ul.traceback li.user { background-color:#e0e0e0; color:#000 } div.context { padding:10px 0; overflow:hidden; } div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; } div.context ol li { font-family:monospace; white-space:pre; color:#777; cursor:pointer; padding-left: 2px; } div.context ol li pre { display:inline; } div.context ol.context-line li { color:#464646; background-color:#dfdfdf; padding: 3px 2px; } div.context ol.context-line li span { position:absolute; right:32px; } .user div.context ol.context-line li { background-color:#bbb; color:#000; } .user div.context ol li { color:#666; } div.commands { margin-left: 40px; } div.commands a { color:#555; text-decoration:none; } .user div.commands a { color: black; } #summary { background: #ffc; } #summary h2 { font-weight: normal; color: #666; } #explanation { background:#eee; } #template, #template-not-exist { background:#f6f6f6; } #template-not-exist ul { margin: 0 0 10px 20px; } #template-not-exist .postmortem-section { margin-bottom: 3px; } #unicode-hint { background:#eee; } #traceback { background:#eee; } #requestinfo { background:#f6f6f6; padding-left:120px; } #summary table { border:none; background:transparent; } #requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; } #requestinfo h3 { margin-bottom:-1em; } .error { background: #ffc; } .specific { color:#cc3300; font-weight:bold; } h2 span.commands { font-size:.7em; font-weight:normal; } span.commands a:link {color:#5E5694;} pre.exception_value { font-family: sans-serif; color: #575757; font-size: 1.5em; margin: 10px 0 10px 0; } .append-bottom { margin-bottom: 10px; } </style> <script type="text/javascript"> function hideAll(elems) { for (var e = 0; e < elems.length; e++) { elems[e].style.display = 'none'; } } window.onload = function() { hideAll(document.querySelectorAll('table.vars')); hideAll(document.querySelectorAll('ol.pre-context')); hideAll(document.querySelectorAll('ol.post-context')); hideAll(document.querySelectorAll('div.pastebin')); } function toggle() { for (var i = 0; i < arguments.length; i++) { var e = document.getElementById(arguments[i]); if (e) { e.style.display = e.style.display == 'none' ? 'block': 'none'; } } return false; } function varToggle(link, id) { toggle('v' + id); var s = link.getElementsByTagName('span')[0]; var uarr = String.fromCharCode(0x25b6); var darr = String.fromCharCode(0x25bc); s.textContent = s.textContent == uarr ? darr : uarr; return false; } function switchPastebinFriendly(link) { s1 = "Switch to copy-and-paste view"; s2 = "Switch back to interactive view"; link.textContent = link.textContent.trim() == s1 ? s2: s1; toggle('browserTraceback', 'pastebinTraceback'); return false; } </script> </head> <body> <div id="summary"> <h1>TypeError at /touk/</h1> <pre class="exception_value">'NoneType' object is not iterable</pre> <table class="meta"> <tr> <th>Request Method:</th> <td>GET</td> </tr> <tr> <th>Request URL:</th> <td>http://127.0.0.1:8999/touk/?name=</td> </tr> <tr> <th>Django Version:</th> <td>2.2.12</td> </tr> <tr> <th>Exception Type:</th> <td>TypeError</td> </tr> <tr> <th>Exception Value:</th> <td><pre>'NoneType' object is not iterable</pre></td> </tr> <tr> <th>Exception Location:</th> <td>/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/googletrans/client.py in translate, line 185</td> </tr> <tr> <th>Python Executable:</th> <td>/Users/andrewageyev/env/moyahata/bin/python</td> </tr> <tr> <th>Python Version:</th> <td>3.8.3</td> </tr> <tr> <th>Python Path:</th> <td><pre>['/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python38.zip', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8', '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload', '/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages']</pre></td> </tr> <tr> <th>Server time:</th> <td>Ðн, 15 Ð§ÐµÑ 2020 06:31:30 +0300</td> </tr> </table> </div> <div id="traceback"> <h2>Traceback <span class="commands"><a href="#" onclick="return switchPastebinFriendly(this);"> Switch to copy-and-paste view</a></span> </h2> <div id="browserTraceback"> <ul class="traceback"> <li class="frame django"> <code>/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/exception.py</code> in <code>inner</code> <div class="context" id="c140294489843392"> <ol start="27" class="pre-context" id="pre140294489843392"> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> This decorator is automatically applied to all middleware to ensure that</pre></li> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> no middleware leaks an exception and that the next middleware in the stack</pre></li> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> can rely on getting a response instead of an exception.</pre></li> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> """</pre></li> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> @wraps(get_response)</pre></li> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> def inner(request):</pre></li> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> try:</pre></li> </ol> <ol start="34" class="context-line"> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> response = get_response(request)</pre> <span>â¦</span></li> </ol> <ol start='35' class="post-context" id="post140294489843392"> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> except Exception as exc:</pre></li> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> response = response_for_exception(request, exc)</pre></li> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> return response</pre></li> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre> return inner</pre></li> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre></pre></li> <li onclick="toggle('pre140294489843392', 'post140294489843392')"><pre></pre></li> </ol> </div> <div class="commands"> <a href="#" onclick="return varToggle(this, '140294489843392')"><span>▶</span> Local vars</a> </div> <table class="vars" id="v140294489843392"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>exc</td> <td class="code"><pre>TypeError("'NoneType' object is not iterable")</pre></td> </tr> <tr> <td>get_response</td> <td class="code"><pre><bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f98d8fb31c0>></pre></td> </tr> <tr> <td>request</td> <td class="code"><pre><WSGIRequest: GET '/touk/?name='></pre></td> </tr> </tbody> </table> </li> <li class="frame django"> <code>/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/base.py</code> in <code>_get_response</code> <div class="context" id="c140294490537664"> <ol start="108" class="pre-context" id="pre140294490537664"> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> break</pre></li> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre></pre></li> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> if response is None:</pre></li> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> wrapped_callback = self.make_view_atomic(callback)</pre></li> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> try:</pre></li> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> response = wrapped_callback(request, *callback_args, **callback_kwargs)</pre></li> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> except Exception as e:</pre></li> </ol> <ol start="115" class="context-line"> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> response = self.process_exception_by_middleware(e, request)</pre> <span>â¦</span></li> </ol> <ol start='116' class="post-context" id="post140294490537664"> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre></pre></li> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> # Complain if the view returned None (a common error).</pre></li> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> if response is None:</pre></li> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> if isinstance(callback, types.FunctionType): # FBV</pre></li> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> view_name = callback.__name__</pre></li> <li onclick="toggle('pre140294490537664', 'post140294490537664')"><pre> else: # CBV</pre></li> </ol> </div> <div class="commands"> <a href="#" onclick="return varToggle(this, '140294490537664')"><span>▶</span> Local vars</a> </div> <table class="vars" id="v140294490537664"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>callback</td> <td class="code"><pre><function touk at 0x7f98da934160></pre></td> </tr> <tr> <td>callback_args</td> <td class="code"><pre>()</pre></td> </tr> <tr> <td>callback_kwargs</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>middleware_method</td> <td class="code"><pre><bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f98dac4ce50>></pre></td> </tr> <tr> <td>request</td> <td class="code"><pre><WSGIRequest: GET '/touk/?name='></pre></td> </tr> <tr> <td>resolver</td> <td class="code"><pre><URLResolver 'shopcms.urls' (None:None) '^/'></pre></td> </tr> <tr> <td>resolver_match</td> <td class="code"><pre>ResolverMatch(func=shop.views.touk, args=(), kwargs={}, url_name=touk, app_names=[], namespaces=[], route=^touk/)</pre></td> </tr> <tr> <td>response</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>self</td> <td class="code"><pre><django.core.handlers.wsgi.WSGIHandler object at 0x7f98d8fb31c0></pre></td> </tr> <tr> <td>wrapped_callback</td> <td class="code"><pre><function touk at 0x7f98da934160></pre></td> </tr> </tbody> </table> </li> <li class="frame django"> <code>/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/base.py</code> in <code>_get_response</code> <div class="context" id="c140294490536256"> <ol start="106" class="pre-context" id="pre140294490536256"> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> response = middleware_method(request, callback, callback_args, callback_kwargs)</pre></li> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> if response:</pre></li> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> break</pre></li> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre></pre></li> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> if response is None:</pre></li> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> wrapped_callback = self.make_view_atomic(callback)</pre></li> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> try:</pre></li> </ol> <ol start="113" class="context-line"> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> response = wrapped_callback(request, *callback_args, **callback_kwargs)</pre> <span>â¦</span></li> </ol> <ol start='114' class="post-context" id="post140294490536256"> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> except Exception as e:</pre></li> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> response = self.process_exception_by_middleware(e, request)</pre></li> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre></pre></li> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> # Complain if the view returned None (a common error).</pre></li> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> if response is None:</pre></li> <li onclick="toggle('pre140294490536256', 'post140294490536256')"><pre> if isinstance(callback, types.FunctionType): # FBV</pre></li> </ol> </div> <div class="commands"> <a href="#" onclick="return varToggle(this, '140294490536256')"><span>▶</span> Local vars</a> </div> <table class="vars" id="v140294490536256"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>callback</td> <td class="code"><pre><function touk at 0x7f98da934160></pre></td> </tr> <tr> <td>callback_args</td> <td class="code"><pre>()</pre></td> </tr> <tr> <td>callback_kwargs</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>middleware_method</td> <td class="code"><pre><bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f98dac4ce50>></pre></td> </tr> <tr> <td>request</td> <td class="code"><pre><WSGIRequest: GET '/touk/?name='></pre></td> </tr> <tr> <td>resolver</td> <td class="code"><pre><URLResolver 'shopcms.urls' (None:None) '^/'></pre></td> </tr> <tr> <td>resolver_match</td> <td class="code"><pre>ResolverMatch(func=shop.views.touk, args=(), kwargs={}, url_name=touk, app_names=[], namespaces=[], route=^touk/)</pre></td> </tr> <tr> <td>response</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>self</td> <td class="code"><pre><django.core.handlers.wsgi.WSGIHandler object at 0x7f98d8fb31c0></pre></td> </tr> <tr> <td>wrapped_callback</td> <td class="code"><pre><function touk at 0x7f98da934160></pre></td> </tr> </tbody> </table> </li> <li class="frame user"> <code>/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/shop/views.py</code> in <code>touk</code> <div class="context" id="c140294490536064"> <ol start="486" class="pre-context" id="pre140294490536064"> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre></pre></li> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre>def touk(request):</pre></li> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre> name = request.GET.get('name')</pre></li> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre> import googletrans</pre></li> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre> from googletrans import Translator</pre></li> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre> print(googletrans.LANGCODES)</pre></li> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre> translator = Translator()</pre></li> </ol> <ol start="493" class="context-line"> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre> translate = translator.translate(name, src="ru", dest="uk")</pre> <span>â¦</span></li> </ol> <ol start='494' class="post-context" id="post140294490536064"> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre> print (translate.__dict__)</pre></li> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre> return HttpResponse(translate.text)</pre></li> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre></pre></li> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre>@login_required</pre></li> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre>def all(request, slug, page=False):</pre></li> <li onclick="toggle('pre140294490536064', 'post140294490536064')"><pre> # assert False, reverse('all', args=(slug,))</pre></li> </ol> </div> <div class="commands"> <a href="#" onclick="return varToggle(this, '140294490536064')"><span>▶</span> Local vars</a> </div> <table class="vars" id="v140294490536064"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>Translator</td> <td class="code"><pre><class 'googletrans.client.Translator'></pre></td> </tr> <tr> <td>googletrans</td> <td class="code"><pre><module 'googletrans' from '/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/googletrans/__init__.py'></pre></td> </tr> <tr> <td>name</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>request</td> <td class="code"><pre><WSGIRequest: GET '/touk/?name='></pre></td> </tr> <tr> <td>translator</td> <td class="code"><pre><googletrans.client.Translator object at 0x7f98db152a00></pre></td> </tr> </tbody> </table> </li> <li class="frame user"> <code>/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/googletrans/client.py</code> in <code>translate</code> <div class="context" id="c140294494016960"> <ol start="178" class="pre-context" id="pre140294494016960"> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre> result.append(translated)</pre></li> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre> return result</pre></li> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre></pre></li> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre> origin = text</pre></li> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre> data = self._translate(text, dest, src, kwargs)</pre></li> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre></pre></li> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre> # this code will be updated when the format is changed.</pre></li> </ol> <ol start="185" class="context-line"> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre> translated = ''.join([d[0] if d[0] else '' for d in data[0]])</pre> <span>â¦</span></li> </ol> <ol start='186' class="post-context" id="post140294494016960"> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre></pre></li> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre> extra_data = self._parse_extra_data(data)</pre></li> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre></pre></li> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre> # actual source language that will be recognized by Google Translator when the</pre></li> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre> # src passed is equal to auto.</pre></li> <li onclick="toggle('pre140294494016960', 'post140294494016960')"><pre> try:</pre></li> </ol> </div> <div class="commands"> <a href="#" onclick="return varToggle(this, '140294494016960')"><span>▶</span> Local vars</a> </div> <table class="vars" id="v140294494016960"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>data</td> <td class="code"><pre>[None, None, 'ru', None, None, None, 0.0, [], [['ru'], None, [0.0], ['ru']]]</pre></td> </tr> <tr> <td>dest</td> <td class="code"><pre>'uk'</pre></td> </tr> <tr> <td>kwargs</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>origin</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>self</td> <td class="code"><pre><googletrans.client.Translator object at 0x7f98db152a00></pre></td> </tr> <tr> <td>src</td> <td class="code"><pre>'ru'</pre></td> </tr> <tr> <td>text</td> <td class="code"><pre>''</pre></td> </tr> </tbody> </table> </li> </ul> </div> <form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post"> <div id="pastebinTraceback" class="pastebin"> <input type="hidden" name="language" value="PythonConsole"> <input type="hidden" name="title" value="TypeError at /touk/"> <input type="hidden" name="source" value="Django Dpaste Agent"> <input type="hidden" name="poster" value="Django"> <textarea name="content" id="traceback_area" cols="140" rows="25"> Environment: Request Method: GET Request URL: http://127.0.0.1:8999/touk/?name= Django Version: 2.2.12 Python Version: 3.8.3 Installed Applications: ['djangocms_admin_style', 'django.contrib.auth', 'mptt', 'django.contrib.contenttypes', 'django.contrib.sessions', 'modeltranslation', 'django.contrib.admin', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'django.contrib.redirects', 'cms', 'menus', 'sekizai', 'treebeard', 'djangocms_text_ckeditor', 'filer', 'easy_thumbnails', 'djangocms_bootstrap4', 'djangocms_bootstrap4.contrib.bootstrap4_alerts', 'djangocms_bootstrap4.contrib.bootstrap4_badge', 'djangocms_bootstrap4.contrib.bootstrap4_card', 'djangocms_bootstrap4.contrib.bootstrap4_carousel', 'djangocms_bootstrap4.contrib.bootstrap4_collapse', 'djangocms_bootstrap4.contrib.bootstrap4_content', 'djangocms_bootstrap4.contrib.bootstrap4_grid', 'djangocms_bootstrap4.contrib.bootstrap4_jumbotron', 'djangocms_bootstrap4.contrib.bootstrap4_link', 'djangocms_bootstrap4.contrib.bootstrap4_listgroup', 'djangocms_bootstrap4.contrib.bootstrap4_media', 'djangocms_bootstrap4.contrib.bootstrap4_picture', 'djangocms_bootstrap4.contrib.bootstrap4_tabs', 'djangocms_bootstrap4.contrib.bootstrap4_utilities', 'djangocms_file', 'djangocms_icon', 'djangocms_link', 'djangocms_picture', 'djangocms_style', 'djangocms_snippet', 'djangocms_googlemap', 'djangocms_video', 'solo', 'shopcms', 'shop', 'content', 'django_rq', 'inline_static', 'comments', 'critical'] Installed Middleware: ['cms.middleware.utils.ApphookReloadMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware'] Traceback: File "/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/exception.py" in inner 34. response = get_response(request) File "/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response 115. response = self.process_exception_by_middleware(e, request) File "/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response 113. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/shop/views.py" in touk 493. translate = translator.translate(name, src="ru", dest="uk") File "/Users/andrewageyev/env/moyahata/lib/python3.8/site-packages/googletrans/client.py" in translate 185. translated = ''.join([d[0] if d[0] else '' for d in data[0]]) Exception Type: TypeError at /touk/ Exception Value: 'NoneType' object is not iterable </textarea> <br><br> <input type="submit" value="Share this traceback on a public website"> </div> </form> </div> <div id="requestinfo"> <h2>Request information</h2> <h3 id="user-info">USER</h3> <p>AnonymousUser</p> <h3 id="get-info">GET</h3> <table class="req"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>name</td> <td class="code"><pre>''</pre></td> </tr> </tbody> </table> <h3 id="post-info">POST</h3> <p>No POST data</p> <h3 id="files-info">FILES</h3> <p>No FILES data</p> <h3 id="cookie-info">COOKIES</h3> <p>No cookie data</p> <h3 id="meta-info">META</h3> <table class="req"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>COLORTERM</td> <td class="code"><pre>'truecolor'</pre></td> </tr> <tr> <td>COMMAND_MODE</td> <td class="code"><pre>'unix2003'</pre></td> </tr> <tr> <td>CONTENT_LENGTH</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>CONTENT_TYPE</td> <td class="code"><pre>'text/plain'</pre></td> </tr> <tr> <td>DJANGO_SETTINGS_MODULE</td> <td class="code"><pre>'shopcms.settings'</pre></td> </tr> <tr> <td>GATEWAY_INTERFACE</td> <td class="code"><pre>'CGI/1.1'</pre></td> </tr> <tr> <td>GIT_ASKPASS</td> <td class="code"><pre>('/Users/andrewageyev/Downloads/Visual Studio ' 'Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh')</pre></td> </tr> <tr> <td>HOME</td> <td class="code"><pre>'/Users/andrewageyev'</pre></td> </tr> <tr> <td>HTTP_ACCEPT</td> <td class="code"><pre>'*/*'</pre></td> </tr> <tr> <td>HTTP_ACCEPT_ENCODING</td> <td class="code"><pre>'gzip, deflate'</pre></td> </tr> <tr> <td>HTTP_CONNECTION</td> <td class="code"><pre>'keep-alive'</pre></td> </tr> <tr> <td>HTTP_HOST</td> <td class="code"><pre>'127.0.0.1:8999'</pre></td> </tr> <tr> <td>HTTP_USER_AGENT</td> <td class="code"><pre>'python-requests/2.18.4'</pre></td> </tr> <tr> <td>LANG</td> <td class="code"><pre>'en_GB.UTF-8'</pre></td> </tr> <tr> <td>LOGNAME</td> <td class="code"><pre>'andrewageyev'</pre></td> </tr> <tr> <td>LaunchInstanceID</td> <td class="code"><pre>'625F2F19-3339-4F03-9134-372DE134A866'</pre></td> </tr> <tr> <td>OLDPWD</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www'</pre></td> </tr> <tr> <td>PATH</td> <td class="code"><pre>'/Users/andrewageyev/env/moyahata/bin:/usr/local/opt/postgresql@10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/postgresql@10/bin'</pre></td> </tr> <tr> <td>PATH_INFO</td> <td class="code"><pre>'/touk/'</pre></td> </tr> <tr> <td>PS1</td> <td class="code"><pre>'(moyahata) %n@%m %1~ %# '</pre></td> </tr> <tr> <td>PWD</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms'</pre></td> </tr> <tr> <td>QUERY_STRING</td> <td class="code"><pre>'name='</pre></td> </tr> <tr> <td>REMOTE_ADDR</td> <td class="code"><pre>'127.0.0.1'</pre></td> </tr> <tr> <td>REMOTE_HOST</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>REQUEST_METHOD</td> <td class="code"><pre>'GET'</pre></td> </tr> <tr> <td>RUN_MAIN</td> <td class="code"><pre>'true'</pre></td> </tr> <tr> <td>SCRIPT_NAME</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>SECURITYSESSIONID</td> <td class="code"><pre>'186a7'</pre></td> </tr> <tr> <td>SERVER_NAME</td> <td class="code"><pre>'1.0.0.127.in-addr.arpa'</pre></td> </tr> <tr> <td>SERVER_PORT</td> <td class="code"><pre>'8999'</pre></td> </tr> <tr> <td>SERVER_PROTOCOL</td> <td class="code"><pre>'HTTP/1.1'</pre></td> </tr> <tr> <td>SERVER_SOFTWARE</td> <td class="code"><pre>'WSGIServer/0.2'</pre></td> </tr> <tr> <td>SHELL</td> <td class="code"><pre>'/bin/zsh'</pre></td> </tr> <tr> <td>SHLVL</td> <td class="code"><pre>'1'</pre></td> </tr> <tr> <td>SSH_AUTH_SOCK</td> <td class="code"><pre>'/private/tmp/com.apple.launchd.bvyZjQGLqp/Listeners'</pre></td> </tr> <tr> <td>TERM</td> <td class="code"><pre>'xterm-256color'</pre></td> </tr> <tr> <td>TERM_PROGRAM</td> <td class="code"><pre>'vscode'</pre></td> </tr> <tr> <td>TERM_PROGRAM_VERSION</td> <td class="code"><pre>'1.45.1'</pre></td> </tr> <tr> <td>TMPDIR</td> <td class="code"><pre>'/var/folders/wd/3t7bmymj11l75_qyv83x6sgc0000gn/T/'</pre></td> </tr> <tr> <td>TZ</td> <td class="code"><pre>'Europe/Kiev'</pre></td> </tr> <tr> <td>USER</td> <td class="code"><pre>'andrewageyev'</pre></td> </tr> <tr> <td>VIRTUAL_ENV</td> <td class="code"><pre>'/Users/andrewageyev/env/moyahata'</pre></td> </tr> <tr> <td>VSCODE_GIT_ASKPASS_MAIN</td> <td class="code"><pre>('/Users/andrewageyev/Downloads/Visual Studio ' 'Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js')</pre></td> </tr> <tr> <td>VSCODE_GIT_ASKPASS_NODE</td> <td class="code"><pre>('/Users/andrewageyev/Downloads/Visual Studio ' 'Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code ' 'Helper (Renderer)')</pre></td> </tr> <tr> <td>VSCODE_GIT_IPC_HANDLE</td> <td class="code"><pre>'/var/folders/wd/3t7bmymj11l75_qyv83x6sgc0000gn/T/vscode-git-e566ebdb32.sock'</pre></td> </tr> <tr> <td>XPC_FLAGS</td> <td class="code"><pre>'0x0'</pre></td> </tr> <tr> <td>XPC_SERVICE_NAME</td> <td class="code"><pre>'0'</pre></td> </tr> <tr> <td>_</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/./manage.py'</pre></td> </tr> <tr> <td>__CF_USER_TEXT_ENCODING</td> <td class="code"><pre>'0x1F5:0x0:0x0'</pre></td> </tr> <tr> <td>wsgi.errors</td> <td class="code"><pre><_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'></pre></td> </tr> <tr> <td>wsgi.file_wrapper</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>wsgi.input</td> <td class="code"><pre><django.core.handlers.wsgi.LimitedStream object at 0x7f98db1e4d60></pre></td> </tr> <tr> <td>wsgi.multiprocess</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>wsgi.multithread</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>wsgi.run_once</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>wsgi.url_scheme</td> <td class="code"><pre>'http'</pre></td> </tr> <tr> <td>wsgi.version</td> <td class="code"><pre>(1, 0)</pre></td> </tr> </tbody> </table> <h3 id="settings-info">Settings</h3> <h4>Using settings module <code>shopcms.settings</code></h4> <table class="req"> <thead> <tr> <th>Setting</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>ABSOLUTE_URL_OVERRIDES</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>ADMINS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>ALLOWED_HOSTS</td> <td class="code"><pre>['127.0.0.1', 'keramobloki.com.ua']</pre></td> </tr> <tr> <td>APPEND_SLASH</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>AUTHENTICATION_BACKENDS</td> <td class="code"><pre>['django.contrib.auth.backends.ModelBackend']</pre></td> </tr> <tr> <td>AUTH_PASSWORD_VALIDATORS</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>AUTH_USER_MODEL</td> <td class="code"><pre>'auth.User'</pre></td> </tr> <tr> <td>BASE_DIR</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms'</pre></td> </tr> <tr> <td>CACHES</td> <td class="code"><pre>{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}</pre></td> </tr> <tr> <td>CACHE_MIDDLEWARE_ALIAS</td> <td class="code"><pre>'default'</pre></td> </tr> <tr> <td>CACHE_MIDDLEWARE_KEY_PREFIX</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>CACHE_MIDDLEWARE_SECONDS</td> <td class="code"><pre>600</pre></td> </tr> <tr> <td>CMS_LANGUAGES</td> <td class="code"><pre>{1: [{'code': 'uk', 'fallbacks': ['ru'], 'hide_untranslated': False, 'name': 'uk', 'public': True, 'redirect_on_fallback': True}, {'code': 'ru', 'fallbacks': ['uk'], 'hide_untranslated': False, 'name': 'ru', 'public': True, 'redirect_on_fallback': True}], 'default': {'hide_untranslated': False, 'public': True, 'redirect_on_fallback': True}, <class 'cms.utils.conf.VERIFIED'>: True}</pre></td> </tr> <tr> <td>CMS_PERMISSION</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>CMS_PLACEHOLDER_CONF</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>CMS_TEMPLATES</td> <td class="code"><pre>(('fullwidth.html', 'Fullwidth'), ('sidebar_left.html', 'Sidebar Left'), ('sidebar_right.html', 'Sidebar Right'))</pre></td> </tr> <tr> <td>CSRF_COOKIE_AGE</td> <td class="code"><pre>31449600</pre></td> </tr> <tr> <td>CSRF_COOKIE_DOMAIN</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>CSRF_COOKIE_HTTPONLY</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>CSRF_COOKIE_NAME</td> <td class="code"><pre>'csrftoken'</pre></td> </tr> <tr> <td>CSRF_COOKIE_PATH</td> <td class="code"><pre>'/'</pre></td> </tr> <tr> <td>CSRF_COOKIE_SAMESITE</td> <td class="code"><pre>'Lax'</pre></td> </tr> <tr> <td>CSRF_COOKIE_SECURE</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>CSRF_FAILURE_VIEW</td> <td class="code"><pre>'django.views.csrf.csrf_failure'</pre></td> </tr> <tr> <td>CSRF_HEADER_NAME</td> <td class="code"><pre>'HTTP_X_CSRFTOKEN'</pre></td> </tr> <tr> <td>CSRF_TRUSTED_ORIGINS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>CSRF_USE_SESSIONS</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>DATABASES</td> <td class="code"><pre>{'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'localhost', 'NAME': 'moyahata', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'moyahata'}}</pre></td> </tr> <tr> <td>DATABASE_ROUTERS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>DATA_DIR</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms'</pre></td> </tr> <tr> <td>DATA_UPLOAD_MAX_MEMORY_SIZE</td> <td class="code"><pre>2621440</pre></td> </tr> <tr> <td>DATA_UPLOAD_MAX_NUMBER_FIELDS</td> <td class="code"><pre>100000</pre></td> </tr> <tr> <td>DATETIME_FORMAT</td> <td class="code"><pre>'N j, Y, P'</pre></td> </tr> <tr> <td>DATETIME_INPUT_FORMATS</td> <td class="code"><pre>['%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']</pre></td> </tr> <tr> <td>DATE_FORMAT</td> <td class="code"><pre>'N j, Y'</pre></td> </tr> <tr> <td>DATE_INPUT_FORMATS</td> <td class="code"><pre>['%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']</pre></td> </tr> <tr> <td>DEBUG</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>DEBUG_PROPAGATE_EXCEPTIONS</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>DECIMAL_SEPARATOR</td> <td class="code"><pre>'.'</pre></td> </tr> <tr> <td>DEFAULT_CHARSET</td> <td class="code"><pre>'utf-8'</pre></td> </tr> <tr> <td>DEFAULT_CONTENT_TYPE</td> <td class="code"><pre>'text/html'</pre></td> </tr> <tr> <td>DEFAULT_EXCEPTION_REPORTER_FILTER</td> <td class="code"><pre>'django.views.debug.SafeExceptionReporterFilter'</pre></td> </tr> <tr> <td>DEFAULT_FILE_STORAGE</td> <td class="code"><pre>'django.core.files.storage.FileSystemStorage'</pre></td> </tr> <tr> <td>DEFAULT_FROM_EMAIL</td> <td class="code"><pre>'[email protected]'</pre></td> </tr> <tr> <td>DEFAULT_INDEX_TABLESPACE</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>DEFAULT_TABLESPACE</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>DISALLOWED_USER_AGENTS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>DJANGOCMS_PICTURE_RESPONSIVE_IMAGES</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>DJANGOCMS_PICTURE_RESPONSIVE_IMAGES_VIEWPORT_BREAKPOINTS</td> <td class="code"><pre>[576, 768, 992, 1230]</pre></td> </tr> <tr> <td>EMAIL_BACKEND</td> <td class="code"><pre>'django.core.mail.backends.smtp.EmailBackend'</pre></td> </tr> <tr> <td>EMAIL_HOST</td> <td class="code"><pre>'localhost'</pre></td> </tr> <tr> <td>EMAIL_HOST_PASSWORD</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>EMAIL_HOST_USER</td> <td class="code"><pre>''</pre></td> </tr> <tr> <td>EMAIL_PORT</td> <td class="code"><pre>25</pre></td> </tr> <tr> <td>EMAIL_SSL_CERTFILE</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>EMAIL_SSL_KEYFILE</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>EMAIL_SUBJECT_PREFIX</td> <td class="code"><pre>'[Django] '</pre></td> </tr> <tr> <td>EMAIL_TIMEOUT</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>EMAIL_USE_LOCALTIME</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>EMAIL_USE_SSL</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>EMAIL_USE_TLS</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>FILER_IMAGE_MODEL</td> <td class="code"><pre>'filer.Image'</pre></td> </tr> <tr> <td>FILE_CHARSET</td> <td class="code"><pre>'utf-8'</pre></td> </tr> <tr> <td>FILE_UPLOAD_DIRECTORY_PERMISSIONS</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>FILE_UPLOAD_HANDLERS</td> <td class="code"><pre>['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']</pre></td> </tr> <tr> <td>FILE_UPLOAD_MAX_MEMORY_SIZE</td> <td class="code"><pre>2621440</pre></td> </tr> <tr> <td>FILE_UPLOAD_PERMISSIONS</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>FILE_UPLOAD_TEMP_DIR</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>FIRST_DAY_OF_WEEK</td> <td class="code"><pre>0</pre></td> </tr> <tr> <td>FIXTURE_DIRS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>FORCE_SCRIPT_NAME</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>FORMAT_MODULE_PATH</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>FORM_RENDERER</td> <td class="code"><pre>'django.forms.renderers.DjangoTemplates'</pre></td> </tr> <tr> <td>IGNORABLE_404_URLS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>IMAGE_UPLOAD_DIR</td> <td class="code"><pre>'img'</pre></td> </tr> <tr> <td>INSTALLED_APPS</td> <td class="code"><pre>['djangocms_admin_style', 'django.contrib.auth', 'mptt', 'django.contrib.contenttypes', 'django.contrib.sessions', 'modeltranslation', 'django.contrib.admin', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'django.contrib.redirects', 'cms', 'menus', 'sekizai', 'treebeard', 'djangocms_text_ckeditor', 'filer', 'easy_thumbnails', 'djangocms_bootstrap4', 'djangocms_bootstrap4.contrib.bootstrap4_alerts', 'djangocms_bootstrap4.contrib.bootstrap4_badge', 'djangocms_bootstrap4.contrib.bootstrap4_card', 'djangocms_bootstrap4.contrib.bootstrap4_carousel', 'djangocms_bootstrap4.contrib.bootstrap4_collapse', 'djangocms_bootstrap4.contrib.bootstrap4_content', 'djangocms_bootstrap4.contrib.bootstrap4_grid', 'djangocms_bootstrap4.contrib.bootstrap4_jumbotron', 'djangocms_bootstrap4.contrib.bootstrap4_link', 'djangocms_bootstrap4.contrib.bootstrap4_listgroup', 'djangocms_bootstrap4.contrib.bootstrap4_media', 'djangocms_bootstrap4.contrib.bootstrap4_picture', 'djangocms_bootstrap4.contrib.bootstrap4_tabs', 'djangocms_bootstrap4.contrib.bootstrap4_utilities', 'djangocms_file', 'djangocms_icon', 'djangocms_link', 'djangocms_picture', 'djangocms_style', 'djangocms_snippet', 'djangocms_googlemap', 'djangocms_video', 'solo', 'shopcms', 'shop', 'content', 'django_rq', 'inline_static', 'comments', 'critical']</pre></td> </tr> <tr> <td>INTERNAL_IPS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>LANGUAGES</td> <td class="code"><pre>(('uk', 'uk'), ('ru', 'ru'))</pre></td> </tr> <tr> <td>LANGUAGES_BIDI</td> <td class="code"><pre>['he', 'ar', 'fa', 'ur']</pre></td> </tr> <tr> <td>LANGUAGE_CODE</td> <td class="code"><pre>'uk'</pre></td> </tr> <tr> <td>LANGUAGE_COOKIE_AGE</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>LANGUAGE_COOKIE_DOMAIN</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>LANGUAGE_COOKIE_NAME</td> <td class="code"><pre>'django_language'</pre></td> </tr> <tr> <td>LANGUAGE_COOKIE_PATH</td> <td class="code"><pre>'/'</pre></td> </tr> <tr> <td>LOCALE_PATHS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>LOGGING</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>LOGGING_CONFIG</td> <td class="code"><pre>'logging.config.dictConfig'</pre></td> </tr> <tr> <td>LOGIN_REDIRECT_URL</td> <td class="code"><pre>'/accounts/profile/'</pre></td> </tr> <tr> <td>LOGIN_URL</td> <td class="code"><pre>'/accounts/login/'</pre></td> </tr> <tr> <td>LOGOUT_REDIRECT_URL</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>MANAGERS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>MEDIA_ROOT</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/media'</pre></td> </tr> <tr> <td>MEDIA_URL</td> <td class="code"><pre>'/media/'</pre></td> </tr> <tr> <td>MESSAGE_STORAGE</td> <td class="code"><pre>'django.contrib.messages.storage.fallback.FallbackStorage'</pre></td> </tr> <tr> <td>MIDDLEWARE</td> <td class="code"><pre>['cms.middleware.utils.ApphookReloadMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware']</pre></td> </tr> <tr> <td>MIGRATION_MODULES</td> <td class="code"><pre>{}</pre></td> </tr> <tr> <td>MONTH_DAY_FORMAT</td> <td class="code"><pre>'F j'</pre></td> </tr> <tr> <td>NUMBER_GROUPING</td> <td class="code"><pre>0</pre></td> </tr> <tr> <td>PASSWORD_HASHERS</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>PASSWORD_RESET_TIMEOUT_DAYS</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>PENTHOUSE_URL</td> <td class="code"><pre>'http://46.105.111.98:3000/'</pre></td> </tr> <tr> <td>PREPEND_WWW</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>ROOT_URLCONF</td> <td class="code"><pre>'shopcms.urls'</pre></td> </tr> <tr> <td>RQ_QUEUES</td> <td class="code"><pre>{'default': {'DB': 10, 'DEFAULT_TIMEOUT': 360, 'HOST': 'localhost', 'PORT': 6379}}</pre></td> </tr> <tr> <td>SECRET_KEY</td> <td class="code"><pre>'********************'</pre></td> </tr> <tr> <td>SECURE_BROWSER_XSS_FILTER</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SECURE_CONTENT_TYPE_NOSNIFF</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SECURE_HSTS_INCLUDE_SUBDOMAINS</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SECURE_HSTS_PRELOAD</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SECURE_HSTS_SECONDS</td> <td class="code"><pre>0</pre></td> </tr> <tr> <td>SECURE_PROXY_SSL_HEADER</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>SECURE_REDIRECT_EXEMPT</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>SECURE_SSL_HOST</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>SECURE_SSL_REDIRECT</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SERVER_EMAIL</td> <td class="code"><pre>'root@localhost'</pre></td> </tr> <tr> <td>SESSION_CACHE_ALIAS</td> <td class="code"><pre>'default'</pre></td> </tr> <tr> <td>SESSION_COOKIE_AGE</td> <td class="code"><pre>1209600</pre></td> </tr> <tr> <td>SESSION_COOKIE_DOMAIN</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>SESSION_COOKIE_HTTPONLY</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>SESSION_COOKIE_NAME</td> <td class="code"><pre>'sessionid'</pre></td> </tr> <tr> <td>SESSION_COOKIE_PATH</td> <td class="code"><pre>'/'</pre></td> </tr> <tr> <td>SESSION_COOKIE_SAMESITE</td> <td class="code"><pre>'Lax'</pre></td> </tr> <tr> <td>SESSION_COOKIE_SECURE</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SESSION_ENGINE</td> <td class="code"><pre>'django.contrib.sessions.backends.db'</pre></td> </tr> <tr> <td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SESSION_FILE_PATH</td> <td class="code"><pre>None</pre></td> </tr> <tr> <td>SESSION_SAVE_EVERY_REQUEST</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>SESSION_SERIALIZER</td> <td class="code"><pre>'django.contrib.sessions.serializers.JSONSerializer'</pre></td> </tr> <tr> <td>SETTINGS_MODULE</td> <td class="code"><pre>'shopcms.settings'</pre></td> </tr> <tr> <td>SHORT_DATETIME_FORMAT</td> <td class="code"><pre>'m/d/Y P'</pre></td> </tr> <tr> <td>SHORT_DATE_FORMAT</td> <td class="code"><pre>'m/d/Y'</pre></td> </tr> <tr> <td>SIGNING_BACKEND</td> <td class="code"><pre>'django.core.signing.TimestampSigner'</pre></td> </tr> <tr> <td>SILENCED_SYSTEM_CHECKS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>SITE_ID</td> <td class="code"><pre>1</pre></td> </tr> <tr> <td>STATICFILES_DIRS</td> <td class="code"><pre>('/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/shopcms/static',)</pre></td> </tr> <tr> <td>STATICFILES_FINDERS</td> <td class="code"><pre>['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']</pre></td> </tr> <tr> <td>STATICFILES_STORAGE</td> <td class="code"><pre>'django.contrib.staticfiles.storage.StaticFilesStorage'</pre></td> </tr> <tr> <td>STATIC_ROOT</td> <td class="code"><pre>'/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/static'</pre></td> </tr> <tr> <td>STATIC_URL</td> <td class="code"><pre>'/static/'</pre></td> </tr> <tr> <td>TEMPLATES</td> <td class="code"><pre>[{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/Users/andrewageyev/Desktop/Python/moyahata/www/shopcms/shopcms/templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.i18n', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.template.context_processors.csrf', 'django.template.context_processors.tz', 'sekizai.context_processors.sekizai', 'django.template.context_processors.static', 'cms.context_processors.cms_settings'], 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']}}]</pre></td> </tr> <tr> <td>TEST_NON_SERIALIZED_APPS</td> <td class="code"><pre>[]</pre></td> </tr> <tr> <td>TEST_RUNNER</td> <td class="code"><pre>'django.test.runner.DiscoverRunner'</pre></td> </tr> <tr> <td>THOUSAND_SEPARATOR</td> <td class="code"><pre>','</pre></td> </tr> <tr> <td>THUMBNAIL_PROCESSORS</td> <td class="code"><pre>('easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters')</pre></td> </tr> <tr> <td>TIME_FORMAT</td> <td class="code"><pre>'P'</pre></td> </tr> <tr> <td>TIME_INPUT_FORMATS</td> <td class="code"><pre>['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']</pre></td> </tr> <tr> <td>TIME_ZONE</td> <td class="code"><pre>'Europe/Kiev'</pre></td> </tr> <tr> <td>USE_I18N</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>USE_L10N</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>USE_THOUSAND_SEPARATOR</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>USE_TZ</td> <td class="code"><pre>True</pre></td> </tr> <tr> <td>USE_X_FORWARDED_HOST</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>USE_X_FORWARDED_PORT</td> <td class="code"><pre>False</pre></td> </tr> <tr> <td>WSGI_APPLICATION</td> <td class="code"><pre>'shopcms.wsgi.application'</pre></td> </tr> <tr> <td>X_FRAME_OPTIONS</td> <td class="code"><pre>'SAMEORIGIN'</pre></td> </tr> <tr> <td>YEAR_MONTH_FORMAT</td> <td class="code"><pre>'F Y'</pre></td> </tr> </tbody> </table> </div> <div id="explanation"> <p> You're seeing this error because you have <code>DEBUG = True</code> in your Django settings file. Change that to <code>False</code>, and Django will display a standard page generated by the handler for this status code. </p> </div> </body> </html> |
Duca Di Venezia Duca Di Venezia и его декоративные оттенки являются плодом исследований и опыта, накопленного за годы поиска античных декоративных техник, применимых в третьем тысячелетии. Duca Di Venezia доступен в широкой гамме цветов. Его можно узнать по гармоничному сочетанию цветов, создающему «краску без рисунка». Уникальный триумф хроматических оттенков вселяет в стены жизнь и наделяет их энергией. Продукт наносится на специальную грунтовку, не образуя стыков. Duca Di Venezia гарантирует долговечный и элегантный декор. Продукт моющийся, высоко паропроницаемый, не имеет запаха, нетоксичный, не горючий, безопасен для человека и окружающей среды.