#encoding:utf-8 """ Django settings for val project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'tg-^43^pbag4(f=1($v%2=pjn70$!$9!rgfmwgucq36cy2au%(' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'valesapp' ) MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', #'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) ROOT_URLCONF = 'val.urls' WSGI_APPLICATION = 'val.wsgi.application' # Database # https://docs.djangoproject.com/en/1.7/ref/settings/#databases #DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.sqlite3', # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), # } #} #DATABASES = { # 'default': { # 'ENGINE': 'mysql.connector.django', # 'NAME': 'vales', # 'USER': 'root', # 'PASSWORD': '', # 'HOST': 'localhost', # 'PORT': '3306', # } #} DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'vales', 'USER': 'Generico', 'PASSWORD': '93n3r1c0', 'HOST': 'bases.tabasco.gob.mx', 'PORT': '5432', } } # Internationalization # https://docs.djangoproject.com/en/1.7/topics/i18n/ LANGUAGE_CODE = 'es-MX' TIME_ZONE = 'America/Mexico_City' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.7/howto/static-files/ STATIC_URL = '/static/' TEMPLATE_DIRS = ( '/valesapp/templates', # Cambiar esto al directorio que corresponda. ) LOGIN_REDIRECT_URL = '/valesapp/' DATE_FORMAT = 'd-m-Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = 'd-m-Y H:i' YEAR_MONTH_FORMAT = 'F Y' MONTH_DAY_FORMAT = 'F j' SHORT_DATE_FORMAT = 'd/m/Y' SHORT_DATETIME_FORMAT = 'd/m/Y P' FIRST_DAY_OF_WEEK = 1 # BUT here use the Python strftime format syntax, # LIST: http://docs.python.org/library/datetime.html#strftime-strptime-behavior DATE_INPUT_FORMATS = ( '%d-%m-%Y', # '21-03-2014' ) TIME_INPUT_FORMATS = ( '%H:%M:%S', # '17:59:59' '%H:%M', # '17:59' ) DATETIME_INPUT_FORMATS = ( '%d-%m-%Y %H:%M', # '21-03-2014 17:59' )