· 7 years ago · Feb 23, 2018, 08:46 PM
1from .base import *
2
3# Quick-start development settings - unsuitable for production
4# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
5
6# SECURITY WARNING: keep the secret key used in production secret!
7SECRET_KEY = 't6c87d*8j094a5$+*f#&!b^3#z#3yn6b^0+d2-2x%iymf-zu8('
8
9# SECURITY WARNING: don't run with debug turned on in production!
10DEBUG = True
11
12ALLOWED_HOSTS = []
13
14
15# Database
16# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
17"""
18
19"""
20DATABASES = {
21 'default': {
22 'ENGINE': 'sql_server.pyodbc',
23 'HOST': '172.18.1.41',
24 'NAME': 'CPV2017_DIGITACION_ASIGNACION',
25 'USER': 'jramirez',
26 'PASSWORD': 'rjM3NLF8',
27 'PORT': '1433',
28 'OPTIONS': {
29 'driver': 'SQL Server',
30 },
31 },
32
33 'logistica': {
34 'ENGINE': 'sql_server.pyodbc',
35 'HOST': '192.168.203.160',
36 'NAME': 'CPV2017_BDLOGISTICA',
37 'USER': 'jramirez',
38 'PASSWORD': 'rjM3NLF8',
39 'PORT': '1433',
40 'OPTIONS': {
41 'driver': 'SQL Server',
42 },
43 },
44
45 'sessions': {
46 'ENGINE': 'django.db.backends.sqlite3',
47 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
48 }
49}
50
51
52DATABASE_ROUTERS = ['core.dbrouter.DefaultRouter', 'core.dbrouter.LogisticaRouter', 'core.dbrouter.SessionsRouter']
53
54URL_SERVER = 'http://192.168.34.14:8007/'
55URL_SEGURIDAD = 'http://intranet.inei.gob.pe/'
56URL_SEGURIDAD_MENU = URL_SEGURIDAD + 'services/menubyrol_proyectosistema/{}/{}/?key={}'
57URL_USERDATASESSION = URL_SEGURIDAD + 'services/getAuthData/?key={}'
58
59SISTEMA_CODE = {
60 'digcedu': {"id": 1, "titulo": "DIGITACIÓN CEDULAS", "color": "purple-400"},
61}
62
63MENU_PARENT_EXCLUDE = (
64 'digcedu',
65)