move call to update_templates on service startup into a django-admin command

This commit is contained in:
Chris Dodge
2013-03-04 08:06:58 -05:00
parent f543ad4932
commit 6bacbafb6f
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1 @@
from xmodule.templates import update_templates
update_templates()

View File

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