A django-cms apphook to aid with user authentication.
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')),
- Create a new page
2.Add apphook LOGIN to the page
ENJOY!!