Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- psycopg2.errors.UndefinedTable: relation "variables_variable" does not exist
- LINE 1: ..., "variables_variable"."ganancia_fibrofacil" FROM "variables...
- ^
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "manage.py", line 21, in <module>
- main()
- File "manage.py", line 17, in main
- execute_from_command_line(sys.argv)
- File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
- utility.execute()
- File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 357, in execute
- django.setup()
- File "/app/.heroku/python/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
- apps.populate(settings.INSTALLED_APPS)
- File "/app/.heroku/python/lib/python3.6/site-packages/django/apps/registry.py", line 114, in populate
- app_config.import_models()
- File "/app/.heroku/python/lib/python3.6/site-packages/django/apps/config.py", line 211, in import_models
- self.models_module = import_module(models_module_name)
- File "/app/.heroku/python/lib/python3.6/importlib/__init__.py", line 126, in import_module
- return _bootstrap._gcd_import(name[level:], package, level)
- File "<frozen importlib._bootstrap>", line 994, in _gcd_import
- File "<frozen importlib._bootstrap>", line 971, in _find_and_load
- File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
- File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
- File "<frozen importlib._bootstrap_external>", line 678, in exec_module
- File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
- File "/app/productos/models.py", line 9, in <module>
- v = Variable.objects.first() # Sรณlo un registro con todas las variables
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
- return getattr(self.get_queryset(), name)(*args, **kwargs)
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py", line 653, in first
- for obj in (self if self.ordered else self.order_by('pk'))[:1]:
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py", line 274, in __iter__
- self._fetch_all()
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py", line 1242, in _fetch_all
- self._result_cache = list(self._iterable_class(self))
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py", line 55, in __iter__
- results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1133, in execute_sql
- cursor.execute(sql, params)
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
- return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
- return executor(sql, params, many, context)
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
- raise dj_exc_value.with_traceback(traceback) from exc_value
- File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
- return self.cursor.execute(sql, params)
- django.db.utils.ProgrammingError: relation "variables_variable" does not exist
- LINE 1: ..., "variables_variable"."ganancia_fibrofacil" FROM "variables...
- ^
Advertisement
Add Comment
Please, Sign In to add comment