Problem makemigration tutorial polls


I’m new and I’m throwing myself into programming with Python and Django.
Looking at the site I noticed the presence of the tutorial and in trying to do it I fell into a problem that I cannot understand.

In the survey tutorial when installing survey application in the file and then run the command: python survey makemigrations I get this:

PS C:\Users\fabio\Documents\Python\Djangoprj\mysite> python makemigrations
Traceback (most recent call last):
File “C:\Users\fabio\Documents\Python\Djangoprj\mysite\”, line 22, in
File “C:\Users\fabio\Documents\Python\Djangoprj\mysite\”, line 18, in main
File “C:\Users\fabio\Documents\Python\Djangoprj\sito\lib\site-packages\django\core\”, line 419, in execute_from_command_line
File “C:\Users\fabio\Documents\Python\Djangoprj\sito\lib\site-packages\django\core\”, line 395, in execute
File “C:\Users\fabio\Documents\Python\Djangoprj\sito\lib\site-packages\”, line 24, in setup
File “C:\Users\fabio\Documents\Python\Djangoprj\sito\lib\site-packages\django\apps\”, line 114, in populate
File “C:\Users\fabio\Documents\Python\Djangoprj\sito\lib\site-packages\django\apps\”, line 301, in import_models
self.models_module = import_module(models_module_name)
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 790, in exec_module
File “”, line 228, in call_with_frames_removed
File “C:\Users\fabio\Documents\Python\Djangoprj\mysite\polls\”, line 3, in
class Question(models.Model):
File “C:\Users\fabio\Documents\Python\Djangoprj\mysite\polls\”, line 4, in Question
question_text = models.CharField(max_lenght = 100)
File "C:\Users\fabio\Documents\Python\Djangoprj\sito\lib\site-packages\django\db\models\fields_init
.py", line 1005, in init
super().init(*args, **kwargs)
TypeError: init() got an unexpected keyword argument ‘max_lenght’

I noticed that commenting the line of the new application, the problem disappears but I can not understand where I am wrong.
I hope you can help me and be able to better understand my mistake.

Thanks so much!!!

See the line in the traceback

models.CharField(max_lenght = 100)

The parameter is max_length, not max_lenght.

Oh my God!
what a mistake, thank you very much! I knew it was a spelling mistake but I just couldn’t see it.

thank you!
thank you!
thank you!