Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[rcasecret vagrant]$ python manage.py test rcasecret -v3
/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/fields/subclassing.py:22: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead.
RemovedInDjango110Warning)
Creating test database for alias 'default' ('test_rcasecret')...
Got an error creating the test database: database "test_rcasecret" already exists
Type 'yes' if you would like to try deleting the test database 'test_rcasecret', or 'no' to cancel: yes
Destroying old test database for alias 'default' ('test_rcasecret')...
Operations to perform:
Synchronize unmigrated apps: modelcluster, staticfiles, wagtailsites, messages, screens, compressor, wagtailsnippets
Apply all migrations: wagtailimages, wagtailusers, exhibitions, wagtailadmin, sessions, admin, wagtailcore, sales, auth, wagtailembeds, contenttypes, wagtaildocs, taggit, wagtailsearch, postcards, wagtailredirects, wagtailforms, users
Running pre-migrate handlers for application admin
Running pre-migrate handlers for application auth
Running pre-migrate handlers for application contenttypes
Running pre-migrate handlers for application sessions
Running pre-migrate handlers for application compressor
Running pre-migrate handlers for application taggit
Running pre-migrate handlers for application modelcluster
Running pre-migrate handlers for application wagtailcore
Running pre-migrate handlers for application wagtailadmin
Running pre-migrate handlers for application wagtaildocs
Running pre-migrate handlers for application wagtailsnippets
Running pre-migrate handlers for application wagtailusers
Running pre-migrate handlers for application wagtailimages
Running pre-migrate handlers for application wagtailembeds
Running pre-migrate handlers for application wagtailsearch
Running pre-migrate handlers for application wagtailredirects
Running pre-migrate handlers for application wagtailforms
Running pre-migrate handlers for application postcards
Running pre-migrate handlers for application users
Running pre-migrate handlers for application sales
Running pre-migrate handlers for application exhibitions
Running pre-migrate handlers for application screens
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Running migrations:
Rendering model states... DONE (0.000s)
Applying contenttypes.0001_initial... OK (0.012s)
Applying auth.0001_initial... OK (0.038s)
Applying users.0001_initial... OK (0.031s)
Applying admin.0001_initial... OK (0.023s)
Applying admin.0002_logentry_remove_auto_add... OK (0.015s)
Applying contenttypes.0002_remove_content_type_name... OK (0.036s)
Applying auth.0002_alter_permission_name_max_length... OK (0.013s)
Applying auth.0003_alter_user_email_max_length... OK (0.018s)
Applying auth.0004_alter_user_username_opts... OK (0.013s)
Applying auth.0005_alter_user_last_login_null... OK (0.015s)
Applying auth.0006_require_contenttypes_0002... OK (0.002s)
Applying auth.0007_alter_validators_add_error_messages... OK (0.014s)
Applying wagtailcore.0001_squashed_0016_change_page_url_path_to_text_field... OK (0.246s)
Applying taggit.0001_initial... OK (0.040s)
Applying taggit.0002_auto_20150616_2121... OK (0.022s)
Applying wagtailimages.0001_initial... OK (0.094s)
Applying wagtailimages.0002_initial_data... OK (0.019s)
Applying wagtailimages.0003_fix_focal_point_fields... OK (0.091s)
Applying wagtailimages.0004_make_focal_point_key_not_nullable... OK (0.031s)
Applying wagtailsearch.0001_initial... OK (0.090s)
Applying wagtailredirects.0001_initial... OK (0.041s)
Applying wagtailforms.0001_initial... OK (0.037s)
Applying exhibitions.0001_initial... OK (0.078s)
Applying exhibitions.0002_featurepage... OK (0.042s)
Applying exhibitions.0003_exhibitionpage_set_default_year... OK (0.040s)
Applying exhibitions.0004_featureindexpage... OK (0.039s)
Applying exhibitions.0005_rename_exhibitionpage... OK (0.256s)
Applying exhibitions.0006_exhibitionredirectorpage... OK (0.040s)
Applying exhibitions.0007_exhibitionpageselectedfeature... OK (0.048s)
Applying exhibitions.0008_featurepage_main_image... OK (0.041s)
Applying exhibitions.0009_featurepage_listing_image... OK (0.044s)
Applying exhibitions.0010_archivedexhibitionpage... OK (0.042s)
Applying exhibitions.0011_curatorindexpage_curatorpage... OK (0.085s)
Applying exhibitions.0012_curator_intro_body... OK (0.094s)
Applying exhibitions.0013_curator_chosen_postcards... OK (0.125s)
Applying exhibitions.0011_auto_20150223_1532... OK (0.045s)
Applying exhibitions.0014_merge... OK (0.002s)
Applying exhibitions.0015_reveal_postcards... OK (0.090s)
Applying exhibitions.0016_reveal_artist_identities... OK (0.091s)
Applying postcards.0001_initial... OK (0.240s)
Applying postcards.0002_postcardimage_set_default_year... OK (0.051s)
Applying postcards.0003_postcardimage_remove_number_field... OK (0.183s)
Applying postcards.0004_postcardimage_number... OK (0.051s)
Applying postcards.0005_rename_postcard... OK (0.396s)
Applying postcards.0006_artist... OK (0.011s)
Applying postcards.0007_artist_postcards... OK (0.059s)
Applying postcards.0008_make_artist_postcards_not_editable... OK (0.089s)
Applying postcards.0009_colour_models... OK (0.157s)
Applying postcards.0010_postcard_colours... OK (0.053s)
Applying postcards.0011_make_postcard_colours_not_editable... OK (0.050s)
Applying postcards.0012_artist_year... OK (0.059s)
Applying postcards.0013_year_number_unique_together... OK (0.104s)
Applying postcards.0014_postcard_random_order... OK (0.057s)
Applying postcards.0015_set_postcard_titles... OK (0.008s)
Applying postcards.0016_make_artist_number_charfield... OK (0.076s)
Applying postcards.0017_split_artist_name_field... OK (0.228s)
Applying postcards.0018_artist_ordering... OK (0.047s)
Applying postcards.0019_postcard_order_by_number... OK (0.050s)
Applying postcards.0020_auto_20151104_1341... OK (0.258s)
Applying sales.0001_initial... OK (0.451s)
Applying sales.0002_address_fields... OK (0.726s)
Applying sales.0003_rename_address_fields... OK (0.206s)
Applying sales.0004_make_buyer_number_not_unique... OK (0.078s)
Applying sales.0005_alter_invoicepostcard_reservation... OK (0.081s)
Applying sales.0006_make_buyer_user_onetoone... OK (0.075s)
Applying sales.0007_exhibitionsalesmanagementsettings... OK (0.013s)
Applying sales.0008_exhibitionmanagementsettings_verbose_name... OK (0.010s)
Applying sales.0009_exhibitionmanagementsettings_verbose_name_again... OK (0.009s)
Applying sales.0010_invoice_year... OK (0.144s)
Applying sales.0011_protect_invoice_postcard_reservation... OK (0.080s)
Applying sales.0012_rename_sales_management_settings... OK (0.017s)
Applying sales.0013_create_access_permission... OK (0.008s)
Applying sales.0014_auto_20150313_1419... OK (0.054s)
Applying sales.0015_buyer_notes... OK (0.063s)
Applying sales.0016_order_buyers_by_id... OK (0.056s)
Applying sales.0017_auto_20150318_1341... OK (0.053s)
Applying sales.0018_auto_20150318_1408... OK (0.155s)
Applying sessions.0001_initial... OK (0.013s)
Applying users.0002_user_favourite_postcards... OK (0.068s)
Applying wagtailadmin.0001_create_admin_access_permissions... OK (0.014s)
Applying wagtailcore.0017_change_edit_page_permission_description... OK (0.057s)
Applying wagtailcore.0018_pagerevision_submitted_for_moderation_index... OK (0.058s)
Applying wagtailcore.0019_verbose_names_cleanup... OK (0.291s)
Applying wagtailcore.0020_add_index_on_page_first_published_at... OK (0.145s)
Applying wagtaildocs.0001_initial... OK (0.063s)
Applying wagtaildocs.0002_initial_data... OK (0.019s)
Applying wagtaildocs.0003_add_verbose_names... OK (0.176s)
Applying wagtailembeds.0001_initial... OK (0.023s)
Applying wagtailembeds.0002_add_verbose_names... OK (0.011s)
Applying wagtailforms.0002_add_verbose_names... OK (0.110s)
Applying wagtailimages.0005_make_filter_spec_unique... OK (0.060s)
Applying wagtailimages.0006_add_verbose_names... OK (0.239s)
Applying wagtailimages.0007_image_file_size... OK (0.059s)
Applying wagtailimages.0008_image_created_at_index... OK (0.061s)
Applying wagtailredirects.0002_add_verbose_names... OK (0.135s)
Applying wagtailredirects.0003_make_site_field_editable... OK (0.158s)
Applying wagtailredirects.0004_set_unique_on_path_and_site... OK (0.130s)
Applying wagtailsearch.0002_add_verbose_names... OK (0.236s)
Applying wagtailsearch.0003_remove_editors_pick... OK (0.063s)
Applying wagtailusers.0001_initial... OK (0.059s)
Applying wagtailusers.0002_add_verbose_name_on_userprofile... OK (0.183s)
Applying wagtailusers.0003_add_verbose_names... OK (0.059s)
Running post-migrate handlers for application admin
Adding permission 'admin | log entry | Can add log entry'
Adding permission 'admin | log entry | Can change log entry'
Adding permission 'admin | log entry | Can delete log entry'
Running post-migrate handlers for application auth
Adding permission 'auth | permission | Can add permission'
Adding permission 'auth | permission | Can change permission'
Adding permission 'auth | permission | Can delete permission'
Adding permission 'auth | group | Can add group'
Adding permission 'auth | group | Can change group'
Adding permission 'auth | group | Can delete group'
Running post-migrate handlers for application contenttypes
Adding permission 'contenttypes | content type | Can add content type'
Adding permission 'contenttypes | content type | Can change content type'
Adding permission 'contenttypes | content type | Can delete content type'
Running post-migrate handlers for application sessions
Adding permission 'sessions | session | Can add session'
Adding permission 'sessions | session | Can change session'
Adding permission 'sessions | session | Can delete session'
Running post-migrate handlers for application compressor
Running post-migrate handlers for application taggit
Adding permission 'taggit | Tag | Can add Tag'
Adding permission 'taggit | Tag | Can change Tag'
Adding permission 'taggit | Tag | Can delete Tag'
Adding permission 'taggit | Tagged Item | Can add Tagged Item'
Adding permission 'taggit | Tagged Item | Can change Tagged Item'
Adding permission 'taggit | Tagged Item | Can delete Tagged Item'
Running post-migrate handlers for application modelcluster
Running post-migrate handlers for application wagtailcore
Adding permission 'wagtailcore | site | Can add site'
Adding permission 'wagtailcore | site | Can change site'
Adding permission 'wagtailcore | site | Can delete site'
Adding permission 'wagtailcore | page | Can add page'
Adding permission 'wagtailcore | page | Can change page'
Adding permission 'wagtailcore | page | Can delete page'
Adding permission 'wagtailcore | page revision | Can add page revision'
Adding permission 'wagtailcore | page revision | Can change page revision'
Adding permission 'wagtailcore | page revision | Can delete page revision'
Adding permission 'wagtailcore | group page permission | Can add group page permission'
Adding permission 'wagtailcore | group page permission | Can change group page permission'
Adding permission 'wagtailcore | group page permission | Can delete group page permission'
Adding permission 'wagtailcore | page view restriction | Can add page view restriction'
Adding permission 'wagtailcore | page view restriction | Can change page view restriction'
Adding permission 'wagtailcore | page view restriction | Can delete page view restriction'
Running post-migrate handlers for application wagtailadmin
Running post-migrate handlers for application wagtaildocs
Running post-migrate handlers for application wagtailsnippets
Running post-migrate handlers for application wagtailusers
Adding permission 'wagtailusers | User Profile | Can add User Profile'
Adding permission 'wagtailusers | User Profile | Can change User Profile'
Adding permission 'wagtailusers | User Profile | Can delete User Profile'
Running post-migrate handlers for application wagtailimages
Adding permission 'wagtailimages | filter | Can add filter'
Adding permission 'wagtailimages | filter | Can change filter'
Adding permission 'wagtailimages | filter | Can delete filter'
Adding permission 'wagtailimages | rendition | Can add rendition'
Adding permission 'wagtailimages | rendition | Can change rendition'
Adding permission 'wagtailimages | rendition | Can delete rendition'
Running post-migrate handlers for application wagtailembeds
Adding permission 'wagtailembeds | Embed | Can add Embed'
Adding permission 'wagtailembeds | Embed | Can change Embed'
Adding permission 'wagtailembeds | Embed | Can delete Embed'
Running post-migrate handlers for application wagtailsearch
Adding permission 'wagtailsearch | query | Can add query'
Adding permission 'wagtailsearch | query | Can change query'
Adding permission 'wagtailsearch | query | Can delete query'
Adding permission 'wagtailsearch | Query Daily Hits | Can add Query Daily Hits'
Adding permission 'wagtailsearch | Query Daily Hits | Can change Query Daily Hits'
Adding permission 'wagtailsearch | Query Daily Hits | Can delete Query Daily Hits'
Running post-migrate handlers for application wagtailredirects
Adding permission 'wagtailredirects | Redirect | Can add Redirect'
Adding permission 'wagtailredirects | Redirect | Can change Redirect'
Adding permission 'wagtailredirects | Redirect | Can delete Redirect'
Running post-migrate handlers for application wagtailforms
Adding permission 'wagtailforms | Form Submission | Can add Form Submission'
Adding permission 'wagtailforms | Form Submission | Can change Form Submission'
Adding permission 'wagtailforms | Form Submission | Can delete Form Submission'
Running post-migrate handlers for application postcards
Adding permission 'postcards | postcard | Can add postcard'
Adding permission 'postcards | postcard | Can change postcard'
Adding permission 'postcards | postcard | Can delete postcard'
Adding permission 'postcards | postcard rendition | Can add postcard rendition'
Adding permission 'postcards | postcard rendition | Can change postcard rendition'
Adding permission 'postcards | postcard rendition | Can delete postcard rendition'
Adding permission 'postcards | artist | Can add artist'
Adding permission 'postcards | artist | Can change artist'
Adding permission 'postcards | artist | Can delete artist'
Adding permission 'postcards | colour | Can add colour'
Adding permission 'postcards | colour | Can change colour'
Adding permission 'postcards | colour | Can delete colour'
Adding permission 'postcards | postcard colour | Can add postcard colour'
Adding permission 'postcards | postcard colour | Can change postcard colour'
Adding permission 'postcards | postcard colour | Can delete postcard colour'
Running post-migrate handlers for application users
Adding permission 'users | user | Can add user'
Adding permission 'users | user | Can change user'
Adding permission 'users | user | Can delete user'
Running post-migrate handlers for application sales
Adding permission 'postcards | postcard | Can add sales postcard proxy'
Adding permission 'postcards | postcard | Can change sales postcard proxy'
Adding permission 'postcards | postcard | Can delete sales postcard proxy'
Adding permission 'sales | reservation | Can add reservation'
Adding permission 'sales | reservation | Can change reservation'
Adding permission 'sales | reservation | Can delete reservation'
Adding permission 'sales | invoice | Can add invoice'
Adding permission 'sales | invoice | Can change invoice'
Adding permission 'sales | invoice | Can delete invoice'
Adding permission 'sales | invoice postcard | Can add invoice postcard'
Adding permission 'sales | invoice postcard | Can change invoice postcard'
Adding permission 'sales | invoice postcard | Can delete invoice postcard'
Adding permission 'sales | buyer | Can add buyer'
Adding permission 'sales | buyer | Can change buyer'
Adding permission 'sales | buyer | Can delete buyer'
Adding permission 'sales | Sales management settings | Can add Sales management settings'
Adding permission 'sales | Sales management settings | Can change Sales management settings'
Adding permission 'sales | Sales management settings | Can delete Sales management settings'
Adding content type 'sales | salespostcardproxy'
Running post-migrate handlers for application exhibitions
Adding permission 'exhibitions | exhibition redirector page | Can add exhibition redirector page'
Adding permission 'exhibitions | exhibition redirector page | Can change exhibition redirector page'
Adding permission 'exhibitions | exhibition redirector page | Can delete exhibition redirector page'
Adding permission 'exhibitions | exhibition page | Can add exhibition page'
Adding permission 'exhibitions | exhibition page | Can change exhibition page'
Adding permission 'exhibitions | exhibition page | Can delete exhibition page'
Adding permission 'exhibitions | exhibition page faq | Can add exhibition page faq'
Adding permission 'exhibitions | exhibition page faq | Can change exhibition page faq'
Adding permission 'exhibitions | exhibition page faq | Can delete exhibition page faq'
Adding permission 'exhibitions | exhibition page selected feature | Can add exhibition page selected feature'
Adding permission 'exhibitions | exhibition page selected feature | Can change exhibition page selected feature'
Adding permission 'exhibitions | exhibition page selected feature | Can delete exhibition page selected feature'
Adding permission 'exhibitions | archived exhibition page | Can add archived exhibition page'
Adding permission 'exhibitions | archived exhibition page | Can change archived exhibition page'
Adding permission 'exhibitions | archived exhibition page | Can delete archived exhibition page'
Adding permission 'exhibitions | feature index page | Can add feature index page'
Adding permission 'exhibitions | feature index page | Can change feature index page'
Adding permission 'exhibitions | feature index page | Can delete feature index page'
Adding permission 'exhibitions | feature page | Can add feature page'
Adding permission 'exhibitions | feature page | Can change feature page'
Adding permission 'exhibitions | feature page | Can delete feature page'
Adding permission 'exhibitions | curator index page | Can add curator index page'
Adding permission 'exhibitions | curator index page | Can change curator index page'
Adding permission 'exhibitions | curator index page | Can delete curator index page'
Adding permission 'exhibitions | curator page | Can add curator page'
Adding permission 'exhibitions | curator page | Can change curator page'
Adding permission 'exhibitions | curator page | Can delete curator page'
Running post-migrate handlers for application screens
Traceback (most recent call last):
File "/home/vagrant/.virtualenvs/rcasecret/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line
utility.execute()
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 342, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 30, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 74, in execute
super(Command, self).execute(*args, **options)
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
output = self.handle(*args, **options)
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 90, in handle
failures = test_runner.run_tests(test_labels)
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/test/runner.py", line 532, in run_tests
old_config = self.setup_databases()
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/test/runner.py", line 482, in setup_databases
self.parallel, **kwargs
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/test/runner.py", line 726, in setup_databases
serialize=connection.settings_dict.get("TEST", {}).get("SERIALIZE", True),
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/backends/base/creation.py", line 78, in create_test_db
self.connection._test_serialized_contents = self.serialize_db_to_string()
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/backends/base/creation.py", line 122, in serialize_db_to_string
serializers.serialize("json", get_objects(), indent=None, stream=out)
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/core/serializers/__init__.py", line 129, in serialize
s.serialize(queryset, **options)
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/core/serializers/base.py", line 79, in serialize
for count, obj in enumerate(queryset, start=1):
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/backends/base/creation.py", line 118, in get_objects
for obj in queryset.iterator():
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/query.py", line 52, in __iter__
results = compiler.execute_sql()
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 841, in execute_sql
sql, params = self.as_sql()
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 384, in as_sql
extra_select, order_by, group_by = self.pre_sql_setup()
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 48, in pre_sql_setup
self.setup_query()
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 39, in setup_query
self.select, self.klass_info, self.annotation_col_map = self.get_select()
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 196, in get_select
for c in self.get_default_columns():
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 533, in get_default_columns
column = field.get_col(alias)
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/fields/related.py", line 976, in get_col
return super(ForeignKey, self).get_col(alias, output_field or self.target_field)
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/fields/related.py", line 856, in target_field
return self.foreign_related_fields[0]
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/fields/related.py", line 591, in foreign_related_fields
return tuple(rhs_field for lhs_field, rhs_field in self.related_fields if rhs_field)
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/fields/related.py", line 578, in related_fields
self._related_fields = self.resolve_related_fields()
File "/home/vagrant/.virtualenvs/rcasecret/local/lib/python2.7/site-packages/django/db/models/fields/related.py", line 563, in resolve_related_fields
raise ValueError('Related model %r cannot be resolved' % self.remote_field.model)
ValueError: Related model u'Filter' cannot be resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment