| 67 | |
| 68 | |
| 69 | Here's the full traceback: |
| 70 | |
| 71 | {{{ |
| 72 | Traceback (most recent call last): |
| 73 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute |
| 74 | return self.cursor.execute(sql, params) |
| 75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 76 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/backends/sqlite3/base.py", line 329, in execute |
| 77 | return super().execute(query, params) |
| 78 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 79 | sqlite3.OperationalError: no such table: profiles_department |
| 80 | |
| 81 | The above exception was the direct cause of the following exception: |
| 82 | |
| 83 | Traceback (most recent call last): |
| 84 | File "/SOME-DIR/blank_django/src/blanked/manage.py", line 22, in <module> |
| 85 | main() |
| 86 | File "/SOME-DIR/blank_django/src/blanked/manage.py", line 18, in main |
| 87 | execute_from_command_line(sys.argv) |
| 88 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line |
| 89 | utility.execute() |
| 90 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute |
| 91 | self.fetch_command(subcommand).run_from_argv(self.argv) |
| 92 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/core/management/base.py", line 413, in run_from_argv |
| 93 | self.execute(*args, **cmd_options) |
| 94 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/core/management/base.py", line 454, in execute |
| 95 | self.check() |
| 96 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/core/management/base.py", line 486, in check |
| 97 | all_issues = checks.run_checks( |
| 98 | ^^^^^^^^^^^^^^^^^^ |
| 99 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/core/checks/registry.py", line 88, in run_checks |
| 100 | new_errors = check(app_configs=app_configs, databases=databases) |
| 101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 102 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/contrib/auth/checks.py", line 84, in check_user_model |
| 103 | if isinstance(cls().is_anonymous, MethodType): |
| 104 | ^^^^^ |
| 105 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/models/base.py", line 535, in __init__ |
| 106 | val = field.get_default() |
| 107 | ^^^^^^^^^^^^^^^^^^^ |
| 108 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/models/fields/related.py", line 1134, in get_default |
| 109 | field_default = super().get_default() |
| 110 | ^^^^^^^^^^^^^^^^^^^^^ |
| 111 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/models/fields/__init__.py", line 1021, in get_default |
| 112 | return self._get_default() |
| 113 | ^^^^^^^^^^^^^^^^^^^ |
| 114 | File "/SOME-DIR/blank_django/src/blanked/profiles/models.py", line 11, in unassigned_department |
| 115 | return Department.objects.get_or_create(name="UNASSIGNED")[0].pk |
| 116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 117 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/models/manager.py", line 87, in manager_method |
| 118 | return getattr(self.get_queryset(), name)(*args, **kwargs) |
| 119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 120 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/models/query.py", line 948, in get_or_create |
| 121 | return self.get(**kwargs), False |
| 122 | ^^^^^^^^^^^^^^^^^^ |
| 123 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/models/query.py", line 645, in get |
| 124 | num = len(clone) |
| 125 | ^^^^^^^^^^ |
| 126 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/models/query.py", line 382, in __len__ |
| 127 | self._fetch_all() |
| 128 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/models/query.py", line 1928, in _fetch_all |
| 129 | self._result_cache = list(self._iterable_class(self)) |
| 130 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 131 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/models/query.py", line 91, in __iter__ |
| 132 | results = compiler.execute_sql( |
| 133 | ^^^^^^^^^^^^^^^^^^^^^ |
| 134 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql |
| 135 | cursor.execute(sql, params) |
| 136 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 122, in execute |
| 137 | return super().execute(sql, params) |
| 138 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 139 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 79, in execute |
| 140 | return self._execute_with_wrappers( |
| 141 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 142 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers |
| 143 | return executor(sql, params, many, context) |
| 144 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 145 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 100, in _execute |
| 146 | with self.db.wrap_database_errors: |
| 147 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__ |
| 148 | raise dj_exc_value.with_traceback(traceback) from exc_value |
| 149 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute |
| 150 | return self.cursor.execute(sql, params) |
| 151 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 152 | File "/SOME-DIR/blank_django/src/venv/lib/python3.11/site-packages/django/db/backends/sqlite3/base.py", line 329, in execute |
| 153 | return super().execute(query, params) |
| 154 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 155 | django.db.utils.OperationalError: no such table: profiles_department |
| 156 | |
| 157 | }}} |