Problem with the Polls Tutorial


I’m running

python makemigrations polls

I get the following error message. I’m not even sure where to start.

I’ve received the same error inside my virtualenv and outside it. Outside of it I use Python3

I’m on a macOS Catalina 10.15.3

Thank you for any help!

Traceback (most recent call last):
File “”, line 21, in
File “”, line 17, in main
File “/Users/zephyrmcintyre/Documents/django-project/venv/lib/python3.8/site-packages/django/core/management/”, line 401, in execute_from_command_line
File “/Users/zephyrmcintyre/Documents/django-project/venv/lib/python3.8/site-packages/django/core/management/”, line 377, in execute
File “/Users/zephyrmcintyre/Documents/django-project/venv/lib/python3.8/site-packages/django/”, line 24, in setup
File “/Users/zephyrmcintyre/Documents/django-project/venv/lib/python3.8/site-packages/django/apps/”, line 114, in populate
File “/Users/zephyrmcintyre/Documents/django-project/venv/lib/python3.8/site-packages/django/apps/”, line 211, in import_models
self.models_module = import_module(models_module_name)
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 783, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/Users/zephyrmcintyre/Documents/django-project/djangoProject/polls/”, line 9, in
class Choice(models.Model):
File “/Users/zephyrmcintyre/Documents/django-project/djangoProject/polls/”, line 12, in Choice
vote = models.IntergerField(default=0)
AttributeError: module ‘django.db.models’ has no attribute ‘IntergerField’

Notice the very last line of the error report - it’s giving you the information you need:
AttributeError: module ‘django.db.models’ has no attribute ‘IntergerField’

It’s “IntegerField”, not “IntergerField” - you’ve got a typo in your field definition.

1 Like

OMG thank you, I feel really dumb.

I hope you are well!

Don’t sweat it, we’ve all “been there, done that”.


1 Like