root/settings.py

Revision 8e190b5404bcc72bccbbecf78e29d5c33a730180, 3.2 KB (checked in by Frederic Lepied <frederic.lepied@…>, 3 years ago)

switch to our TZ to have a correct time display

  • Property mode set to 100644
Line 
1# Django settings for pxemngr project.
2
3DEBUG = True
4TEMPLATE_DEBUG = DEBUG
5
6ADMINS = (
7    # ('Your Name', 'your_email@domain.com'),
8)
9
10MANAGERS = ADMINS
11
12DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
13DATABASE_NAME = '/home/flepied/work/pxemngr/pxe.db'             # Or path to database file if using sqlite3.
14DATABASE_USER = ''             # Not used with sqlite3.
15DATABASE_PASSWORD = ''         # Not used with sqlite3.
16DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
17DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
18
19# pxe related settings
20
21PXE_ROOT='/var/lib/tftpboot/pxelinux.cfg'
22PXE_PROFILES = 'profiles'
23PXE_SUFFIX = '.prof'
24PXE_LOCAL = 'local'
25
26# test related settings
27
28TESTS_DIR = '/home/flepied/work/tests/'
29TEST_SUFFIX = '.test'
30TEST_UPLOAD_DIR = '/home/flepied/work/test-results/'
31
32# Local time zone for this installation. Choices can be found here:
33# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
34# although not all choices may be available on all operating systems.
35# If running in a Windows environment this must be set to the same as your
36# system time zone.
37TIME_ZONE = 'Europe/Paris'
38
39# Language code for this installation. All choices can be found here:
40# http://www.i18nguy.com/unicode/language-identifiers.html
41LANGUAGE_CODE = 'en-us'
42
43SITE_ID = 1
44
45# If you set this to False, Django will make some optimizations so as not
46# to load the internationalization machinery.
47USE_I18N = True
48
49# Absolute path to the directory that holds media.
50# Example: "/home/media/media.lawrence.com/"
51MEDIA_ROOT = ''
52
53# URL that handles the media served from MEDIA_ROOT. Make sure to use a
54# trailing slash if there is a path component (optional in other cases).
55# Examples: "http://media.lawrence.com", "http://example.com/media/"
56MEDIA_URL = ''
57
58# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
59# trailing slash.
60# Examples: "http://foo.com/media/", "/media/".
61ADMIN_MEDIA_PREFIX = '/media/'
62
63# Make this unique, and don't share it with anybody.
64SECRET_KEY = '2yt5-#@q^y3ardo)a!xckg%ja$)3uc0ieshy((k59)s)ird=hu'
65
66# List of callables that know how to import templates from various sources.
67TEMPLATE_LOADERS = (
68    'django.template.loaders.filesystem.load_template_source',
69    'django.template.loaders.app_directories.load_template_source',
70#     'django.template.loaders.eggs.load_template_source',
71)
72
73MIDDLEWARE_CLASSES = (
74    'django.middleware.common.CommonMiddleware',
75    'django.contrib.sessions.middleware.SessionMiddleware',
76    'django.contrib.auth.middleware.AuthenticationMiddleware',
77)
78
79ROOT_URLCONF = 'pxemngr.urls'
80
81TEMPLATE_DIRS = (
82    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
83    # Always use forward slashes, even on Windows.
84    # Don't forget to use absolute paths, not relative paths.
85    '/home/flepied/work/pxemngr/pxe/templates',
86    '/home/flepied/work/pxemngr/tester/templates',
87    TESTS_DIR,
88)
89
90INSTALLED_APPS = (
91    'django.contrib.auth',
92    'django.contrib.contenttypes',
93    'django.contrib.sessions',
94    'django.contrib.sites',
95    'pxe',
96    'tester',
97    'django.contrib.admin',
98)
Note: See TracBrowser for help on using the browser.