diff --git a/webnotes/__init__.py b/webnotes/__init__.py index c2d38438b9..a1af5d690a 100644 --- a/webnotes/__init__.py +++ b/webnotes/__init__.py @@ -635,4 +635,3 @@ def validate_versions(): if not spec.match(framework_version): raise Exception, "Framework version out of sync" -validate_versions() diff --git a/webnotes/app.py b/webnotes/app.py index 1c1cc30d66..a6de33b0d1 100644 --- a/webnotes/app.py +++ b/webnotes/app.py @@ -61,6 +61,7 @@ application = StaticDataMiddleware(application, { def serve(port=8000, profile=False): + webnotes.validate_versions() global application from werkzeug.serving import run_simple if profile: diff --git a/webnotes/build.py b/webnotes/build.py index e997ed4891..72837522d1 100644 --- a/webnotes/build.py +++ b/webnotes/build.py @@ -15,6 +15,7 @@ from cssmin import cssmin def bundle(no_compress, cms_make=True): """concat / minify js files""" # build js files + webnotes.validate_versions() check_public() check_lang() bundle = Bundle()