Changeset 058c4c4 in sicp for sicp


Ignore:
Timestamp:
Aug 21, 2015, 10:57:48 AM (9 years ago)
Author:
eparedes <eparedes@…>
Branches:
master
Children:
d809e7d
Parents:
0b0f1eb
Message:

Funcionalidad Cadena Productiva Fuentes Diversas: Encuesta Industrial

Location:
sicp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sicp/settings.py

    r495aacb r058c4c4  
    6363    'apps.usuario',
    6464    'apps.simulacion',
    65     'apps.simulacion.sigesic'
     65    'apps.simulacion.sigesic',
     66    'apps.simulacion.encuesta'
    6667)
    6768
     
    9192SIGESIC_TEMPLATES = os.path.join(BASE_DIR, "apps/simulacion/sigesic/templates")
    9293
     94## Directorio en donde se encuentran las plantillas de la encuesta industrial
     95ENCUESTA_TEMPLATES = os.path.join(BASE_DIR, "apps/simulacion/encuesta/templates")
     96
    9397## Configuración de plantillas del sistema
    9498TEMPLATES = [
    9599    {
    96100        'BACKEND': 'django.template.backends.django.DjangoTemplates',
    97         'DIRS': [BASE_TEMPLATES, SIMULACION_TEMPLATES, SIGESIC_TEMPLATES],
     101        'DIRS': [BASE_TEMPLATES, SIMULACION_TEMPLATES, SIGESIC_TEMPLATES, ENCUESTA_TEMPLATES],
    98102        'APP_DIRS': True,
    99103        'OPTIONS': {
     
    170174STATICFILES_DIRS = (
    171175    os.path.join(BASE_DIR, 'static/'),
     176    os.path.join(BASE_DIR, 'tmp/'),
    172177)
    173178
  • sicp/urls.py

    rea8bf3e r058c4c4  
    2222from django.views.generic.base import RedirectView
    2323from django.contrib import admin
     24import os
     25import settings
    2426
    2527urlpatterns = [
     
    3335]
    3436
     37if 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
    3545urlpatterns += patterns('',
    3646    url(r'^captcha/', include('captcha.urls')),
Note: See TracChangeset for help on using the changeset viewer.