Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Widget tweaks error ModuleNotFoundError: No module named 'widget_tweaks' with Django forms

I am trying to customize my Django forms using widget tweaks for an app I'm building with a group and I keep getting an error:

ModuleNotFoundError: No module named 'widget_tweaks'

I don't understand why.

I installed the module on my mac with $ pip install django-widget-tweaks and placed 'widget_tweaks' in the INSTALLED_APPS = [...] part of my app's settings.py file. Those were the only 2 things I saw that I needed to do after reading the documentation for how to use widget tweaks.

settings.py file snippet:

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'PupsToPet.apps.PupstopetConfig',
    'widget_tweaks',
   #'django.contrib.easy_maps',
]
like image 364
Thao Avatar asked Dec 04 '17 02:12

Thao


1 Answers

Try to install with pip3:

pip3 install django-widget-tweaks 
like image 168
nevermore Avatar answered Sep 20 '22 12:09

nevermore