make edxapp work when not run from a git repo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user