SHARE
TWEET

Untitled

a guest May 22nd, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. malita-profiling@malita-profiling:~/Documents/.profiling-api$ docker-compose run api python manage.py migrate
  2. Starting profiling_db ...
  3. Starting profiling_map_1 ... done
  4. Operations to perform:
  5.   Apply all migrations: admin, agriculture, auth, contenttypes, education, families, fisheries, housing, income, nutrition, sessions
  6. Running migrations:
  7.   Applying families.0026_populate_gps_points...Traceback (most recent call last):
  8.   File "manage.py", line 22, in <module>
  9.     execute_from_command_line(sys.argv)
  10.   File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
  11.     utility.execute()
  12.   File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 356, in execute
  13.     self.fetch_command(subcommand).run_from_argv(self.argv)
  14.   File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv
  15.     self.execute(*args, **cmd_options)
  16.   File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
  17.     output = self.handle(*args, **options)
  18.   File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 204, in handle
  19.     fake_initial=fake_initial,
  20.   File "/usr/local/lib/python3.6/site-packages/django/db/migrations/executor.py", line 115, in migrate
  21.     state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  22.   File "/usr/local/lib/python3.6/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
  23.     state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  24.   File "/usr/local/lib/python3.6/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
  25.     state = migration.apply(state, schema_editor)
  26.   File "/usr/local/lib/python3.6/site-packages/django/db/migrations/migration.py", line 129, in apply
  27.     operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  28.   File "/usr/local/lib/python3.6/site-packages/django/db/migrations/operations/special.py", line 193, in database_forwards
  29.     self.code(from_state.apps, schema_editor)
  30.   File "/code/families/migrations/0026_populate_gps_points.py", line 11, in forwards
  31.     for family in Family.objects.filter(housing__gps_lat__isnull=False, housing__gps_lon__isnull=False):
  32.   File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
  33.     return getattr(self.get_queryset(), name)(*args, **kwargs)
  34.   File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 784, in filter
  35.     return self._filter_or_exclude(False, *args, **kwargs)
  36.   File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 802, in _filter_or_exclude
  37.     clone.query.add_q(Q(*args, **kwargs))
  38.   File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1250, in add_q
  39.     clause, _ = self._add_q(q_object, self.used_aliases)
  40.   File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1276, in _add_q
  41.     allow_joins=allow_joins, split_subq=split_subq,
  42.   File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1154, in build_filter
  43.     lookups, parts, reffed_expression = self.solve_lookup_type(arg)
  44.   File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1034, in solve_lookup_type
  45.     _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())
  46.   File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1352, in names_to_path
  47.     "Choices are: %s" % (name, ", ".join(available)))
  48. django.core.exceptions.FieldError: Cannot resolve keyword 'housing' into field. Choices are: address, agro_forestry, agroforestry, barangay, barangay_id, commercialcrop, crops, dependents, dependents_text, disability, education, familyaccess, familyassets, familycommercialcrop, familycorncrop, familyexpenditures, familyhighvaluecrop, familyhousing, familyincome, familypond, familyprofession, familyricecrop, familyvegetable, farinventory, farm, farm_machinery, farmer_org, government_aid_received, gps_lat, gps_lon, head, head_id, highvaluecrop, id, lgu, lgu_id, livestock, map_points, market_info, num_of_female_children, num_of_male_children, nutritionprofile, pet_and_poultry, production_economy, psycho_social, series_number, speciescaptured, spouse, spouse_id, tracking_number, tribe_name, tribe_type, wordpress_db, wordpress_id
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top