есть модель: from django.db import models
# Create your models here.
class todoItem(models.Model):
content = models.TextFiled()
При makemigrations выдает ошибку:
(в installed_apps вроде дабавил,)
Traceback (most recent call last):
File "manage.py", line 21, in
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "C:\Users\turdubekov\Documents\django\venvset1\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
utility.execute() File "C:\Users\turdubekov\Documents\django\venvset1\lib\site-packages\django\core\management\__init__.py", line 357, in execute
django.setup()
File "C:\Users\turdubekov\Documents\django\venvset1\lib\site-packages\django\__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\turdubekov\Documents\django\venvset1\lib\site-packages\django\apps\registry.py", line 114, in populate app_config.import_models()
File "C:\Users\turdubekov\Documents\django\venvset1\lib\site-packages\django\apps\config.py", line 211, in import_models
self.models_module = import_module(models_module_name) File "C:\Users\turdubekov\AppData\Local\Programs\Python\Python37-32\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\Users\turdubekov\Documents\django\todo_project\todo\models.py", line 4, in
class todoItem(models.Model):
File "C:\Users\turdubekov\Documents\django\todo_project\todo\models.py", line 5, in todoItem
content = models.TextFiled() AttributeError: module 'django.db.models' has no attribute 'TextFiled'