INSTALLED_APPS += (
    'simplemenu',
    'webmanager',
    'bootstrapform',
    'userenabootstrap',
    'userena',
    # 'social_auth',
    'provider.oauth2',
)

TEMPLATE_CONTEXT_PROCESSORS += (
    'django.contrib.auth.context_processors.auth',
)

AUTHENTICATION_BACKENDS += (
    'userena.backends.UserenaAuthenticationBackend',
    'django.contrib.auth.backends.ModelBackend',
    'guardian.backends.ObjectPermissionBackend'
)

ANONYMOUS_USER_ID = -1

AUTH_PROFILE_MODULE = 'webmanager.MyProfile'

USERENA_SIGNIN_REDIRECT_URL = '/accounts/%(username)s/'
LOGIN_URL = '/accounts/signin/'
LOGOUT_URL = '/accounts/signout/'

#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'

USERENA_ACTIVATION_REQUIRED = False
USERENA_SIGNIN_AFTER_SIGNUP = True

INSTALLED_APPS += (
    'provider',
    'provider.oauth2',
    'simplemenu',
    'webmanager',
    'bootstrapform',
    'userenabootstrap',
    'userena',
    # 'social_auth',
)

TEMPLATE_CONTEXT_PROCESSORS += (
    'django.contrib.auth.context_processors.auth',
)

AUTHENTICATION_BACKENDS += (
    'userena.backends.UserenaAuthenticationBackend',
    'django.contrib.auth.backends.ModelBackend',
    'guardian.backends.ObjectPermissionBackend'
)

ANONYMOUS_USER_ID = -1

AUTH_PROFILE_MODULE = 'webmanager.MyProfile'

USERENA_SIGNIN_REDIRECT_URL = '/accounts/%(username)s/'
LOGIN_URL = '/accounts/signin/'
LOGOUT_URL = '/accounts/signout/'

#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'

USERENA_ACTIVATION_REQUIRED = False
USERENA_SIGNIN_AFTER_SIGNUP = True

Fix provider oauth2 warning by import provider before oauth2 as described in the manual
Fix provider oauth2 warning by import provider before oauth2 as described in the manual

  INSTALLED_APPS += (
+     'provider',
+     'provider.oauth2',
      'simplemenu',
      'webmanager',
      'bootstrapform',
      'userenabootstrap',
      'userena',
      # 'social_auth',
-     'provider.oauth2',
  )
  
  TEMPLATE_CONTEXT_PROCESSORS += (
      'django.contrib.auth.context_processors.auth',
  )
  
  AUTHENTICATION_BACKENDS += (
      'userena.backends.UserenaAuthenticationBackend',
      'django.contrib.auth.backends.ModelBackend',
      'guardian.backends.ObjectPermissionBackend'
  )
  
  ANONYMOUS_USER_ID = -1
  
  AUTH_PROFILE_MODULE = 'webmanager.MyProfile'
  
  USERENA_SIGNIN_REDIRECT_URL = '/accounts/%(username)s/'
  LOGIN_URL = '/accounts/signin/'
  LOGOUT_URL = '/accounts/signout/'
  
  #EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
  
  USERENA_ACTIVATION_REQUIRED = False
  USERENA_SIGNIN_AFTER_SIGNUP = True
  
Fix provider oauth2 warning by import provider before oauth2 as described in the manual
## Code Before:
INSTALLED_APPS += (
    'simplemenu',
    'webmanager',
    'bootstrapform',
    'userenabootstrap',
    'userena',
    # 'social_auth',
    'provider.oauth2',
)

TEMPLATE_CONTEXT_PROCESSORS += (
    'django.contrib.auth.context_processors.auth',
)

AUTHENTICATION_BACKENDS += (
    'userena.backends.UserenaAuthenticationBackend',
    'django.contrib.auth.backends.ModelBackend',
    'guardian.backends.ObjectPermissionBackend'
)

ANONYMOUS_USER_ID = -1

AUTH_PROFILE_MODULE = 'webmanager.MyProfile'

USERENA_SIGNIN_REDIRECT_URL = '/accounts/%(username)s/'
LOGIN_URL = '/accounts/signin/'
LOGOUT_URL = '/accounts/signout/'

#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'

USERENA_ACTIVATION_REQUIRED = False
USERENA_SIGNIN_AFTER_SIGNUP = True

## Instruction:
Fix provider oauth2 warning by import provider before oauth2 as described in the manual
## Code After:
INSTALLED_APPS += (
    'provider',
    'provider.oauth2',
    'simplemenu',
    'webmanager',
    'bootstrapform',
    'userenabootstrap',
    'userena',
    # 'social_auth',
)

TEMPLATE_CONTEXT_PROCESSORS += (
    'django.contrib.auth.context_processors.auth',
)

AUTHENTICATION_BACKENDS += (
    'userena.backends.UserenaAuthenticationBackend',
    'django.contrib.auth.backends.ModelBackend',
    'guardian.backends.ObjectPermissionBackend'
)

ANONYMOUS_USER_ID = -1

AUTH_PROFILE_MODULE = 'webmanager.MyProfile'

USERENA_SIGNIN_REDIRECT_URL = '/accounts/%(username)s/'
LOGIN_URL = '/accounts/signin/'
LOGOUT_URL = '/accounts/signout/'

#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'

USERENA_ACTIVATION_REQUIRED = False
USERENA_SIGNIN_AFTER_SIGNUP = True
