You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error
ImportError: Failed to import test module: django_project.cloud_native_gis.admin
Traceback (most recent call last):
File "/usr/local/lib/python3.12/unittest/loader.py", line 415, in _find_test_path
package = self._get_module_from_name(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/unittest/loader.py", line 325, in _get_module_from_name
__import__(name)
File "/tmp/pycharm_project_27/django_project/cloud_native_gis/admin/__init__.py", line 4, in <module>
from .general import *
File "/tmp/pycharm_project_27/django_project/cloud_native_gis/admin/general.py", line 17, in <module>
admin.site.register(License, LicenseAdmin)
File "/usr/local/lib/python3.12/site-packages/django/contrib/admin/sites.py", line 132, in register
raise AlreadyRegistered(msg)
django.contrib.admin.sites.AlreadyRegistered: The model License is already registered with 'cloud_native_gis.LicenseAdmin'.
Error
ImportError: Failed to import test module: django_project.cloud_native_gis.models
Traceback (most recent call last):
File "/usr/local/lib/python3.12/unittest/loader.py", line 415, in _find_test_path
package = self._get_module_from_name(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/unittest/loader.py", line 325, in _get_module_from_name
__import__(name)
File "/tmp/pycharm_project_27/django_project/cloud_native_gis/models/__init__.py", line 3, in <module>
from .general import *
File "/tmp/pycharm_project_27/django_project/cloud_native_gis/models/general.py", line 44, in <module>
class License(AbstractTerm):
File "/usr/local/lib/python3.12/site-packages/django/db/models/base.py", line 134, in __new__
raise RuntimeError(
RuntimeError: Model class django_project.cloud_native_gis.models.general.License doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
django.db.utils.OperationalError: database "test_django" is being accessed by other users
DETAIL: There is 1 other session using the database.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: