Exemple #1
0
import daiquiri.core.env as env

ASYNC = env.get_bool('ASYNC')

IPV4_PRIVACY_MASK = 16
IPV6_PRIVACY_MASK = 32

SITE_URL = env.get('SITE_URL')

SITE_IDENTIFIER = None
SITE_TITLE = None
SITE_DESCRIPTION = None
SITE_LICENSE = None
SITE_CREATOR = None
SITE_CONTACT = None
SITE_PUBLISHER = None
SITE_CREATED = None
SITE_UPDATED = None
SITE_LANGUAGE = 'en'
SITE_SUBJECTS = [{
    'subject':
    'Astronomy',
    'schemeURI':
    'http://id.loc.gov/authorities/subjects',
    'valueURI':
    'http://id.loc.gov/authorities/subjects/sh85009003'
}]
SITE_TYPE = 'service'
SITE_LOGO_URL = None
Exemple #2
0
import imp
import os

from django.utils.translation import ugettext_lazy as _

import daiquiri.core.env as env

CONFIG_DIR = imp.find_module('config')[1]
BASE_DIR = os.path.dirname(CONFIG_DIR)
DAIQUIRI_APP = os.path.basename(BASE_DIR).replace('-', '_')

BASE_URL = env.get_url('BASE_URL', '/')

DEBUG = env.get_bool('DEBUG')

SECRET_KEY = env.get('SECRET_KEY')

ALLOWED_HOSTS = env.get_list('ALLOWED_HOSTS',
                             ['localhost', '127.0.0.1', '::1'])

if env.get_bool('PROXY'):
    USE_X_FORWARDED_HOST = True
    SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

INTERNAL_IPS = env.get_list('INTERNAL_IPS', ['127.0.0.1'])

ADMINS = env.get_email_list('ADMINS')

SITE_ID = 1

ROOT_URLCONF = 'config.urls'
Exemple #3
0
import daiquiri.core.env as env

VENDOR_CDN = env.get_bool('VENDOR_CDN')
VENDOR = {
    'jquery': {
        'url':
        'https://code.jquery.com/',
        'js': [{
            'path': 'jquery-3.2.1.min.js',
            'sri': 'sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=',
        }]
    },
    'bootstrap': {
        'url':
        'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/',
        'js': [{
            'path':
            'js/bootstrap.min.js',
            'sri':
            'sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa',
        }],
        'css': [{
            'path':
            'css/bootstrap.min.css',
            'sri':
            'sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u',
        }]
    },
    'font-awesome': {
        'url':
        'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/',