mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
Don't require login for logout page & minor fixes
This commit is contained in:
parent
9321aa4952
commit
6fd04808d5
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
@ -15,6 +15,10 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
"""
|
||||
Help module for Plinth.
|
||||
"""
|
||||
|
||||
import os
|
||||
from gettext import gettext as _
|
||||
from django.http import Http404
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user