From: Michael Wood <michael.g.wood@intel.com>
To: toaster@yoctoproject.org
Subject: Re: Project page broken in master?
Date: Fri, 15 May 2015 11:08:02 +0100 [thread overview]
Message-ID: <5555C582.8000509@intel.com> (raw)
In-Reply-To: <D17B8265.5BC05%belen.barros.pena@intel.com>
It means you've got un-applied migrations run ./manage.py migrate to
apply them.
Generally If you see "Exception Value: no such column" that very often
means that your database has an out of date database schema. i.e. it's
been altered by a commit but your local "toaster.sqlite" database hasn't
been updated to match.
Michael
On 15/05/15 11:00, Barros Pena, Belen wrote:
> The project page seems to throw an error in
> master:fab7da4f8030a4067db0522f77eaa6d3b501c68f
>
> Is it just me? Do your want me to open a bug? Error trace below:
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/toastergui/project/23/
>
> Django Version: 1.6
> Python Version: 2.7.6
> Installed Applications:
> ('django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.messages',
> 'django.contrib.sessions',
> 'django.contrib.admin',
> 'django.contrib.staticfiles',
> 'django.contrib.humanize',
> 'orm',
> 'toastermain',
> 'south',
> 'bldcontrol',
> 'toastergui')
> 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')
>
>
> Traceback:
> File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
> in get_response
> 114. response = wrapped_callback(request,
> *callback_args, **callback_kwargs)
> File "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in
> project
> 2175. prj.projectlayer_set.all().order_by("id")),
> File "/home/yocto/master/bitbake/lib/toaster/toastergui/views.py" in
> <lambda>
> 2169. "name" : x.layercommit.layer.name,
> File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related.py"
> in __get__
> 308. rel_obj = qs.get()
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in
> get
> 301. num = len(clone)
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py"
> in __len__
> 77. self._fetch_all()
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py"
> in _fetch_all
> 854. self._result_cache = list(self.iterator())
> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py"
> in iterator
> 220. for row in compiler.results_iter():
> File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py"
> in results_iter
> 710. for rows in self.execute_sql(MULTI):
> File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py"
> in execute_sql
> 781. cursor.execute(sql, params)
> File "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py"
> in execute
> 69. return super(CursorDebugWrapper, self).execute(sql,
> params)
> File "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py"
> in execute
> 53. return self.cursor.execute(sql, params)
> File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py" in
> __exit__
> 99. six.reraise(dj_exc_type, dj_exc_value, traceback)
> File "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py"
> in execute
> 53. return self.cursor.execute(sql, params)
> File
> "/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py"
> in execute
> 450. return Database.Cursor.execute(self, query, params)
>
> Exception Type: OperationalError at /toastergui/project/23/
> Exception Value: no such column: orm_layer.local_path
>
>
>
>
>
>
next prev parent reply other threads:[~2015-05-15 10:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-15 10:00 Project page broken in master? Barros Pena, Belen
2015-05-15 10:08 ` Michael Wood [this message]
2015-05-15 13:51 ` Damian, Alexandru
2015-05-15 14:10 ` Michael Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5555C582.8000509@intel.com \
--to=michael.g.wood@intel.com \
--cc=toaster@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.