source: modelado_topicos/django_topic_explorer/settings.py @ a1c3fea

preprocesamientov1.0
Last change on this file since a1c3fea was a1c3fea, checked in by rboet <rboet@…>, 9 años ago

se agregó texto original sin acentos y función mejorada para ver los topicos

  • Propiedad mode establecida a 100755
File size: 3.3 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
13
14
15BASE_DIR = os.path.dirname(os.path.dirname(__file__))
16
17TEMPLATE_PATH = os.path.join(BASE_DIR, 'templates')
18
19
20# Quick-start development settings - unsuitable for production
21# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
22
23# SECURITY WARNING: keep the secret key used in production secret!
24SECRET_KEY = '^_uj&#+hs!=q57!%!ao%t#e$^q@8qtxh$3ejf@uh4rnw#igqwu'
25
26# SECURITY WARNING: don't run with debug turned on in production!
27DEBUG = True
28
29TEMPLATE_DEBUG = True
30
31ALLOWED_HOSTS = []
32
33
34# Application definition
35
36INSTALLED_APPS = (
37    'django.contrib.admin',
38    'django.contrib.auth',
39    'django.contrib.contenttypes',
40    'django.contrib.sessions',
41    'django.contrib.messages',
42    'django.contrib.staticfiles',
43    'topic_explorer',
44    'see_topic',
45)
46
47MIDDLEWARE_CLASSES = (
48    'django.contrib.sessions.middleware.SessionMiddleware',
49    'django.middleware.common.CommonMiddleware',
50    'django.middleware.csrf.CsrfViewMiddleware',
51    'django.contrib.auth.middleware.AuthenticationMiddleware',
52    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
53    'django.contrib.messages.middleware.MessageMiddleware',
54    'django.middleware.clickjacking.XFrameOptionsMiddleware',
55)
56
57ROOT_URLCONF = 'django_topic_explorer.urls'
58
59WSGI_APPLICATION = 'django_topic_explorer.wsgi.application'
60
61
62
63# Database
64# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
65
66DATABASES = {
67    'default': {
68        'ENGINE': 'django.db.backends.sqlite3',
69        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
70    }
71}
72
73# Internationalization
74# https://docs.djangoproject.com/en/1.7/topics/i18n/
75
76LANGUAGE_CODE = 'en-ve'
77
78TIME_ZONE = 'UTC'
79
80USE_I18N = True
81
82USE_L10N = True
83
84USE_TZ = True
85
86
87# Static files (CSS, JavaScript, Images)
88# https://docs.djangoproject.com/en/1.7/howto/static-files/
89
90STATIC_URL = '/static/'
91
92STATICFILES_DIRS = (
93            os.path.join(BASE_DIR, '../topic_explorer/static'),
94)
95
96TEMPLATE_DIRS = (
97            TEMPLATE_PATH,
98)
99
100TEMPLATE_CONTEXT_PROCESSORS = (
101    "django_topic_explorer.context_processors.baseurl",
102)
103
104#url comun para el proyecto
105#URL_COMUN='http://localhost:8000/'
106URL_COMUN='http://192.168.12.126:8000/'
107## TOPIC EXPLORER SETTINGS
108#TOPIC_EXPLORER_PATH = '/home/jredondo/Proyectos/Analisis_del_Discurso/src/topic-explorer/'
109TOPIC_EXPLORER_PATH = '/home/cenditel/Interpretacion/'
110FILES_PATH = TOPIC_EXPLORER_PATH +'demo-data/corpus_propuestas/noaccent'
111MODELS_PATH = TOPIC_EXPLORER_PATH + 'demo-data/corpus_propuestas/models/'
112CORPUS_FILE = MODELS_PATH + 'pp-nltk-en-freq5.npz'
113#CORPUS_FILE = MODELS_PATH + 'ap-nltk-en-freq5.npz'
114MODEL_PATTERN = MODELS_PATH + 'pp-nltk-en-freq5-LDA-K{0}-document-200.npz'
115#MODEL_PATTERN = MODELS_PATH + 'ap-nltk-en-freq5-LDA-K{0}-document-20.npz'
116CONTEXT_TYPE = 'document'
117TOPICS = '10, 20, 30, 40, 50, 60, 70'
118#TOPICS = '10, 20, 30, 40, 50, 60, 70, 80, 90, 100'
119#TOPICS = '10, 20, 30, 40, 50, 60'
120CORPUS_NAME = 'Deafult'
121ICONS = 'link'
122
123CORPUS_LINK = None
124TOPIC_RANGE = None
125DOC_TITTLE_FORMAT = None
126DOC_URL_FORMAT = None
127
128
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.