adding documentation for dump_json manage command
authorCharles Holbrow <charlesholbrow@gmail.com>
Thu, 7 Feb 2013 21:19:24 +0000 (16:19 -0500)
committerCharles Holbrow <charlesholbrow@gmail.com>
Thu, 7 Feb 2013 21:19:24 +0000 (16:19 -0500)
karmaworld/apps/courses/management/commands/dump_json.py
karmaworld/apps/courses/management/commands/import_json.py

index c46f6791602a6ff26bc964fd25a4ed2cd596f27d..75efcb61760ff9a4bb6f2154283f03cc15935c3b 100644 (file)
@@ -82,6 +82,7 @@ def course_to_dict(course):
 
 class Command(BaseCommand):
 
+       help = 'Dump the database to three json files. The json format is expected by the import_json management command.'
        month = datetime.datetime.now().month
        day = datetime.datetime.now().day
        year = datetime.datetime.now().year
index 7a970c2db24579dda5dee4935e5cde2ec83af416..501f1a415d9a4fc257fc58d39b0bf01d66218b4d 100644 (file)
@@ -11,7 +11,8 @@ from karmaworld.apps.courses.models import *
 
 class Command(BaseCommand):
     args = 'all [clean]'
-    help = """Import data to the database from .json. 
+    help = """Import data to the database from .json. Expect the json in the 
+        format exported by the dump_json manage command.
         The 'all' argument is required. When the 'all' argument is used, 
         import_json expects the following files:
             - schools.json