From 6fd04808d5b1bf15a123cdfc7315998ba38a5945 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 1 Jul 2015 07:57:21 +0530 Subject: [PATCH] Don't require login for logout page & minor fixes --- plinth/__main__.py | 2 +- plinth/modules/first_boot/urls.py | 1 + plinth/modules/help/help.py | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/plinth/__main__.py b/plinth/__main__.py index 03eb4f890..03bc8afca 100644 --- a/plinth/__main__.py +++ b/plinth/__main__.py @@ -226,7 +226,7 @@ def configure_django(): SESSION_ENGINE='django.contrib.sessions.backends.file', SESSION_FILE_PATH=sessions_directory, STATIC_URL='/'.join([cfg.server_dir, 'static/']).replace('//', '/'), - STRONGHOLD_PUBLIC_NAMED_URLS=('lib:login',), + STRONGHOLD_PUBLIC_NAMED_URLS=('users:login', 'users:logout'), TEMPLATE_CONTEXT_PROCESSORS=context_processors, USE_X_FORWARDED_HOST=bool(cfg.use_x_forwarded_host)) django.setup() diff --git a/plinth/modules/first_boot/urls.py b/plinth/modules/first_boot/urls.py index 04564f924..44448d721 100644 --- a/plinth/modules/first_boot/urls.py +++ b/plinth/modules/first_boot/urls.py @@ -21,6 +21,7 @@ URLs for the First Boot module from django.conf.urls import patterns, url from stronghold.decorators import public + from .views import State0View diff --git a/plinth/modules/help/help.py b/plinth/modules/help/help.py index 3d0fa1b66..d449820f1 100644 --- a/plinth/modules/help/help.py +++ b/plinth/modules/help/help.py @@ -15,6 +15,10 @@ # along with this program. If not, see . # +""" +Help module for Plinth. +""" + import os from gettext import gettext as _ from django.http import Http404