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
exception:
(env) xiaowy@ubuntu:~/django-crm/django-crm$ python manage.py migrate
No local settings file found
Traceback (most recent call last):
File "manage.py", line 24, in
execute_from_command_line(sys.argv)
File "/home/xiaowy/django-crm/env/lib/python3.5/site-packages/django/core/management/init.py", line 381, in execute_from_command_line
utility.execute()
File "/home/xiaowy/django-crm/env/lib/python3.5/site-packages/django/core/management/init.py", line 357, in execute
django.setup()
File "/home/xiaowy/django-crm/env/lib/python3.5/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/xiaowy/django-crm/env/lib/python3.5/site-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/home/xiaowy/django-crm/env/lib/python3.5/site-packages/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/home/xiaowy/django-crm/env/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 665, in exec_module
File "", line 222, in call_with_frames_removed
File "/home/xiaowy/django-crm/django-crm/tasks/models.py", line 79, in
eav.register(Task)
File "/home/xiaowy/django-crm/env/src/django-eav/eav/init.py", line 30, in register
from .registry import Registry
File "/home/xiaowy/django-crm/env/src/django-eav/eav/registry.py", line 35, in
from .managers import EntityManager
File "/home/xiaowy/django-crm/env/src/django-eav/eav/managers.py", line 34, in
from .models import Attribute, Value
File "/home/xiaowy/django-crm/env/src/django-eav/eav/models.py", line 109, in
class Attribute(models.Model):
File "/home/xiaowy/django-crm/env/src/django-eav/eav/models.py", line 186, in Attribute
verbose_name=(u"content type"))
TypeError: init() missing 1 required positional argument: 'on_delete'
The text was updated successfully, but these errors were encountered:
python 3.5 ubuntu18.4
my code:
`class Task(models.Model):
xiaowy
import eav
eav.register(Task)`
exception:
(env) xiaowy@ubuntu:~/django-crm/django-crm$ python manage.py migrate
No local settings file found
Traceback (most recent call last):
File "manage.py", line 24, in
execute_from_command_line(sys.argv)
File "/home/xiaowy/django-crm/env/lib/python3.5/site-packages/django/core/management/init.py", line 381, in execute_from_command_line
utility.execute()
File "/home/xiaowy/django-crm/env/lib/python3.5/site-packages/django/core/management/init.py", line 357, in execute
django.setup()
File "/home/xiaowy/django-crm/env/lib/python3.5/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/xiaowy/django-crm/env/lib/python3.5/site-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/home/xiaowy/django-crm/env/lib/python3.5/site-packages/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/home/xiaowy/django-crm/env/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 665, in exec_module
File "", line 222, in call_with_frames_removed
File "/home/xiaowy/django-crm/django-crm/tasks/models.py", line 79, in
eav.register(Task)
File "/home/xiaowy/django-crm/env/src/django-eav/eav/init.py", line 30, in register
from .registry import Registry
File "/home/xiaowy/django-crm/env/src/django-eav/eav/registry.py", line 35, in
from .managers import EntityManager
File "/home/xiaowy/django-crm/env/src/django-eav/eav/managers.py", line 34, in
from .models import Attribute, Value
File "/home/xiaowy/django-crm/env/src/django-eav/eav/models.py", line 109, in
class Attribute(models.Model):
File "/home/xiaowy/django-crm/env/src/django-eav/eav/models.py", line 186, in Attribute
verbose_name=(u"content type"))
TypeError: init() missing 1 required positional argument: 'on_delete'
The text was updated successfully, but these errors were encountered: