Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django: m doesn't look like a module path

Tags:

python

django

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']
like image 586
MrFrank Avatar asked Nov 28 '22 13:11

MrFrank


1 Answers

the problem is

my settings

AUTHENTICATION_BACKENDS = (
    'member.backends.EmailPasswordBackend'
)

does not have "," behind 'member.backends.EmailPasswordBackend'

so i got "m doesn't look like a module path"

that's so shame on me

like image 134
MrFrank Avatar answered Dec 06 '22 23:12

MrFrank