source: main/branches/3D/openPLM/settings_tests.py @ 599

Revision 599, 5.3 KB checked in by agalech, 9 years ago (diff)

new QuickTriangleMesh? in nuevomesh.py

Line 
1#-!- coding:utf-8 -!-
2# Django settings for openPLM project.
3# sqlite version
4
5import os.path
6
7DEBUG = True
8TEMPLATE_DEBUG = DEBUG
9
10ADMINS = (
11    ('Your Name', 'your_email@domain.com'),
12)
13
14MANAGERS = ADMINS
15
16DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
17DATABASE_NAME = 'openplm'             # Or path to database file if using sqlite3.
18DATABASE_USER = 'django'             # Not used with sqlite3.
19DATABASE_PASSWORD = 'django#6'         # Not used with sqlite3.
20DATABASE_HOST = 'localhost'             # Set to empty string for localhost. Not used with sqlite3.
21DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
22
23# Local time zone for this installation. Choices can be found here:
24# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
25# although not all choices may be available on all operating systems.
26# If running in a Windows environment this must be set to the same as your
27# system time zone.
28TIME_ZONE = 'Europe/Paris'
29
30# Language code for this installation. All choices can be found here:
31# http://www.i18nguy.com/unicode/language-identifiers.html
32LANGUAGE_CODE = 'en-en'
33
34SITE_ID = 1
35
36# If you set this to False, Django will make some optimizations so as not
37# to load the internationalization machinery.
38USE_I18N = True
39
40# Absolute path to the directory that holds media.
41# Example: "/home/media/media.lawrence.com/"
42MEDIA_ROOT = '/home/linux/openPLM/branches/3D/openPLM/media/'
43
44# URL that handles the media served from MEDIA_ROOT. Make sure to use a
45# trailing slash if there is a path component (optional in other cases).
46# Examples: "http://media.lawrence.com", "http://example.com/media/"
47MEDIA_URL = '/media/'
48
49# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
50# trailing slash.
51# Examples: "http://foo.com/media/", "/media/".
52ADMIN_MEDIA_PREFIX = '/../media/admin/'
53
54# Make this unique, and don't share it with anybody.
55SECRET_KEY = '0ham7d#fh669-xi@wxf1wcpbhn6tbbegtv_cml()_wcboyw&u&'
56
57# List of callables that know how to import templates from various sources.
58TEMPLATE_LOADERS = (
59    'django.template.loaders.filesystem.load_template_source',
60    'django.template.loaders.app_directories.load_template_source',
61#     'django.template.loaders.eggs.load_template_source',
62)
63
64MIDDLEWARE_CLASSES = (
65    'django.middleware.common.CommonMiddleware',
66    'django.contrib.csrf.middleware.CsrfMiddleware',
67    'django.contrib.sessions.middleware.SessionMiddleware',
68    'django.middleware.locale.LocaleMiddleware',
69    'django.contrib.auth.middleware.AuthenticationMiddleware',
70)
71
72ugettext = lambda s: s
73LANGUAGES = (
74      ('fr', u'Français'),
75      ('en', 'English'),
76)
77
78ROOT_URLCONF = 'openPLM.urls'
79
80TEMPLATE_DIRS = (
81    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
82    # Always use forward slashes, even on Windows.
83    # Don't forget to use absolute paths, not relative paths.
84    "/home/linux/openPLM/branches/3D/openPLM/templates",
85    "/home/linux/openPLM/branches/3D/openPLM/document3D/templates",
86)
87
88INSTALLED_APPS = (
89    'django.contrib.auth',
90    'django.contrib.contenttypes',
91    'django.contrib.sessions',
92    'django.contrib.sites',
93    'django.contrib.admin',
94    'django.contrib.comments',
95    'django.contrib.humanize',
96    'djcelery',
97    'haystack',
98    'south',
99    'openPLM.plmapp',
100    # you can add your application after this line
101    'openPLM.cad',
102    'openPLM.computer',
103    'openPLM.cae',
104    'openPLM.office',
105    'openPLM.bicycle',
106    'openPLM.document3D',
107)
108
109AUTH_PROFILE_MODULE = 'plmapp.UserProfile'
110
111CELERY_CREATE_MISSING_QUEUES = True
112CELERY_ROUTES = {
113    "openPLM.plmapp.tasks.update_index": {"queue": "index"},
114    "openPLM.plmapp.mail.do_send_histories_mail" : {"queue" : "mails"},
115    "openPLM.plmapp.mail.do_send_mail" : {"queue" : "mails"},
116}
117
118EMAIL_HOST = 'localhost'
119EMAIL_PORT = 1025
120
121######################
122# openPLM's settings #
123######################
124
125#: directory that stores documents. Make sure to use a trailing slash.
126DOCUMENTS_DIR = "/home/linux/openPLM/branches/3D/openPLM/docs/"    #aquica
127THUMBNAILS_DIR = os.path.join(MEDIA_ROOT, "thumbnails/")
128#: directory that stores thumbnails. Make sure to use a trailing slash.
129THUMBNAILS_URL = MEDIA_URL + "thumbnails/"
130
131# Cookie used for session is temporary and is deleted when browser is closed
132SESSION_EXPIRE_AT_BROWSER_CLOSE = True
133
134# Add user, messages and perms variables in RequestContext
135TEMPLATE_CONTEXT_PROCESSORS = (
136        "django.contrib.auth.context_processors.auth",
137        "django.core.context_processors.debug",
138        "django.core.context_processors.i18n",
139        "django.core.context_processors.media",
140        "django.core.context_processors.request",
141        )
142
143
144
145#: expeditor's mail used when sending notification emails
146EMAIL_OPENPLM = "no-reply@openplm.example.com"
147
148#: Max file size for documents in bytes, -1 means illimited
149MAX_FILE_SIZE = -1
150
151# search stuff
152HAYSTACK_SITECONF = 'openPLM.plmapp.search_sites'
153HAYSTACK_SEARCH_ENGINE = 'xapian'
154HAYSTACK_XAPIAN_PATH = "/home/linux/openPLM/branches/3D/openPLM/xapian_index/"
155HAYSTACK_INCLUDE_SPELLING = True
156EXTRACTOR = os.path.abspath(os.path.join(os.path.dirname(__file__), "bin", "extractor.sh"))
157
158# celery stuff
159import djcelery
160djcelery.setup_loader()
161
162BROKER_BACKEND = "memory"
163CELERY_ALWAYS_EAGER = True
164
165COMPANY = "company"
166
Note: See TracBrowser for help on using the repository browser.