Commit ecb136e5 by Don Mitchell

Merge pull request #1586 from MITx/feature/cdodge/make-update-templates-django-admin-util

move call to update_templates on service startup into a django-admin com...
parents d0eefc6a f21ff7bb
from xmodule.templates import update_templates
update_templates()
from xmodule.templates import update_templates
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = \
'''Imports and updates the Studio component templates from the code pack and put in the DB'''
def handle(self, *args, **options):
update_templates()
\ No newline at end of file
......@@ -441,6 +441,13 @@ namespace :cms do
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
if ENV['DATA_DIR'] and ENV['COURSE_DIR']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment