diff options
author | ankitjavalkar | 2015-06-15 18:23:29 +0530 |
---|---|---|
committer | ankitjavalkar | 2015-08-03 15:22:07 +0530 |
commit | 516284689fa9daa9b4487e4c5683997111df6049 (patch) | |
tree | b4a6a87fc356fa5f6c08d1712174bc05773cc5a0 /testapp/templates | |
parent | 0225aad1492600ed53504b0986fd13da24c28ae9 (diff) | |
download | online_test-516284689fa9daa9b4487e4c5683997111df6049.tar.gz online_test-516284689fa9daa9b4487e4c5683997111df6049.tar.bz2 online_test-516284689fa9daa9b4487e4c5683997111df6049.zip |
Modify installer script and cleanup;
- Add __init__.py
- Add templates dir to MANIFEST
- Add persistent store for project details
- Modify initial_data.json
- Fix imports
Conflicts:
testapp/templates/demo_settings.py
Diffstat (limited to 'testapp/templates')
-rw-r--r-- | testapp/templates/demo_settings.py | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/testapp/templates/demo_settings.py b/testapp/templates/demo_settings.py new file mode 100644 index 0000000..d731dc2 --- /dev/null +++ b/testapp/templates/demo_settings.py @@ -0,0 +1,87 @@ +""" +Django settings for my_demo project. + +For more information on this file, see +https://docs.djangoproject.com/en/1.6/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.6/ref/settings/ +""" + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +import os +BASE_DIR = os.path.dirname(os.path.dirname(__file__)) + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'TH!S_!S_@_DUMMY_K3Y' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +TEMPLATE_DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = ( + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'testapp.exam', + 'taggit', + 'taggit_autocomplete_modified', +) + +MIDDLEWARE_CLASSES = ( + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +) + +ROOT_URLCONF = '{{ root_urlconf }}' + +WSGI_APPLICATION = '{{ project_name }}.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.6/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + } +} + +# Internationalization +# https://docs.djangoproject.com/en/1.6/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = False + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/1.6/howto/static-files/ + +STATIC_URL = '/static/' + +AUTH_PROFILE_MODULE = 'exam.Profile' |