Пример #1
0
    }
}

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.contrib.auth.context_processors.auth',
    'django.core.context_processors.debug',
    'django.core.context_processors.i18n',
    'django.core.context_processors.media',
    'django.core.context_processors.request',
)

TEMP_URL = path.join(BASEDIR, 'datamanager/datamanager_media/tmp/')
UARRAY_TMP = '/home/upload/inbox/'  #'/home/alessandro/LAS/uarrayData/prova_upload/'

from utils import getLASUrl
DOMAIN_URL = getLASUrl()

LOGIN_URL = '/auth/startlogin/'
LAS_AUTH_SERVER_URL = DOMAIN_URL + '/las/laslogin/'
LAS_AUTH_USE_HTTPS = True
THIS_APP_SHORTNAME = 'RDM'
AUTH_SECRET_KEY = 'VWVayeI_60|bb|*3<8<}n/dNZ|1eH_69!m>+hA)3dD[z]n~>-,}{+pmKVH+|+%;:'
API_SHARED_KEY = 'u8Hk;GVTbW|siLN0([_gryt2/c)]G7@g$l}.@t?A+Sq/=2l||2ZVkV@w)9+uLQE('
SYNC_PERMISSIONS_URL = DOMAIN_URL + '/las/syncPermissions/'

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
        'LOCATION': '/var/tmp/django_cache',
    }
}
Пример #2
0
    'default': {
        'ENGINE':
        'django.db.backends.mysql',  # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': DB_NAME,  # Or path to database file if using sqlite3.
        'USER': DB_USERNAME,  # Not used with sqlite3.
        'PASSWORD': DB_PASSWORD,  # Not used with sqlite3.
        'HOST':
        DB_HOST,  # Set to empty string for localhost. Not used with sqlite3.
        'PORT':
        '3306',  # Set to empty string for default. Not used with sqlite3.
    }
}

from utils import getLASUrl

DOMAIN_NAME = getLASUrl()

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# In a Windows environment this must be set to your system time zone.
TIME_ZONE = 'Europe/Rome'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.