#!/usr/bin/env python # -*- coding: utf-8 -*- from exceptions import ImportError from django.conf import global_settings # Django settings for postgresqleu project. DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( ('postgresql.eu webmaster', 'webmaster@postgresql.eu'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'postgresqleu', 'USER': 'postgresqleu', } } # 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. # If running in a Windows environment this must be set to the same as your # system time zone. TIME_ZONE = 'Europe/Paris' # 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. USE_I18N = False # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" #MEDIA_ROOT = '/home/mha/djangolab/postgresqleu/media' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" #MEDIA_URL = '/media/' STATIC_URL = '/media/' STATICFILES_DIRS = ( 'media/', ) # Make this unique, and don't share it with anybody. SECRET_KEY = 'zya5w8sfr)i(7q^p3s50-3hk5&4=k(&z6+*1x!#lt#8h%!sizu' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', # 'django.template.loaders.eggs.load_template_source', ) MIDDLEWARE_CLASSES = [ 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'postgresqleu.util.middleware.FilterPersistMiddleware', ] CSRF_FAILURE_VIEW='postgresqleu.views.csrf_failure' TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + ( 'postgresqleu.util.context_processors.settings_context', ) ROOT_URLCONF = 'postgresqleu.urls' TEMPLATE_DIRS = [ 'template', ] INSTALLED_APPS = [ 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin', 'django_markwhat', 'django.contrib.staticfiles', 'django.contrib.humanize', 'postgresqleu._initial', 'postgresqleu.selectable', 'postgresqleu.static', 'postgresqleu.countries', 'postgresqleu.paypal', 'postgresqleu.adyen', 'postgresqleu.braintreepayment', 'postgresqleu.trustlypayment', 'postgresqleu.newsevents', 'postgresqleu.confreg', 'postgresqleu.confsponsor', 'postgresqleu.confwiki', 'postgresqleu.membership', 'postgresqleu.elections', 'postgresqleu.mailqueue', 'postgresqleu.invoicemgr', 'postgresqleu.invoices', 'postgresqleu.accounting', 'postgresqleu.cmutuel', 'postgresqleu.util', ] INVOICE_SENDER_EMAIL="treasurer@postgresql.eu" MEMBERSHIP_SENDER_EMAIL="webmaster@postgresql.eu" # Years of membership per payment MEMBERSHIP_LENGTH=2 # Cost for membership MEMBERSHIP_COST=10 # Function called to valide that country is acceptable for membership MEMBERSHIP_COUNTRY_VALIDATOR=None # Currency parameter CURRENCY_ABBREV='EUR' CURRENCY_SYMBOL='€' CURRENCY_ISO='EUR' # Module to build PDF invoices INVOICE_PDF_BUILDER='postgresqleu.util.misc.pgeuinvoice' # Will be suffixed by " #nnn -