Created
September 28, 2016 11:56
-
-
Save Beomi/ec88c2788334cff35a8d836495505800 to your computer and use it in GitHub Desktop.
Using Gnuboard DB with Django custom AUTH_USER_MODEL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
from django.core.exceptions import ImproperlyConfigured | |
# some settings | |
# ... | |
# ... | |
INSTALLED_APPS = [ | |
# ... | |
'auth_app', | |
# ... | |
] | |
AUTHENTICATION_BACKENDS = ['auth_app.auth.MyUserAuthBackend'] | |
AUTH_USER_MODEL = ( | |
'auth_app.G5Member' | |
) | |
# ... | |
# othersettings... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment