From f4edfdedc6057dc8e06feb00edd0e812e380a90e Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 31 Aug 2014 13:17:37 +0530 Subject: [PATCH] Fix first boot middleware for new module structure --- plinth/__main__.py | 2 +- plinth/modules/first_boot/middleware.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/__main__.py b/plinth/__main__.py index b418b2b26..e62508f7f 100644 --- a/plinth/__main__.py +++ b/plinth/__main__.py @@ -189,7 +189,7 @@ def configure_django(): 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', - 'modules.first_boot.middleware.FirstBootMiddleware', + 'plinth.modules.first_boot.middleware.FirstBootMiddleware', ), ROOT_URLCONF='plinth.urls', SESSION_ENGINE='django.contrib.sessions.backends.file', diff --git a/plinth/modules/first_boot/middleware.py b/plinth/modules/first_boot/middleware.py index 17ae7c734..ee7d7f5db 100644 --- a/plinth/modules/first_boot/middleware.py +++ b/plinth/modules/first_boot/middleware.py @@ -24,7 +24,7 @@ from django.core.urlresolvers import reverse from django.http.response import HttpResponseRedirect import logging -import cfg +from plinth import cfg from withsqlite.withsqlite import sqlite_db