make edxapp work when not run from a git repo

This commit is contained in:
Jason Bau
2013-11-08 12:44:11 -08:00
parent 944c433699
commit 2627db13a0

View File

@@ -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