source: sites/merengueprojectorg/settings.py @ 3372

Revision 3372, 4.0 KB checked in by msaelices, 16 months ago (diff)

Removed not available french language (and flag icon to change to french). Also commited some settings variables was saved locally. Fixes #1376.
no-pep8.

  • Property pyflakes:ignore set to true
Line 
1# -*- encoding: utf-8 -*-
2# Django settings for merengue project.
3
4from os import path
5from merengue.settings import *
6
7ugettext = lambda s: s # dummy ugettext function, as said on django docs
8
9BASEDIR = path.dirname(path.abspath(__file__))
10
11DEBUG = True
12TEMPLATE_DEBUG = DEBUG
13DEBUG_TOOLBAR = DEBUG
14HTTP_ERRORS_DEBUG = DEBUG
15
16ADMINS = (
17    ('Manuel Saelices', 'msaelices@yaco.es'),
18)
19
20MANAGERS = ADMINS
21
22DATABASE_ENGINE = 'postgresql_psycopg2'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
23DATABASE_NAME = 'merengueprojectorg'             # Or path to database file if using sqlite3.
24DATABASE_USER = 'merengueprojectorg'             # Not used with sqlite3.
25DATABASE_PASSWORD = ''         # Not used with sqlite3.
26DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
27DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
28
29# Local time zone for this installation. Choices can be found here:
30# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
31# although not all choices may be available on all operating systems.
32# If running in a Windows environment this must be set to the same as your
33# system time zone.
34TIME_ZONE = 'Europe/Madrid'
35
36# Language code for this installation. All choices can be found here:
37# http://www.i18nguy.com/unicode/language-identifiers.html
38LANGUAGE_CODE = 'es'
39
40LANGUAGES = (
41    ('es', ugettext('Español')),
42    ('en', ugettext('English')),
43)
44
45TRANSMETA_DEFAULT_LANGUAGE = 'es'
46
47SITE_ID = 1
48SITE_REGISTER_ID = 2
49
50# If you set this to False, Django will make some optimizations so as not
51# to load the internationalization machinery.
52USE_I18N = True
53
54# PostGIS extension flag
55USE_GIS = False
56
57if USE_GIS:
58    INSTALLED_APPS += ('django.contrib.gis', 'merengue.places', )
59
60# Absolute path to the directory that holds media.
61# Example: "/home/media/media.lawrence.com/"
62MEDIA_ROOT = path.join(BASEDIR, 'media/')
63
64# URL that handles the media served from MEDIA_ROOT. Make sure to use a
65# trailing slash if there is a path component (optional in other cases).
66# Examples: "http://media.lawrence.com", "http://example.com/media/"
67MEDIA_URL = '/media/'
68
69# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
70# trailing slash.
71# Examples: "http://foo.com/media/", "/media/".
72ADMIN_MEDIA_PREFIX = '/admin_media/'
73
74# Make this unique, and don't share it with anybody.
75SECRET_KEY = 'v$*k)ri8i*yv@yb2w!c)t#aj$o=na8u#855#wsve4!iw%u__hy'
76
77MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
78    # put here aditional middlewares
79)
80
81ROOT_URLCONF = 'merengueprojectorg.urls'
82
83TEMPLATE_DIRS = (
84    path.join(BASEDIR, 'templates'),
85) + TEMPLATE_DIRS
86
87LOGIN_REDIRECT_URL = '/'
88LOGIN_URL = '/account/login/'
89
90INSTALLED_APPS += (
91    # put here your project django apps
92)
93
94REQUIRED_PLUGINS = ('news', 'rss')
95
96SVNDIR = path.join(BASEDIR, 'apps')
97
98TEST_DB_CREATION_SUFFIX = 'WITH TEMPLATE template_postgis'
99
100FIXTURE_DIRS = (
101    path.join(BASEDIR, 'fixtures', 'base'),
102)
103
104FIXTURES_EXCLUDES = (
105    'auth.permission',
106)
107
108BUILDBOT_IP = '192.168.11.209'
109INTERNAL_IPS = ('127.0.0.1', '80.36.82.38', BUILDBOT_IP)
110
111# Pagination options
112LIMIT_URL_SPIDER_TEST = 20
113
114# Overwrite options tinyMCE
115TINYMCE_MEDIA = MEDIA_URL + "cmsutils/js/widgets/tiny_mce/"
116
117TINYMCE_EXTRA_MEDIA = {
118   'js': [],
119   'css': [],
120}
121
122SEARCHBAR_MIN_RESULTS = 5
123
124LOGOUT_PROTECTED_URL_REDIRECTS = (
125    #(r'^/regularexpresion/(.*)$', '/redirect_url'),
126)
127
128PRODUCTION_DB_URL = ""
129PRODUCTION_DB_UPDATE_PASSWORDS = (('admin', 'admin'), )
130
131# For transhette
132ENABLE_TRANSLATION_SUGGESTIONS = False
133
134# For johnny cache. Johnny cache key prefix should not be the same in other projects
135CACHE_BACKEND = 'johnny.backends.locmem:///'
136JOHNNY_MIDDLEWARE_KEY_PREFIX = '%s-cache' % DATABASE_NAME
137
138DETECT_NEW_PLUGINS = False
139DETECT_BROKEN_PLUGINS = False
140
141# Allow overwriting any configuration in optional settings_local.py
142# (it can be used to set up your own database, debug and cache options, contact mails...)
143try:
144    from settings_local import *
145except ImportError:
146    pass
Note: See TracBrowser for help on using the repository browser.