Switch to unified view

a b/OSSEval/OSSEval/settings.py
1
"""
2
Django settings for OSSEval project.
3
4
For more information on this file, see
5
https://docs.djangoproject.com/en/1.6/topics/settings/
6
7
For the full list of settings and their values, see
8
https://docs.djangoproject.com/en/1.6/ref/settings/
9
"""
10
11
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
12
import os
13
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
14
15
16
# Quick-start development settings - unsuitable for production
17
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
18
19
# SECURITY WARNING: keep the secret key used in production secret!
20
SECRET_KEY = '(1zyf9fnb5qhb%c0xbgi+aq85qpw*ibm261k1tu**0%x7=i!n+'
21
22
# SECURITY WARNING: don't run with debug turned on in production!
23
DEBUG = True
24
25
TEMPLATE_DEBUG = True
26
27
ALLOWED_HOSTS = []
28
29
30
# Application definition
31
32
INSTALLED_APPS = (
33
    'django.contrib.admin',
34
    'django.contrib.auth',
35
    'django.contrib.contenttypes',
36
    'django.contrib.sessions',
37
    'django.contrib.messages',
38
    'django.contrib.staticfiles',
39
    'analysis',
40
    'methodology',
41
    'OSSSearch',
42
    'report',
43
    'entity',
44
    'south',
45
)
46
47
MIDDLEWARE_CLASSES = (
48
    'django.contrib.sessions.middleware.SessionMiddleware',
49
    'django.middleware.common.CommonMiddleware',
50
    'django.middleware.csrf.CsrfViewMiddleware',
51
    'django.contrib.auth.middleware.AuthenticationMiddleware',
52
    'django.contrib.messages.middleware.MessageMiddleware',
53
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
54
)
55
56
ROOT_URLCONF = 'OSSEval.urls'
57
58
WSGI_APPLICATION = 'OSSEval.wsgi.application'
59
60
61
# Database
62
# https://docs.djangoproject.com/en/1.6/ref/settings/#databases
63
64
DATABASES = {
65
    'default': {
66
        'ENGINE': 'django.db.backends.mysql',
67
        'NAME': 'osseval',
68
        'USER': 'osseval',
69
        'PASSWORD': 'osseval',
70
        'HOST': '127.0.0.1',                      # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
71
        'PORT': '3306',                      # Set to empty string for default.
72
    }
73
}
74
75
# Internationalization
76
# https://docs.djangoproject.com/en/1.6/topics/i18n/
77
78
LANGUAGE_CODE = 'en-gb'
79
80
TIME_ZONE = 'UTC'
81
82
USE_I18N = True
83
84
USE_L10N = True
85
86
USE_TZ = True
87
88
89
# Static files for apps (CSS, JavaScript, Images)
90
# https://docs.djangoproject.com/en/1.6/howto/static-files/
91
STATIC_URL = '/static/'
92
93
TEMPLATE_DIRS = (
94
    "/media/discoc/Dati/Lavoro/PROSE/Lavoro/OSSEval/OSSEval/templates"
95
)
96
97
STATICFILES_DIRS = (
98
    os.path.join(BASE_DIR, "static"),
99
)
100
101
102
103
# List of callables that know how to import templates from various sources.
104
TEMPLATE_LOADERS = (
105
    'django.template.loaders.filesystem.Loader',
106
    'django.template.loaders.app_directories.Loader',
107
#     'django.template.loaders.eggs.Loader',
108
)
109