Guest User

Untitled

a guest
Jul 13th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.08 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  3.     return self.cursor.execute(sql, params)
  4. psycopg2.errors.UndefinedTable: relation "variables_variable" does not exist
  5. LINE 1: ..., "variables_variable"."ganancia_fibrofacil" FROM "variables...
  6.                                                             ^
  7.  
  8.  
  9. The above exception was the direct cause of the following exception:
  10.  
  11. Traceback (most recent call last):
  12.  File "manage.py", line 21, in <module>
  13.    main()
  14.  File "manage.py", line 17, in main
  15.    execute_from_command_line(sys.argv)
  16.  File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
  17.    utility.execute()
  18.  File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 357, in execute
  19.    django.setup()
  20.  File "/app/.heroku/python/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
  21.    apps.populate(settings.INSTALLED_APPS)
  22.  File "/app/.heroku/python/lib/python3.6/site-packages/django/apps/registry.py", line 114, in populate
  23.    app_config.import_models()
  24.  File "/app/.heroku/python/lib/python3.6/site-packages/django/apps/config.py", line 211, in import_models
  25.    self.models_module = import_module(models_module_name)
  26.  File "/app/.heroku/python/lib/python3.6/importlib/__init__.py", line 126, in import_module
  27.    return _bootstrap._gcd_import(name[level:], package, level)
  28.  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  29.  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  30.  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  31.  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  32.  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  33.  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  34.  File "/app/productos/models.py", line 9, in <module>
  35.    v = Variable.objects.first()  # Sรณlo un registro con todas las variables
  36.  File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
  37.    return getattr(self.get_queryset(), name)(*args, **kwargs)
  38.  File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py", line 653, in first
  39.    for obj in (self if self.ordered else self.order_by('pk'))[:1]:
  40.  File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py", line 274, in __iter__
  41.    self._fetch_all()
  42.  File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py", line 1242, in _fetch_all
  43.    self._result_cache = list(self._iterable_class(self))
  44.  File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py", line 55, in __iter__
  45.    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  46.  File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1133, in execute_sql
  47.    cursor.execute(sql, params)
  48.  File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
  49.    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  50.  File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
  51.    return executor(sql, params, many, context)
  52.  File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  53.    return self.cursor.execute(sql, params)
  54.  File "/app/.heroku/python/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
  55.    raise dj_exc_value.with_traceback(traceback) from exc_value
  56.  File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  57.    return self.cursor.execute(sql, params)
  58. django.db.utils.ProgrammingError: relation "variables_variable" does not exist
  59. LINE 1: ..., "variables_variable"."ganancia_fibrofacil" FROM "variables...
  60.                                                              ^
Advertisement
Add Comment
Please, Sign In to add comment