From 2627db13a0b667dbb73f354266df41ae52d97a7f Mon Sep 17 00:00:00 2001 From: Jason Bau Date: Fri, 8 Nov 2013 12:44:11 -0800 Subject: [PATCH 1/2] make edxapp work when not run from a git repo --- common/djangoapps/mitxmako/middleware.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/djangoapps/mitxmako/middleware.py b/common/djangoapps/mitxmako/middleware.py index c719c8c30d..b5060fb27c 100644 --- a/common/djangoapps/mitxmako/middleware.py +++ b/common/djangoapps/mitxmako/middleware.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from dealer.git import git +from dealer.auto import auto from django.template import RequestContext requestcontext = None @@ -24,4 +24,4 @@ class MakoMiddleware(object): requestcontext = RequestContext(request) requestcontext['is_secure'] = request.is_secure() requestcontext['site'] = request.get_host() - requestcontext['REVISION'] = git.revision + requestcontext['REVISION'] = auto.revision From bc32899c1b9d72dbc2ada2b24447cde5ca451d8c Mon Sep 17 00:00:00 2001 From: Jason Bau Date: Fri, 8 Nov 2013 15:16:26 -0800 Subject: [PATCH 2/2] actually, just remove the revision --- common/djangoapps/mitxmako/middleware.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/djangoapps/mitxmako/middleware.py b/common/djangoapps/mitxmako/middleware.py index b5060fb27c..778322c122 100644 --- a/common/djangoapps/mitxmako/middleware.py +++ b/common/djangoapps/mitxmako/middleware.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from dealer.auto import auto from django.template import RequestContext requestcontext = None @@ -24,4 +23,3 @@ class MakoMiddleware(object): requestcontext = RequestContext(request) requestcontext['is_secure'] = request.is_secure() requestcontext['site'] = request.get_host() - requestcontext['REVISION'] = auto.revision