[arch-releng] Iso tests
Dieter Plaetinck
dieter at plaetinck.be
Sat Apr 2 12:01:05 EDT 2011
I fetched Tom's latest testresults branch, followed all instructions in the
README - all steps executed fine with the exception of
https://bugs.archlinux.org/task/23228 -, But when I go to
http://127.0.0.1:8000/isotests/
I get:
DatabaseError at /isotests/
no such column: isotests_test.architecture_id
Request Method: GET
Request URL: http://127.0.0.1:8000/isotests/
Django Version: 1.2.4
Exception Type: DatabaseError
Exception Value:
no such column: isotests_test.architecture_id
here's some more output from during the setup part:
(archweb-env)17:54:44 dieter at ws archweb testresults ? diff local_settings.py.example local_settings.py
4c4
< DEBUG = False
---
> DEBUG = True
12,13c12,13
< #DATABASE_ENGINE = 'sqlite3'
< #DATABASE_NAME = 'archweb.db'
---
> DATABASE_ENGINE = 'sqlite3'
> DATABASE_NAME = 'archweb.db'
24c24
< CACHE_BACKEND = 'memcached://127.0.0.1:11211'
---
> #CACHE_BACKEND = 'memcached://127.0.0.1:11211'
(archweb-env)17:54:47 dieter at ws archweb testresults ? ./manage.py syncdb 1 ↵
Syncing...
Creating table isotests_hardwaretype
The following content types are stale and need to be deleted:
isotests | hardware
Any objects related to these content types by a foreign key will also
be deleted. Are you sure you want to delete these content types?
If you're unsure, answer 'no'.
Type 'yes' to continue, or 'no' to cancel: yes
No fixtures found.
Synced:
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.messages
> django.contrib.sessions
> django.contrib.sites
> django.contrib.sitemaps
> django.contrib.admin
> django.contrib.markup
> devel
> public
> south
> isotests
Not synced (use migrations):
- main
- mirrors
- news
- packages
(use ./manage.py migrate to migrate these)
(archweb-env)17:55:09 dieter at ws archweb testresults ? ./manage.py migrate
Running migrations for main:
- Migrating forwards to 0042_auto__del_field_packagefile_path.
> packages:0004_auto__add_license
> packages:0005_move_license_data
> main:0038_add_depends_optional_description
> main:0039_auto__del_field_package_license
> main:0040_split_package_files
> main:0041_move_package_files_data
> main:0042_auto__del_field_packagefile_path
- Loading initial data for main.
No fixtures found.
Running migrations for mirrors:
- Nothing to migrate.
- Loading initial data for mirrors.
No fixtures found.
Running migrations for news:
- Nothing to migrate.
- Loading initial data for news.
No fixtures found.
Running migrations for packages:
- Nothing to migrate.
- Loading initial data for packages.
No fixtures found.
(archweb-env)17:55:23 dieter at ws archweb testresults ? ./manage.py loaddata main/fixtures/arches.json
Installing json fixture 'main/fixtures/arches' from absolute path.
Installed 3 object(s) from 1 fixture(s)
(archweb-env)17:55:29 dieter at ws archweb testresults ? ./manage.py loaddata main/fixtures/repos.json
Installing json fixture 'main/fixtures/repos' from absolute path.
Installed 7 object(s) from 1 fixture(s)
(archweb-env)17:55:34 dieter at ws archweb testresults ? ./manage.py loaddata main/fixtures/groups.json
Installing json fixture 'main/fixtures/groups' from absolute path.
Problem installing fixture 'main/fixtures/groups.json': Traceback (most recent call last):
File "/home/dieter/workspaces/eclipse/archweb-env/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 169, in handle
for obj in objects:
File "/home/dieter/workspaces/eclipse/archweb-env/lib/python2.7/site-packages/django/core/serializers/json.py", line 38, in Deserializer
for obj in PythonDeserializer(simplejson.load(stream), **options):
File "/home/dieter/workspaces/eclipse/archweb-env/lib/python2.7/site-packages/django/core/serializers/python.py", line 105, in Deserializer
m2m_data[field.name] = [m2m_convert(pk) for pk in field_value]
File "/home/dieter/workspaces/eclipse/archweb-env/lib/python2.7/site-packages/django/core/serializers/python.py", line 100, in m2m_convert
return field.rel.to._default_manager.db_manager(db).get_by_natural_key(*value).pk
File "/home/dieter/workspaces/eclipse/archweb-env/lib/python2.7/site-packages/django/contrib/auth/models.py", line 50, in get_by_natural_key
content_type=ContentType.objects.get_by_natural_key(app_label, model)
File "/home/dieter/workspaces/eclipse/archweb-env/lib/python2.7/site-packages/django/contrib/contenttypes/models.py", line 15, in get_by_natural_key
ct = self.get(app_label=app_label, model=model)
File "/home/dieter/workspaces/eclipse/archweb-env/lib/python2.7/site-packages/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/home/dieter/workspaces/eclipse/archweb-env/lib/python2.7/site-packages/django/db/models/query.py", line 347, in get
% self.model._meta.object_name)
DoesNotExist: ContentType matching query does not exist.
(archweb-env)17:55:39 dieter at ws archweb testresults ? ./manage.py loaddata mirrors/fixtures/mirrorprotocols.json
Installing json fixture 'mirrors/fixtures/mirrorprotocols' from absolute path.
Installed 3 object(s) from 1 fixture(s)
More information about the arch-releng
mailing list