Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>UPDATE</strong></p> <p>The solution suggested by sdolan seems to be to add the following to the settings.py of the app:</p> <p>TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.debug", "django.core.context_processors.i18n")</p> <p>This effectively <strong>removes</strong> the third default processor, django.core.context_processors.auth (which shouldn't be there because for AppEngine we don't want Django's auth component).</p> <p>Thank you, sdolan, for the solution! hopefully someone else can use it, too. :)</p> <p><strong>@Nick</strong>, I think it's worth putting this golden piece about CONTEXT_PROCESSORS in the tutorial (<a href="http://code.google.com/appengine/articles/django.html" rel="nofollow">http://code.google.com/appengine/articles/django.html</a>)</p> <p><strong>(Original followup to the question)</strong> </p> <p>Have the same problem, looking for solution.... All works fine when settings.py contains</p> <p>DEBUG = True</p> <p>but this error pops up (and kills my motivation to proceed with learning) when I switch to</p> <p>DEBUG = False</p> <p>@Nick Johnson, here's the stack trace:</p> <pre><code>Traceback (most recent call last): File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3211, in _HandleRequest self._Dispatch(dispatcher, self.rfile, outfile, env_dict) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3154, in _Dispatch base_env_dict=env_dict) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 527, in Dispatch base_env_dict=base_env_dict) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2404, in Dispatch self._module_dict) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2314, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2212, in ExecuteOrImportScript script_module.main() File "C:\Dev\appengine\djangotest\main.py", line 37, in main util.run_wsgi_app(application) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\webapp\util.py", line 97, in run_wsgi_app run_bare_wsgi_app(add_wsgi_middleware(application)) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\webapp\util.py", line 115, in run_bare_wsgi_app result = application(env, _start_response) File "C:\Program Files (x86)\Google\google_appengine\lib\django\django\core\handlers\wsgi.py", line 189, in __call__ response = self.get_response(request) File "C:\Program Files (x86)\Google\google_appengine\lib\django\django\core\handlers\base.py", line 103, in get_response return callback(request, **param_dict) File "C:\Program Files (x86)\Google\google_appengine\lib\django\django\views\defaults.py", line 79, in page_not_found return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path}))) File "C:\Program Files (x86)\Google\google_appengine\lib\django\django\template\context.py", line 100, in __init__ self.update(processor(request)) File "C:\Program Files (x86)\Google\google_appengine\lib\django\django\core\context_processors.py", line 18, in auth 'user': request.user, AttributeError: 'WSGIRequest' object has no attribute 'user' </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload