source: ecoalba/sicpsur/sicpsur/settings.py @ 3e0e141

Last change on this file since 3e0e141 was 3e0e141, checked in by Erwin Paredes <eparedes@…>, 8 years ago

Se deja de usar la opcion gdstorage

  • Property mode set to 100644
File size: 3.8 KB
Line 
1"""
2Django settings for sicpsur project.
3
4Generated by 'django-admin startproject' using Django 1.9.2.
5
6For more information on this file, see
7https://docs.djangoproject.com/en/1.9/topics/settings/
8
9For the full list of settings and their values, see
10https://docs.djangoproject.com/en/1.9/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.9/howto/deployment/checklist/
21
22# SECURITY WARNING: keep the secret key used in production secret!
23SECRET_KEY = 'qixoasqcykt(*#@e4%mi9yek6_cypk*#xa@bgsldp+ole5#u16'
24
25# SECURITY WARNING: don't run with debug turned on in production!
26DEBUG = True
27
28ALLOWED_HOSTS = []
29
30
31# Application definition
32
33INSTALLED_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    'autenticar',
41    #'gdstorage',
42    'cargadatos',
43    'matriz',
44    'mensajes',
45   
46]
47
48#GOOGLE_DRIVE_STORAGE_JSON_KEY_FILE = BASE_DIR + '/almacen-43a46d675f2f.json'
49#GOOGLE_DRIVE_STORAGE_SERVICE_EMAIL = 'eparedes@almacen-1369.iam.gserviceaccount.com'
50
51
52MIDDLEWARE_CLASSES = [
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.auth.middleware.SessionAuthenticationMiddleware',
59    'django.contrib.messages.middleware.MessageMiddleware',
60    'django.middleware.clickjacking.XFrameOptionsMiddleware',
61]
62
63ROOT_URLCONF = 'sicpsur.urls'
64
65TEMPLATES = [
66    {
67        'BACKEND': 'django.template.backends.django.DjangoTemplates',
68        'DIRS': ['/home/eparedes/sicpsur/templates','/home/eparedes/sicpsur/templates/autenticar'],
69        'APP_DIRS': True,
70        'OPTIONS': {
71            'context_processors': [
72                'django.template.context_processors.debug',
73                'django.template.context_processors.request',
74                'django.contrib.auth.context_processors.auth',
75                'django.contrib.messages.context_processors.messages',
76            ],
77        },
78    },
79]
80
81WSGI_APPLICATION = 'sicpsur.wsgi.application'
82
83
84# Database
85# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
86
87DATABASES = {
88    'default': {
89        'ENGINE': 'django.db.backends.postgresql',
90        'NAME': 'sicpsur',
91        'USER': 'adminsicpsur',
92        'PASSWORD': '1qa2ws3ed',
93        'HOST': '127.0.0.1',
94        'PORT': '5432',
95
96
97#        'ENGINE': 'django.db.backends.sqlite3',
98#        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
99    }
100}
101
102
103# Password validation
104# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators
105
106AUTH_PASSWORD_VALIDATORS = [
107    {
108        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
109    },
110    {
111        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
112    },
113    {
114        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
115    },
116    {
117        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
118    },
119]
120
121
122# Internationalization
123# https://docs.djangoproject.com/en/1.9/topics/i18n/
124
125#LANGUAGE_CODE = 'en-us'
126LANGUAGE_CODE = 'es-ve'
127
128TIME_ZONE = 'UTC'
129
130USE_I18N = True
131
132USE_L10N = True
133
134USE_TZ = True
135
136
137# Static files (CSS, JavaScript, Images)
138# https://docs.djangoproject.com/en/1.9/howto/static-files/
139
140STATIC_URL = '/static/'
141
142STATIC_ROOT = '/static/'
143
144STATICFILES_DIRS = (
145    os.path.join(BASE_DIR, "static"),
146    '/var/www/static/',
147)
148
Note: See TracBrowser for help on using the repository browser.