Skip to content

A django-cms apphook to aid with user authentication.

Notifications You must be signed in to change notification settings

MCU-Innovations/django-cms-login

 
 

Repository files navigation

django-cms-login

A django-cms apphook to aid with user authentication.

Installing

pip install django_login

Add "django_login" to your INSTALLED_APPS setting like this:

INSTALLED_APPS = [
        ...
        'django_login',
    ]

Add "LOGIN_REDIRECT_URL" to your settings:

LOGIN_REDIRECT_URL = '/'

Import auth-views

from django.contrib.auth import views as auth_views

Add the follwing to your urlpatterns (after import)

url(r'^en/login/$', auth_views.login, {'template_name': 'registration/login.html'}),
url(r'^logout/$', auth_views.logout),
url(r'^', include('django_login.urls')),

Built With

USAGE

  1. Create a new page

fis

2.Add apphook LOGIN to the page

fif

ENJOY!!

codepen

About

A django-cms apphook to aid with user authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 69.9%
  • Python 28.7%
  • JavaScript 1.4%