source: seguimiento_proyectos/sepai/sepai/settings.py @ 19d9683

desarrollo
Last change on this file since 19d9683 was 19d9683, checked in by lhernandez <lhernandez@…>, 7 años ago

Se hubico el static en la raiz del proyecto, para tener mejor control de la ruta al igual para el directorio sources, preparado para optimizar la gestion de usuario para la actualizacion de perfil

  • Propiedad mode establecida a 100755
File size: 3.4 KB
Línea 
1"""
2Django settings for sepai project.
3
4Generated by 'django-admin startproject' using Django 1.8.3.
5
6For more information on this file, see
7https://docs.djangoproject.com/en/1.8/topics/settings/
8
9For the full list of settings and their values, see
10https://docs.djangoproject.com/en/1.8/ref/settings/
11"""
12
13# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
14import os
15BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
16
17TEMPLATES_SEPAI = BASE_DIR + '/templates'
18
19# Quick-start development settings - unsuitable for production
20# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
21
22# SECURITY WARNING: keep the secret key used in production secret!
23SECRET_KEY = 'xllp09h@mgwpe(hbh20)@j1koxu%2tw^*!x_za3y1kjkx2!98j'
24
25# SECURITY WARNING: don't run with debug turned on in production!
26DEBUG = True
27
28SEPAI_SSL_VERIFY = False
29
30ALLOWED_HOSTS = []
31
32
33# Application definition
34
35INSTALLED_APPS = (
36    'dal',
37    'dal_select2',
38    'django.contrib.admin',
39    'django.contrib.auth',
40    'django.contrib.contenttypes',
41    'django.contrib.sessions',
42    'django.contrib.messages',
43    'django.contrib.staticfiles',
44    'django_bootstrap_breadcrumbs',
45    'django_extensions',
46    'adaptor',
47    'multi_form_view',
48    'captcha',
49    'utils',
50    'users',
51    'proyectos',
52)
53
54MIDDLEWARE_CLASSES = (
55    'django.contrib.sessions.middleware.SessionMiddleware',
56    'django.middleware.common.CommonMiddleware',
57    'django.middleware.csrf.CsrfViewMiddleware',
58    'django.contrib.auth.middleware.AuthenticationMiddleware',
59    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
60    'django.contrib.messages.middleware.MessageMiddleware',
61    'django.middleware.clickjacking.XFrameOptionsMiddleware',
62    'django.middleware.security.SecurityMiddleware',
63)
64
65ROOT_URLCONF = 'sepai.urls'
66
67TEMPLATES = [
68    {
69        'BACKEND': 'django.template.backends.django.DjangoTemplates',
70        'DIRS': [TEMPLATES_SEPAI, ],
71        'APP_DIRS': True,
72        'OPTIONS': {
73            'context_processors': [
74                'django.template.context_processors.debug',
75                'django.template.context_processors.request',
76                'django.contrib.auth.context_processors.auth',
77                'django.contrib.messages.context_processors.messages',
78            ],
79        },
80    },
81]
82
83WSGI_APPLICATION = 'sepai.wsgi.application'
84
85
86# Database
87# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
88
89DATABASES = {
90    'default': {
91        'ENGINE': 'django.db.backends.sqlite3',
92        'NAME': os.path.join(BASE_DIR, 'db.sepai.sqlite'),
93    }
94}
95
96
97# Internationalization
98# https://docs.djangoproject.com/en/1.8/topics/i18n/
99
100LANGUAGE_CODE = 'es-ve'
101
102TIME_ZONE = 'UTC'
103
104USE_I18N = True
105
106USE_L10N = True
107
108USE_TZ = True
109
110BASE_URL = ""
111
112
113MEDIA_ROOT = os.path.join(BASE_DIR, 'sources/')
114MEDIA_URL = '/sources/'
115
116# Static files (CSS, JavaScript, Images)
117# https://docs.djangoproject.com/en/1.8/howto/static-files/
118
119SOURCES_URL = BASE_DIR + 'sources/'
120STATIC_ROOT = BASE_DIR + 'static/'
121STATIC_URL = '/static/'
122
123STATICFILES_DIRS = (
124    os.path.join(BASE_DIR, 'static/'),
125    os.path.join(BASE_DIR, 'sources/'),
126)
127
128#FIXTURE_DIRS = (os.path.join(BASE_DIR, 'fixtures'),)
129
130LOGIN_URL = "/"
131
132LOGOUT_URL= "/logout"
133
134EMAIL_USE_TLS = True
135
136EMAIL_HOST = 'smtp.gmail.com'
137EMAIL_PORT = 587
138EMAIL_HOST_USER = 'pruebautana@gmail.com'
139EMAIL_HOST_PASSWORD = 'autana2016'
140EMAIL_FROM = EMAIL_HOST_USER
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.