-
Notifications
You must be signed in to change notification settings - Fork 304
Managing the Django server
Dylan Barth edited this page May 16, 2014
·
1 revision
From the command prompt, in your ka-lite/kalite directory, if you run python manage.py
, you will see a list of management commands that give you some control over your app.
From the command prompt, in your ka-lite/kalite directory, run python manage.py [command]
,
Here, we list out ALL of the available commands in three sets:
- KA Lite-related commands that we intend you to use
- KA Lite-related commands that we do not intend for you to use
- KA Lite-unrelated commands
-
[kalite] update - update your version of KA Lite. Must be online or provide a zip file. (v0.9.4+) zip_kalite - package your version of KA Lite into a zip file, to share with your friends! Includes local_settings.py, but no zone information nor data.
-
[main]
- apacheconfig - for configuring KA Lite to run under apache (by default, configured to run under a Python-based web server)
- cache - manipulate the cache
- subtitledownload - force downloading and installation of specified subtitles data (v0.9.4+)
- videoscan - rescan the hard drive and database, to synchronize available video information.
-
[securesync]
- changelocalpassword - reset the password for a facility user (student, teacher account) e.g. changelocalpassword username
- retrypurgatory - run only if you find errors in syncing
- syncmodels - force models to synchronize immediately (online access required)
-
[auth]
- changepassword - reset the password for an admin account (not teacher, nor student)
- createsuperuser - create a new admin account (not teacher, nor student)
-
[django]
- dumpdata - save your local data to a backup (JSON format)
- loaddata - load your local data from a backup (JSON format)
- validate - validate your basic server installation
-
[south]
- migrate - run in case your
-
[coachreports]
- generatefakedata - generate exercise data for fake users
- generaterealdata - generate exercise, video, and user login data for fake users
-
[django_cherrypy_wsgiserver]
- runcherrypyserver - runs the python-based web server (run via start.sh / start.bat instead)
-
[main]
- initdconfig -
- khanload - download new topic data from Khan Academy. WARNING: may fail, and may destroy necessary KA Lite data!
- videodownload - force downloading of videos selected from "update" UI
-
[securesync]
- generatekeys -
- initdevice - run once, during installation.