bioweb  0.09.92
C++/Python(django)/JavaScript(angularJS) framework
settings.py
1 ## @file web/settings.py
2 # @brief Django settings file
3 
4 """
5 Django settings file
6 """
7 
8 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
9 
10 import os
11 BASE_DIR = os.path.dirname(os.path.dirname(__file__))
12 
13 # SECURITY WARNING: keep the secret key used in production secret!
14 SECRET_KEY = 'kw$@=pa)zdjmjx^6z65-+x3c5j+^ydyj1!t!@_q+z2qw06&1*i'
15 
16 # SECURITY WARNING: don't run with debug turned on in production!
17 DEBUG = True
18 TEMPLATE_DEBUG = True
19 
20 ALLOWED_HOSTS = []
21 
22 # Application definition
23 INSTALLED_APPS = (
24  'django.contrib.auth',
25  'django.contrib.contenttypes',
26  'django.contrib.sessions',
27  'django.contrib.messages',
28 # 'django.contrib.staticfiles',
29  'version',
30  'current',
31  'calcpy'
32 )
33 
34 MIDDLEWARE_CLASSES = (
35  'django.contrib.sessions.middleware.SessionMiddleware',
36  'django.middleware.common.CommonMiddleware',
37  'django.middleware.csrf.CsrfViewMiddleware',
38  'django.contrib.auth.middleware.AuthenticationMiddleware',
39  'django.contrib.messages.middleware.MessageMiddleware',
40  'django.middleware.clickjacking.XFrameOptionsMiddleware',
41 )
42 
43 ROOT_URLCONF = 'config.urls'
44 
45 WSGI_APPLICATION = 'wsgi.application'
46 
47 import version.models
48 
49 DATABASES = {
50  'default': {
51  'ENGINE': 'django.db.backends.postgresql_psycopg2',
52  'NAME': version.models.getDBName(),
53  'HOST': '',
54  'PORT': '5432',
55  'USER': version.models.getDBUser(),
56  'PASSWORD': version.models.getDBPassword()
57  }
58 }
59 
60 # Internationalization
61 # https://docs.djangoproject.com/en/1.6/topics/i18n/
62 
63 LANGUAGE_CODE = 'en-us'
64 
65 TIME_ZONE = 'UTC'
66 
67 USE_I18N = True
68 
69 USE_L10N = True
70 
71 USE_TZ = True
72 
73 
74 # Static files (CSS, JavaScript, Images)
75 # https://docs.djangoproject.com/en/1.6/howto/static-files/
76