source: modelado_topicos/django_topic_explorer/settings.py @ fb25bf8

preprocesamientov1.0
Last change on this file since fb25bf8 was fb25bf8, checked in by Jorge Redondo Flames <jredondo@…>, 9 años ago

CSS separated, and added type=button to UI buttons

  • Propiedad mode establecida a 100644
File size: 2.9 KB
Línea 
1"""
2Django settings for django_topic_explorer project.
3
4For more information on this file, see
5https://docs.djangoproject.com/en/1.7/topics/settings/
6
7For the full list of settings and their values, see
8https://docs.djangoproject.com/en/1.7/ref/settings/
9"""
10
11# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
12import os
13BASE_DIR = os.path.dirname(os.path.dirname(__file__))
14
15
16# Quick-start development settings - unsuitable for production
17# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
18
19# SECURITY WARNING: keep the secret key used in production secret!
20SECRET_KEY = '^_uj&#+hs!=q57!%!ao%t#e$^q@8qtxh$3ejf@uh4rnw#igqwu'
21
22# SECURITY WARNING: don't run with debug turned on in production!
23DEBUG = True
24
25TEMPLATE_DEBUG = True
26
27ALLOWED_HOSTS = []
28
29
30# Application definition
31
32INSTALLED_APPS = (
33    'django.contrib.admin',
34    'django.contrib.auth',
35    'django.contrib.contenttypes',
36    'django.contrib.sessions',
37    'django.contrib.messages',
38    'django.contrib.staticfiles',
39    'topic_explorer',
40)
41
42MIDDLEWARE_CLASSES = (
43    'django.contrib.sessions.middleware.SessionMiddleware',
44    'django.middleware.common.CommonMiddleware',
45    'django.middleware.csrf.CsrfViewMiddleware',
46    'django.contrib.auth.middleware.AuthenticationMiddleware',
47    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
48    'django.contrib.messages.middleware.MessageMiddleware',
49    'django.middleware.clickjacking.XFrameOptionsMiddleware',
50)
51
52ROOT_URLCONF = 'django_topic_explorer.urls'
53
54WSGI_APPLICATION = 'django_topic_explorer.wsgi.application'
55
56
57
58# Database
59# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
60
61DATABASES = {
62    'default': {
63        'ENGINE': 'django.db.backends.sqlite3',
64        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
65    }
66}
67
68# Internationalization
69# https://docs.djangoproject.com/en/1.7/topics/i18n/
70
71LANGUAGE_CODE = 'en-ve'
72
73TIME_ZONE = 'UTC'
74
75USE_I18N = True
76
77USE_L10N = True
78
79USE_TZ = True
80
81
82# Static files (CSS, JavaScript, Images)
83# https://docs.djangoproject.com/en/1.7/howto/static-files/
84
85STATIC_URL = '/static/'
86
87STATICFILES_DIRS = (
88            os.path.join(BASE_DIR, '../topic_explorer/static'),
89)
90
91TEMPLATE_DIRS = (
92            os.path.join(BASE_DIR, '../topic_explorer/templates'),
93)
94
95## TOPIC EXPLORER SETTINGS
96TOPIC_EXPLORER_PATH = '/home/jredondo/Proyectos/Analisis_del_Discurso/src/topic-explorer/'
97MODELS_PATH = TOPIC_EXPLORER_PATH + 'demo-data/programapatrio_propuestas_descripcion/../models/'
98CORPUS_FILE = MODELS_PATH + 'programapatrio_propuestas_descripcion-nltk-en-freq5.npz'
99MODEL_PATTERN = TOPIC_EXPLORER_PATH + 'demo-data/ap/../models/programapatrio_propuestas_descripcion-nltk-en-freq5-LDA-K{0}-document-20.npz'
100CONTEXT_TYPE = 'document'
101TOPICS = '10, 20, 30, 40, 50, 60, 70, 80, 90, 100'
102CORPUS_NAME = 'Deafult'
103ICONS = 'link'
104
105CORPUS_LINK = None
106TOPIC_RANGE = None
107DOC_TITTLE_FORMAT = None
108DOC_URL_FORMAT = None
109
110
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.