This Django app overrides several Geonode's default templates to provide customized redirection to users.
It is released under GNU-GPL licence version 3.
Detailed documentation is in the "docs" directory.
Here below are listed the instruction for install:
-
Add "customlogin" to your INSTALLED_APPS by adding the following lines at the end of
./geonode/settings.py
file:# Addition of customlogin app INSTALLED_APPS += ('geonode.customlogin',) MIDDLEWARE += ('geonode.customlogin.middleware.CheckLoginMiddleware',)
-
Include the customlogin URLconf in
./geonode/urls.py
file like this:if "geonode.customlogin" in settings.INSTALLED_APPS: urlpatterns += [ # '', url(r'^customlogin/', include('geonode.customlogin.urls')), ]
-
If you are using
docker
, rebuild geonode and restart services (this may stop the web site for a while):docker-compose down && docker-compose build && docker-compose up -d
-
Once services have fully restarted, authneticated users with admins permissions can reach the endpoints under
/customlogin
to reach a full page login form.
You can find an example of geonode setup with customlogin app in this repo: django-geonode-dev.