5👍
I had this same problem and it was killing me!
(for me) The problem was that I was working in an virtural env in PyCharm) but I have a global python as well. From my command line I was running manage.py runserver, the problem being that my global python doesn’t have the widget-tweaks library installed. ( I didn’t realize I wasn’t running from the venv)
If you’re like me the solution is make sure you’re in the right environment,
from PyCharm I did tools -> run manage.py task -> runserver
and it worked…
- Django tests dump data/ results
- Python headers are required to build Mercurial
- Simple tutorial for Neo4J and using it with django + python
- Django 2.1 how do I create a user in a migration
- Example when request.POST contain query string in django
1👍
I got this since I added 'widget_tweaks',
above the started apps.
You need to add it under the started apps, you can add pip installed like this INSTALLED_APPS += [ 'widget_tweaks', ]
under INSTALLED_APPS
.
Only add pip installed apps in INSTALLED_APPS += []
and started apps in INSTALLED_APPS = []
.
Or you can just add the pip installed apps bellow the started apps. Like this:
Settings.py only showing INSTALLED_APPS
...
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'PupsToPet.apps.PupstopetConfig',
...
# Started apps first
'app1',
'app2',
...
# pip installed at the bottom
'widget_tweaks',
...
]
...
- Django alter form data in clean method
- Django queryset __contains case sensitive?
- Call django urls inside javascript on click event
- No module named settings_vars error in django debug toolbar
0👍
Ahh this is working for me look when write
python -m pip install Pillow
this problem solved for me
- Add functionality to Django FlatPages without changing the original Django App
- Static files won't load when out of debug in Django
- Django: duplicates when filtering on many to many field
0👍
My problem was resolved after upgrading my pip version from 21.0.1 to 21.1.1 using pip install --upgrade pip
- Where has 'django.core.context_processors.request' gone in Django 1.10?
- How to do this join query in Django
- Django Rest Framework – Post Foreign Key
- Setting a session variable in django tests
- Build_absolute_uri with HTTPS behind reverse proxy