Django AUTHENTICATION_BACKENDS import error

后端 未结 2 1952
慢半拍i
慢半拍i 2021-02-08 04:48

What is the proper way to import a custom backend in settings.py? I currently have the following in settings.py:

AUTHENTICATION_BACKENDS = (\'apps.apployment_sit         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-08 05:37

    make sure it's a tuple:

    AUTHENTICATION_BACKENDS = ('apps.apployment_site.auth.CustomAuth',)
    

    note the comma at the end

提交回复
热议问题