Skip to content
Advertisement

Django: m doesn’t look like a module path

I can vistit the /admin url

but went I login admin or call my login api. I got this error message

error:

ImportError at /admin/login/
m doesn't look like a module path
Request Method: POST
Request URL:    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Django Version: 1.8.17
Exception Type: ImportError
Exception Value:    
m doesn't look like a module path
Exception Location: /root/.virtualenvs/areyoutired/lib/python3.4/site-packages/django/utils/module_loading.py in import_string, line 21
Python Executable:  /usr/local/bin/uwsgi
Python Version: 3.4.3
Python Path:    
['.',
 '',
 '/root/.virtualenvs/areyoutired/lib/python3.4',
 '/root/.virtualenvs/areyoutired/lib/python3.4/plat-x86_64-linux-gnu',
 '/root/.virtualenvs/areyoutired/lib/python3.4/lib-dynload',
 '/usr/lib/python3.4',
 '/usr/lib/python3.4/plat-x86_64-linux-gnu',
 '/root/.virtualenvs/areyoutired/lib/python3.4/site-packages']

Advertisement

Answer

You haven’t given enough details to know for certain, however I am going to guess that this is a problem with your AUTHENTICATION_BACKENDS setting. See Django AUTHENTICATION_BACKENDS import error for a similar problem.

Advertisement