- Timestamp:
- Aug 21, 2015, 10:57:48 AM (9 years ago)
- Branches:
- master
- Children:
- d809e7d
- Parents:
- 0b0f1eb
- Location:
- sicp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sicp/settings.py
r495aacb r058c4c4 63 63 'apps.usuario', 64 64 'apps.simulacion', 65 'apps.simulacion.sigesic' 65 'apps.simulacion.sigesic', 66 'apps.simulacion.encuesta' 66 67 ) 67 68 … … 91 92 SIGESIC_TEMPLATES = os.path.join(BASE_DIR, "apps/simulacion/sigesic/templates") 92 93 94 ## Directorio en donde se encuentran las plantillas de la encuesta industrial 95 ENCUESTA_TEMPLATES = os.path.join(BASE_DIR, "apps/simulacion/encuesta/templates") 96 93 97 ## Configuración de plantillas del sistema 94 98 TEMPLATES = [ 95 99 { 96 100 'BACKEND': 'django.template.backends.django.DjangoTemplates', 97 'DIRS': [BASE_TEMPLATES, SIMULACION_TEMPLATES, SIGESIC_TEMPLATES ],101 'DIRS': [BASE_TEMPLATES, SIMULACION_TEMPLATES, SIGESIC_TEMPLATES, ENCUESTA_TEMPLATES], 98 102 'APP_DIRS': True, 99 103 'OPTIONS': { … … 170 174 STATICFILES_DIRS = ( 171 175 os.path.join(BASE_DIR, 'static/'), 176 os.path.join(BASE_DIR, 'tmp/'), 172 177 ) 173 178 -
sicp/urls.py
rea8bf3e r058c4c4 22 22 from django.views.generic.base import RedirectView 23 23 from django.contrib import admin 24 import os 25 import settings 24 26 25 27 urlpatterns = [ … … 33 35 ] 34 36 37 if settings.DEBUG: 38 urlpatterns += patterns('', 39 url(r'^tmp/(?P<path>.*)$', 'django.views.static.serve', 40 {'document_root': os.path.join(settings.BASE_DIR, "tmp")}) 41 ) 42 43 44 35 45 urlpatterns += patterns('', 36 46 url(r'^captcha/', include('captcha.urls')),
Note: See TracChangeset
for help on using the changeset viewer.