Conjunto de cambios 7b731b3 en seguimiento_proyectos para sepai/sepai/settings.py


Ignorar:
Fecha y hora:
31/05/2017 08:47:36 (hace 7 años)
Autor:
lhernandez <lhernandez@…>
Branches:
master, desarrollo
Children:
7607b2f
Parents:
f6237c2 (diferencia), a8d2162 (diferencia)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Mensaje:

Realizando mezcla a la rama master

Fichero:
1 editado

Leyenda

No modificado
Añadido
Eliminado
  • sepai/sepai/settings.py

    rf6237c2 r7b731b3  
    8989DATABASES = {
    9090    'default': {
    91         'ENGINE': 'django.db.backends.sqlite3',
    92         'NAME': os.path.join(BASE_DIR, 'db.sepai.sqlite'),
     91        'ENGINE': 'django.db.backends.postgresql_psycopg2',
     92        'NAME': 'sepai',
     93        'USER': 'postgres',
     94        'PASSWORD': 'postgres',
     95        'HOST': 'localhost',
     96        'PORT': '5432',
     97        'ATOMIC_REQUESTS': True, # Crea transacciones en cada peticion de la vista
    9398    }
    9499}
     
    110115BASE_URL = ""
    111116
    112 MEDIA_ROOT = os.path.join(TEMPLATES_SEPAI, 'sources')
    113 MEDIA_URL = BASE_URL + '/recursos/'
     117
     118MEDIA_ROOT = os.path.join(BASE_DIR, 'sources/')
     119MEDIA_URL = '/sources/'
    114120
    115121# Static files (CSS, JavaScript, Images)
    116122# https://docs.djangoproject.com/en/1.8/howto/static-files/
    117123
    118 STATIC_URL = TEMPLATES_SEPAI + '/static/'
    119 SOURCES_URL = TEMPLATES_SEPAI + '/sources/'
     124SOURCES_URL = BASE_DIR + 'sources/'
     125STATIC_ROOT = BASE_DIR + 'static/'
     126STATIC_URL = '/static/'
    120127
    121128STATICFILES_DIRS = (
    122     os.path.join(STATIC_URL),
    123     os.path.join(SOURCES_URL),
     129    os.path.join(BASE_DIR, 'static/'),
     130    os.path.join(BASE_DIR, 'sources/'),
    124131)
    125132
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.