From 6bacbafb6f7bbb6096f0f97e98f32493d46bc4e8 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Mon, 4 Mar 2013 08:06:58 -0500 Subject: [PATCH] move call to update_templates on service startup into a django-admin command --- cms/djangoapps/contentstore/__init__.py | 2 -- rakefile | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/__init__.py b/cms/djangoapps/contentstore/__init__.py index e8dccbbf60..8b13789179 100644 --- a/cms/djangoapps/contentstore/__init__.py +++ b/cms/djangoapps/contentstore/__init__.py @@ -1,3 +1 @@ -from xmodule.templates import update_templates -update_templates() diff --git a/rakefile b/rakefile index 15692d0d99..f62e75507c 100644 --- a/rakefile +++ b/rakefile @@ -440,6 +440,13 @@ namespace :cms do end end +namespace :cms do + desc "Imports all the templates from the code pack" + task :update_templates do + sh(django_admin(:cms, :dev, :update_templates)) + end +end + namespace :cms do desc "Import course data within the given DATA_DIR variable" task :xlint do