Logout user Login user Change password
Wagtail user management
This document assumes that you have a Wagtail project up and running (see Start Project). It will take you through the steps that you need to follow to set up pages and links that will allow a registered user to login, log out and change their password.
-
Create a new app users
./manage.py startapp users
-
Update base.py
INSTALLED_APPS = [ ... 'users', ...
-
In <project>/urls.py:
urlpatterns = [ ... url(r'^users/', include('users.urls')), ...
-
To run this project I am using a menu page:
{% block content %} Your are logged in as: <p></p> <a href="/users/logout">Logout</a> <p></p> <a href="/users/login">Login</a> <p></p> <a href="/users/change-password">Change password</a> {% endblock %}