Advertisement
Roman_Sarnov

Untitled

Feb 28th, 2020
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.61 KB | None | 0 0
  1. return self.cursor.execute(sql, params)
  2. psycopg2.errors.UndefinedTable: ОШИБКА: отношение "blog_customuser" не существует
  3. LINE 1: ..._customuser"."age", "blog_customuser"."city" FROM "blog_cust...
  4. ^
  5.  
  6.  
  7. The above exception was the direct cause of the following exception:
  8.  
  9. Traceback (most recent call last):
  10. File "manage.py", line 21, in <module>
  11. main()
  12. File "manage.py", line 17, in main
  13. execute_from_command_line(sys.argv)
  14. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
  15. utility.execute()
  16. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\__init__.py", line 375, in execute
  17. self.fetch_command(subcommand).run_from_argv(self.argv)
  18. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\base.py", line 323, in run_from_argv
  19. self.execute(*args, **cmd_options)
  20. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\auth\management\commands\createsuperuser.py", line 61, in execute
  21. return super().execute(*args, **options)
  22. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\base.py", line 364, in execute
  23. output = self.handle(*args, **options)
  24. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\auth\management\commands\createsuperuser.py", line 95, in handle
  25. error_msg = self._validate_username(username, verbose_field_name, database)
  26. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\auth\management\commands\createsuperuser.py", line 201, in _validate_username
  27. self.UserModel._default_manager.db_manager(database).get_by_natural_key(username)
  28. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\auth\base_user.py", line 44, in get_by_natural_key
  29. return self.get(**{self.model.USERNAME_FIELD: username})
  30. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
  31. return getattr(self.get_queryset(), name)(*args, **kwargs)
  32. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\models\query.py", line 402, in get
  33. num = len(clone)
  34. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\models\query.py", line 256, in __len__
  35. self._fetch_all()
  36. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\models\query.py", line 1242, in _fetch_all
  37. self._result_cache = list(self._iterable_class(self))
  38. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\models\query.py", line 55, in __iter__
  39. results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  40. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\models\sql\compiler.py", line 1097, in execute_sql
  41. cursor.execute(sql, params)
  42. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\backends\utils.py", line 99, in execute
  43. return super().execute(sql, params)
  44. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  45. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  46. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\backends\utils.py", line 76, in _execute_with_wrappers
  47. return executor(sql, params, many, context)
  48. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  49. return self.cursor.execute(sql, params)
  50. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\utils.py", line 89, in __exit__
  51. raise dj_exc_value.with_traceback(traceback) from exc_value
  52. File "C:\Users\Роман\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
  53. return self.cursor.execute(sql, params)
  54. django.db.utils.ProgrammingError: ОШИБКА: отношение "blog_customuser" не существует
  55. LINE 1: ..._customuser"."age", "blog_customuser"."city" FROM "blog_cust...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement