Skip to content

Instantly share code, notes, and snippets.

@lucassmagal
Created June 5, 2013 16:29
Show Gist options
  • Save lucassmagal/5715264 to your computer and use it in GitHub Desktop.
Save lucassmagal/5715264 to your computer and use it in GitHub Desktop.
Environment:
Request Method: POST
Request URL: http://localhost:8000/admin/core/user/add/
Django Version: 1.5.1
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.markup',
'suit',
'django.contrib.admin',
'suit_redactor',
'compressor',
'mptt',
'south',
'core', # my app
'debug_toolbar')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware')
Traceback:
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
115. response = callback(request, *callback_args, **callback_kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper
372. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
91. response = view_func(request, *args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
89. response = view_func(request, *args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
202. return view(request, *args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/views/decorators/debug.py" in sensitive_post_parameters_wrapper
69. return view(request, *args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
25. return bound_func(*args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
91. response = view_func(request, *args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
21. return func(self, *args2, **kwargs2)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/db/transaction.py" in inner
223. return func(*args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/contrib/auth/admin.py" in add_view
121. extra_context)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
25. return bound_func(*args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
91. response = view_func(request, *args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
21. return func(self, *args2, **kwargs2)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/db/transaction.py" in inner
223. return func(*args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in add_view
989. if form.is_valid():
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/forms/forms.py" in is_valid
126. return self.is_bound and not bool(self.errors)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/forms/forms.py" in _get_errors
117. self.full_clean()
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/forms/forms.py" in full_clean
272. self._clean_fields()
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/forms/forms.py" in _clean_fields
290. value = getattr(self, 'clean_%s' % name)()
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/contrib/auth/forms.py" in clean_username
92. User._default_manager.get(username=username)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/db/models/manager.py" in get
143. return self.get_query_set().get(*args, **kwargs)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/db/models/query.py" in get
382. num = len(clone)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/db/models/query.py" in __len__
90. self._result_cache = list(self.iterator())
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/db/models/query.py" in iterator
301. for row in compiler.results_iter():
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in results_iter
775. for rows in self.execute_sql(MULTI):
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
840. cursor.execute(sql, params)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/db/backends/util.py" in execute
41. return self.cursor.execute(sql, params)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py" in execute
130. six.reraise(utils.DatabaseError, utils.DatabaseError(*tuple(e.args)), sys.exc_info()[2])
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py" in execute
120. return self.cursor.execute(query, args)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/MySQLdb/cursors.py" in execute
201. self.errorhandler(self, exc, value)
File "/home/vagrant/.virtualenvs/myproject/local/lib/python2.7/site-packages/MySQLdb/connections.py" in defaulterrorhandler
36. raise errorclass, errorvalue
Exception Type: DatabaseError at /admin/core/user/add/
Exception Value: (1146, "Table 'mydatabase.auth_user' doesn't exist")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment