Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ece83e63ec
Fetching contributors…

Cannot retrieve contributors at this time

142 lines (112 sloc) 3.918 kb
# -*- encoding: utf-8 -*-
############################################################################################
#
# Zoook e-sale for OpenERP, Open Source Management Solution
# Copyright (C) 2011 Zikzakmedia S.L. (<http://www.zikzakmedia.com>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
############################################################################################
from config import *
from django.utils.translation import ugettext_lazy as _
import os
import re
TEMPLATE_DEBUG = DEBUG
PAGINATOR_TOTAL = 9
PAGINATOR_ITEMS = [9,18,36]
CREATE_ACCOUNT = False
USER_LENGHT = 8
KEY_LENGHT = 6
SITE_TITLE = _('OpenERP e-learning')
FOOTER_TITLE = _('Your footer slogan here')
CONTACT_EMAIL = ['zikzak@zikzakmedia.com']
VAT_CODE = ['ES']
COUNTRY_DEFAULT = 'ES'
LOGIN_URL = '/partner/'
LOGIN_REDIRECT_URL = '/'
ADMINS = (
('Zikzakmedia','zikzak@zikzakmedia.com'),
)
MANAGERS = ADMINS
TIME_ZONE = 'Europe/Madrid'
ugettext = lambda s: s
#Edit your languages
LANGUAGE_CODE = 'en'
LANGUAGES = (
('en', ugettext('English')),
#('es', ugettext('Spanish')),
#('ca', ugettext('Catalan')),
)
DEFAUL_LANGUAGE = 1
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale
USE_L10N = True
PATH = os.path.abspath(os.path.dirname(__file__).decode("utf-8"))
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(PATH, "static")
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/'
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'c=ylnmu)78-olf-96npet^tdrds-e+3jm=_hm(w*85e6yd^z@a'
# 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.Loader',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'localeurl.middleware.LocaleURLMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
)
ROOT_URLCONF = 'elearning.urls'
TEMPLATE_DIRS = (
os.path.join(PATH, "templates"+"/"+BASE_TEMPLATE),
)
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.sites',
'localeurl',
'base',
'partner',
'content',
'contact',
'modules',
'training',
)
AUTH_PROFILE_MODULE = "partner.AuthProfile"
LOCALE_INDEPENDENT_PATHS = (
re.compile('^/static/'),
re.compile('^/media/'),
re.compile('^/manager/'),
re.compile('^/partner/'),
re.compile('^/training/'),
)
Jump to Line
Something went wrong with that request. Please try again.