diff options
author | prathamesh | 2014-12-03 17:52:45 +0530 |
---|---|---|
committer | prathamesh | 2014-12-03 17:52:45 +0530 |
commit | a95aa2c17662269bcc8525e8bb3fb3ab64fa69df (patch) | |
tree | 6615439bef032d0d28bb11d2ab824ad18416e9e6 /fossee_project/settings.py | |
parent | f7b2912723053a46023712c9dd8bc7307d6cf9fa (diff) | |
download | certificate-generator-a95aa2c17662269bcc8525e8bb3fb3ab64fa69df.tar.gz certificate-generator-a95aa2c17662269bcc8525e8bb3fb3ab64fa69df.tar.bz2 certificate-generator-a95aa2c17662269bcc8525e8bb3fb3ab64fa69df.zip |
Auto-generation of certificates
Currently, for scilab conference.
Diffstat (limited to 'fossee_project/settings.py')
-rw-r--r-- | fossee_project/settings.py | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/fossee_project/settings.py b/fossee_project/settings.py new file mode 100644 index 0000000..d5a2576 --- /dev/null +++ b/fossee_project/settings.py @@ -0,0 +1,96 @@ +""" +Django settings for fossee_project 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/ +""" +from local.py import DBNAME, DBUSER, DBPASS +from os.path import * +PROJDIR = abspath(dirname(__file__)) +# 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 = 'j_4@2e^e*byl1c2@^=^)bo75r5h$l01aa8*)ladv7+8druq6f*' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +TEMPLATE_DEBUG = True + +ALLOWED_HOSTS = [] + +TEMPLATE_DIRS = ( + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. + join(PROJDIR, '../certificate/templates'), +) + +# Application definition + +INSTALLED_APPS = ( + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + #'south', + 'certificate', + 'csvimport.app.CSVImportConf', +) + +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 = 'fossee_project.urls' + +WSGI_APPLICATION = 'fossee_project.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.6/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.mysql', + 'NAME' : DBNAME, + #'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + 'USER' : DBUSER, + 'PASSWORD': DBPASS, + } +} + +# 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 = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/1.6/howto/static-files/ + +STATIC_URL = '/static/' |