Skip to content

bung87/django-moe-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Moe Auth

Requirements

  • Python
  • Django
  • mongoengine==0.8.8
  • djangorestframework==3.0.5
  • django-allauth>=0.19.1

Setting up

Add setttings for allauth

ACCOUNT_ADAPTER = 'moe_auth.auth.adapters.DefaultAccountAdapter'

ACCOUNT_FORMS = {
    'signup':'moe_auth.auth.forms.SignupForm'
}

Add Authentication Middleware

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'moe_auth.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
)

Include url

urlpatterns = patterns('',
    # .......
    url(r'api/',include('moe_auth.api.urls')),
)

Related Projects

  • django-rest-auth if you would like have a registration add the url url(r'^registration/$', include('rest_auth.registration.urls'),name='registration'),

About

Integrated set of Django applications(django-allauth,mongoengine,django-rest-framework) authentication, registration,account management.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages