diff options
author | Prabhu Ramachandran | 2011-11-08 02:10:03 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-08 02:10:03 +0530 |
commit | ec738bb79132a581a1778187a55632983d1fcb53 (patch) | |
tree | d9491ee26367bb504143f5b5bd3a392160c2dbbb /manage.py | |
download | online_test-ec738bb79132a581a1778187a55632983d1fcb53.tar.gz online_test-ec738bb79132a581a1778187a55632983d1fcb53.tar.bz2 online_test-ec738bb79132a581a1778187a55632983d1fcb53.zip |
NEW: First cut of exam app.
This application allows us to create questions via the admin interface.
The questions are proper programming questions and one enters test cases
for each question. The user logs in and submits the answer which is
checked. The app is rather simple now but does work.
Diffstat (limited to 'manage.py')
-rwxr-xr-x | manage.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manage.py b/manage.py new file mode 100755 index 0000000..3e4eedc --- /dev/null +++ b/manage.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python +from django.core.management import execute_manager +import imp +try: + imp.find_module('settings') # Assumed to be in the same directory. +except ImportError: + import sys + sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__) + sys.exit(1) + +import settings + +if __name__ == "__main__": + execute_manager(settings) |