~nicolas-dumoulin/+junk/djangopld

« back to all changes in this revision

Viewing changes to pld/settings.py

  • Committer: Nicolas Dumoulin
  • Date: 2011-02-23 11:44:53 UTC
  • Revision ID: nicolas@dumoulin63.net-20110223114453-1mef2j4e89h3i2ig
initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Django settings for pld project.
 
2
 
 
3
PROD=False
 
4
 
 
5
if (PROD):
 
6
  PROJECT_DIR="/homez.165/dumoulin/osm/pld/"
 
7
  MEDIA_URL = 'http://pld.dumoulin63.net/static/'
 
8
else:
 
9
  PROJECT_DIR="/home/dumoulin/Divers/OSM/PLD/"
 
10
  MEDIA_URL = 'http://pld.dumoulin63.net/static/'
 
11
  #MEDIA_URL = 'http://localhost:9900/'
 
12
 
 
13
 
 
14
DEBUG = True
 
15
TEMPLATE_DEBUG = DEBUG
 
16
 
 
17
ADMINS = (
 
18
     ('Nicolas Dumoulin', 'nicolas@dumoulin63.net'),
 
19
)
 
20
ADMIN_MEDIA_PREFIX=MEDIA_URL+"admin/"
 
21
 
 
22
MANAGERS = ADMINS
 
23
 
 
24
DATABASES = {
 
25
    'default': {
 
26
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
 
27
        'NAME': PROJECT_DIR+'pld/database.db',                      # Or path to database file if using sqlite3.
 
28
        'USER': '',                      # Not used with sqlite3.
 
29
        'PASSWORD': '',                  # Not used with sqlite3.
 
30
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
 
31
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
 
32
    }
 
33
}
 
34
FORMAT_MODULE_PATH = "pld.formats"
 
35
 
 
36
# Local time zone for this installation. Choices can be found here:
 
37
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
 
38
# although not all choices may be available on all operating systems.
 
39
# On Unix systems, a value of None will cause Django to use the same
 
40
# timezone as the operating system.
 
41
# If running in a Windows environment this must be set to the same as your
 
42
# system time zone.
 
43
TIME_ZONE = 'France/Paris'
 
44
 
 
45
# Language code for this installation. All choices can be found here:
 
46
# http://www.i18nguy.com/unicode/language-identifiers.html
 
47
LANGUAGE_CODE = 'FR-fr'
 
48
 
 
49
SITE_ID = 1
 
50
 
 
51
# If you set this to False, Django will make some optimizations so as not
 
52
# to load the internationalization machinery.
 
53
USE_I18N = True
 
54
 
 
55
# If you set this to False, Django will not format dates, numbers and
 
56
# calendars according to the current locale
 
57
USE_L10N = True
 
58
 
 
59
# Absolute path to the directory that holds media.
 
60
# Example: "/home/media/media.lawrence.com/"
 
61
MEDIA_ROOT = ''
 
62
 
 
63
# Make this unique, and don't share it with anybody.
 
64
SECRET_KEY = 'z=r@m1dwl0gg!nl+3&4p%g+2&824h6nzvzrg0^24!(t!z7=ht_'
 
65
 
 
66
# List of callables that know how to import templates from various sources.
 
67
TEMPLATE_LOADERS = (
 
68
    'django.template.loaders.filesystem.Loader',
 
69
    'django.template.loaders.app_directories.Loader',
 
70
#     'django.template.loaders.eggs.Loader',
 
71
)
 
72
 
 
73
MIDDLEWARE_CLASSES = (
 
74
    'django.middleware.common.CommonMiddleware',
 
75
    'django.contrib.sessions.middleware.SessionMiddleware',
 
76
    'django.middleware.csrf.CsrfViewMiddleware',
 
77
    'django.contrib.auth.middleware.AuthenticationMiddleware',
 
78
    'django.contrib.messages.middleware.MessageMiddleware',
 
79
)
 
80
 
 
81
ROOT_URLCONF = 'pld.urls'
 
82
 
 
83
TEMPLATE_DIRS = (
 
84
    PROJECT_DIR+'templates/',
 
85
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
 
86
    # Always use forward slashes, even on Windows.
 
87
    # Don't forget to use absolute paths, not relative paths.
 
88
)
 
89
 
 
90
INSTALLED_APPS = (
 
91
    'django.contrib.auth',
 
92
    'django.contrib.contenttypes',
 
93
    'django.contrib.sessions',
 
94
    'django.contrib.sites',
 
95
    'django.contrib.messages',
 
96
    'pld.pois',
 
97
    # Uncomment the next line to enable the admin:
 
98
    'django.contrib.admin',
 
99
    # Uncomment the next line to enable admin documentation:
 
100
    # 'django.contrib.admindocs',
 
101
)