Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError at / process() takes exactly 3 arguments (2 given) #613

Open
tonylampada opened this issue Oct 30, 2016 · 1 comment
Open

TypeError at / process() takes exactly 3 arguments (2 given) #613

tonylampada opened this issue Oct 30, 2016 · 1 comment

Comments

@tonylampada
Copy link

Fiz o setup na minha máquina. O "make" não funcionou de primeira pq faltou criar o banco, mas depois consegui subir o django com o ./manage.py runserver.

Ao abrir http://localhost:8000, encontro o seguinte erro:

TypeError at /
process() takes exactly 3 arguments (2 given)

Stack trace:

Environment:


Request Method: GET
Request URL: http://0.0.0.0:8000/

Django Version: 1.8.15
Python Version: 2.7.12
Installed Applications:
('django_extensions',
 'pipeline',
 'suit',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.flatpages',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'rest_framework',
 'rosetta',
 'autoslug',
 'accounts',
 'activities',
 'administration',
 'forum',
 'course_material',
 'notes',
 'reports',
 'core',
 'metron',
 'allauth',
 'allauth.account',
 'allauth.socialaccount',
 'allauth.socialaccount.providers.facebook',
 'allauth.socialaccount.providers.openid',
 'django_markdown',
 'raven.contrib.django.raven_compat',
 'debug_toolbar')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'debug_toolbar.middleware.DebugToolbarMiddleware')


Traceback:
File "/home/tony/Envs/timtec/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  223.                 response = middleware_method(request, response)
File "/home/tony/Envs/timtec/local/lib/python2.7/site-packages/debug_toolbar/middleware.py" in process_response
  94.             new_response = panel.process_response(request, response)
File "/home/tony/Envs/timtec/local/lib/python2.7/site-packages/debug_toolbar/panels/sql/panel.py" in process_response
  187.                     query['sql'] = reformat_sql(query['sql'])
File "/home/tony/Envs/timtec/local/lib/python2.7/site-packages/debug_toolbar/panels/sql/utils.py" in reformat_sql
  28.     return swap_fields(''.join(stack.run(sql)))
File "/home/tony/Envs/timtec/local/lib/python2.7/site-packages/sqlparse/engine/filter_stack.py" in run
  29.             stream = filter_.process(stream)

Exception Type: TypeError at /
Exception Value: process() takes exactly 3 arguments (2 given)

@tonylampada
Copy link
Author

Encontrei um workaround: desabilitar o debug_toolbar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant