This is a django installation with significant amounts of javascript that drives the online card game.
To run this you'll need to create a settings.py file in the document root directory that your deploy this to. Reference Django's documentation (http://docs.djangoproject.com/en/dev/howto/deployment/) for info on how to deploy django.
A sample settings.py file is below:
import os.path
DEBUG = True TEMPLATE_DEBUG = DEBUG
ADMINS = (
)
MANAGERS = ADMINS
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': '', } }
TIME_ZONE = 'America/Chicago'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
USE_L10N = True
MEDIA_ROOT = ''
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'
SECRET_KEY = 'mykey'
TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader',
)
MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', )
ROOT_URLCONF = 'mturk.urls'
import os CURRENT_DIR = os.path.dirname(file)
TEMPLATE_DIRS = (
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
os.path.join(CURRENT_DIR, 'templates')
)
INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages',
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
'django.contrib.admindocs',
'signup',
'surveys',
'mturkprofile',
'game',
'instructions',
)
AUTH_PROFILE_MODULE = 'mturkprofile.MturkProfile' GAME_MEDIA_URL = 'mturk/static/' LOGIN_REDIRECT_URL = '/surveys'