Skip to content

Instantly share code, notes, and snippets.

@Beomi
Created September 28, 2016 11:56
Show Gist options
  • Save Beomi/ec88c2788334cff35a8d836495505800 to your computer and use it in GitHub Desktop.
Save Beomi/ec88c2788334cff35a8d836495505800 to your computer and use it in GitHub Desktop.
Using Gnuboard DB with Django custom AUTH_USER_MODEL
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