# Django: makemigrations error

**URL:** <https://forum.freecodecamp.org/t/django-makemigrations-error/325113>\
**Category:** General\
**Created:** [November 1, 2019, 1:18pm UTC](https://forum.freecodecamp.org/t/django-makemigrations-error/325113 "2019-11-01T13:18:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirkyoungbauer](https://avatars.discourse-cdn.com/v4/letter/k/a587f6/32.png) [@kirkyoungbauer](https://forum.freecodecamp.org/u/kirkyoungbauer)\
**Post date:** [November 1, 2019, 1:18pm UTC](https://forum.freecodecamp.org/t/django-makemigrations-error/325113/1 "2019-11-01T13:18:16Z")

</div>

Admittedly I’m a newbie to django and I’m getting the following error when trying to run “python manage.py makemigrations”

I’m trying to add a new field in to my class Product(models.Model):  
featured = models.BooleanField()

Code

```auto
from django.db import models

# Create your models here.
class Product(models.Model):
	title = models.CharField(max_length=120) # max_length = required
	description = models.TextField(blank=True, null=True)
	price = models.DecimalField(decimal_places=2, max_digits=10000)
	summary = models.TextField()
	featured = models.BooleenField() #only new added line

Error: AttributeError: module 'django.db.models' has no attribute 'BooleenField'

command:
python manage.py makemigrations <enter>

entire_traceback:
Traceback (most recent call last):
  File "manage.py", line 15, in <module>
    execute_from_command_line(sys.argv)
  File "C:\.....\trydjango\lib\site-packages\django\core\management\ __init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "C:\.....\trydjango\lib\site-packages\django\core\management\ __init__.py", line 357, in execute
    django.setup()
  File "C:\.....\trydjango\lib\site-packages\django\ __init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\.....\trydjango\lib\site-packages\django\apps\registry.py", line 112, in populate
    app_config.import_models()
  File "C:\.....\trydjango\lib\site-packages\django\apps\config.py", line 198, in import_models
    self.models_module = import_module(models_module_name)
  File "C:\.....\trydjango\lib\importlib\ __init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\.....\src\products\models.py", line 4, in <module>
    class Product(models.Model):
  File "C:\.....\src\products\models.py", line 9, in Product
    featured = models.BooleenField()
AttributeError: module 'django.db.models' has no attribute 'BooleenField'
'''
```

---

<div class="post-metadata">

**Author:** ![ccwoolfolk](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ccwoolfolk/32/127013_2.png) [@ccwoolfolk](https://forum.freecodecamp.org/u/ccwoolfolk)\
**Post date:** [November 2, 2019, 12:20am UTC](https://forum.freecodecamp.org/t/django-makemigrations-error/325113/2 "2019-11-02T00:20:41Z")

</div>

Compare this line:

```auto
featured = models.BooleenField() #only new added line

```

to what you said you added in the text of this post, and I think you’ll see the issue. 🙂 (hint: compare the lines character-by-character if you are still stuck)

---

<div class="post-metadata">

**Author:** ![kirkyoungbauer](https://avatars.discourse-cdn.com/v4/letter/k/a587f6/32.png) [@kirkyoungbauer](https://forum.freecodecamp.org/u/kirkyoungbauer)\
**Post date:** [November 2, 2019, 3:24am UTC](https://forum.freecodecamp.org/t/django-makemigrations-error/325113/3 "2019-11-02T03:24:48Z")

</div>

Thanks for the help. Yeah I figured it out a bit ago. Small error threw me off on a tangent for far too long.

---

<div class="post-metadata">

**Author:** ![ccwoolfolk](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ccwoolfolk/32/127013_2.png) [@ccwoolfolk](https://forum.freecodecamp.org/u/ccwoolfolk)\
**Post date:** [November 2, 2019, 1:58pm UTC](https://forum.freecodecamp.org/t/django-makemigrations-error/325113/4 "2019-11-02T13:58:04Z")

</div>

> [@kirkyoungbauer](#):
>
> Small error threw me off on a tangent for far too long.

These things happen!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 2:46pm UTC](https://forum.freecodecamp.org/t/django-makemigrations-error/325113/5 "2021-01-16T14:46:09Z")

</div>

Closed on January 16, 2021, 2:46pm UTC


