forked from PuzzleDev/django-jom
-
Notifications
You must be signed in to change notification settings - Fork 1
Exporting Jom files
msama edited this page Aug 3, 2012
·
2 revisions
The Jom application provides two management commands to handle jom javascript file creation:
-
export_jom
which created all the Jom Javascript files -
clean_jom
which cleans all the Jom Javascript files
All the Jom Javascript files can be extracted and/or overriden automatically by running ./python manage.py export_jom
.
The export_jom command look in all the installed django application folders for a module called joms.py, import all the descriptors and generates all the Jom models.
Existing files will be overridden automatically.
Notice that for the exportation process to work properly all the JomDescriptor subclasses must be registered to the default factory.
Previously created Jom Javascript files can be deleted by running ./python manage.py clean_jom
. This is a maintenance command meant to be used to delete obsolete file which are no longer used.