Skip to content
Snippets Groups Projects
Commit ae5d3cbc authored by Calen Pennington's avatar Calen Pennington
Browse files

Add admin command to flush the staticfiles cache

parent 8592db92
No related merge requests found
###
### Script for importing courseware from XML format
###
from django.core.management.base import NoArgsCommand
class Command(NoArgsCommand):
help = \
'''Import the specified data directory into the default ModuleStore'''
def handle_noargs(self):
staticfiles_cache = get_cache('staticfiles')
staticfiles_cache.clear()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment