Reputation: 181
I am using wagtail with Django, so far the installation has been succesful.Django is runing and Wagtail too when I go the admin url.
but I can't login as an admin cause I can't createsuper with the command python manage.py createsuperuser.It displays
ModuleNotFoundError: No module named 'wagtail'
I am using python 3.7,any help will be appreciated
Upvotes: 0
Views: 1801
Reputation: 181
SO The problem was,I installed wagtail before creating my virtual environment and activate it. what I did is i check if wagtail was in the site-packages of my virtual environment
pip freeze
Then after realizing that it was not there, I installed wagtail again in my virtual environment(site-packages folder) with the command pip install wagtail
Upvotes: 0
Reputation: 239
what version of wagtail are you using? sometimes, when your code has no bug, try downgrading the python version to see if it works.
Upvotes: 0