source: firmaeventos/FirmaEventos/default.settings.py @ 9b766e6

Last change on this file since 9b766e6 was 9b766e6, checked in by rudmanmrrod <rudman22@…>, 7 years ago

Removidas dependencias innecesarias

  • Property mode set to 100644
File size: 4.0 KB
Line 
1"""
2Django settings for FirmaEventos project.
3
4Generated by 'django-admin startproject' using Django 1.10.
5
6For more information on this file, see
7https://docs.djangoproject.com/en/1.10/topics/settings/
8
9For the full list of settings and their values, see
10https://docs.djangoproject.com/en/1.10/ref/settings/
11"""
12
13import os
14
15# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
17
18
19# Quick-start development settings - unsuitable for production
20# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
21
22# SECURITY WARNING: keep the secret key used in production secret!
23SECRET_KEY = 'n02)^6vfqa)@mi!u519=buiec223iowu4)0b8u5y7lx9vl+hq@'
24
25# SECURITY WARNING: don't run with debug turned on in production!
26DEBUG = True
27
28ALLOWED_HOSTS = []
29
30
31# Application definition
32
33DJANGO_APPS = [
34    'django.contrib.admin',
35    'django.contrib.auth',
36    'django.contrib.contenttypes',
37    'django.contrib.sessions',
38    'django.contrib.messages',
39    'django.contrib.staticfiles',
40    'captcha',
41]
42
43PROJECT_APPS = [
44    'base',
45    'users',
46    'eventos',
47    'participantes',
48]
49
50INSTALLED_APPS = DJANGO_APPS + PROJECT_APPS
51
52MIDDLEWARE = [
53    'django.middleware.security.SecurityMiddleware',
54    'django.contrib.sessions.middleware.SessionMiddleware',
55    'django.middleware.common.CommonMiddleware',
56    'django.middleware.csrf.CsrfViewMiddleware',
57    'django.contrib.auth.middleware.AuthenticationMiddleware',
58    'django.contrib.messages.middleware.MessageMiddleware',
59    'django.middleware.clickjacking.XFrameOptionsMiddleware',
60]
61
62ROOT_URLCONF = 'FirmaEventos.urls'
63
64#  Definir los Templates
65
66
67TEMPLATES = [
68    {
69        'BACKEND': 'django.template.backends.django.DjangoTemplates',
70        'DIRS': [],
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 = 'FirmaEventos.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.postgresql_psycopg2',
92        'NAME': 'firma_eventos',
93        'USER': 'postgres',
94        'PASSWORD': '123456',
95        'HOST': 'localhost',
96        'PORT': '5432',
97        'ATOMIC_REQUESTS': True, # Crea transacciones en cada peticion de la vista
98    }
99}
100
101
102# Password validation
103# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators
104
105AUTH_PASSWORD_VALIDATORS = [
106    {
107        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
108    },
109    {
110        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
111    },
112    {
113        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
114    },
115    {
116        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
117    },
118]
119
120
121# Internationalization
122# https://docs.djangoproject.com/en/1.10/topics/i18n/
123
124LANGUAGE_CODE = 'es-ve'
125
126LOCALE_NAME = 'es'
127
128TIME_ZONE = 'America/Caracas'
129
130USE_I18N = True
131
132USE_L10N = True
133
134USE_TZ = True
135
136MEDIA_ROOT = os.path.join(BASE_DIR, 'sources/')
137MEDIA_URL = '/sources/'
138
139TMP = os.path.join(MEDIA_ROOT, 'tmp')
140
141# Static files (CSS, JavaScript, Images)
142# https://docs.djangoproject.com/en/1.8/howto/static-files/
143
144SOURCES_URL = BASE_DIR + 'sources/'
145STATIC_ROOT = BASE_DIR + 'static/'
146STATIC_URL = '/static/'
147
148# Configuración de los directorios en donde se encuentran los archivos estáticos
149STATICFILES_DIRS = (
150    os.path.join(BASE_DIR, 'static/'),
151    os.path.join(BASE_DIR, 'sources/'),
152)
153
154# Configuración para el logeo de usuarios
155
156LOGIN_URL = "/login"
157
158LOGOUT_URL= "/logout"
159
160
161EMAIL_USE_TLS = True
162
163EMAIL_HOST = 'smtp.gmail.com'
164EMAIL_PORT = 587
165EMAIL_HOST_USER = 'pruebautana@gmail.com'
166EMAIL_HOST_PASSWORD = 'autana2016'
167EMAIL_FROM = EMAIL_HOST_USER
Note: See TracBrowser for help on using the repository browser.