Commit | Line | Data |
---|---|---|
0b2c4760 NI |
1 | # -*- coding: utf-8 -*- |
2 | #*************************************************************************** | |
3 | #* Copyright (C) 2015 Polytechnique.org * | |
4 | #* http://opensource.polytechnique.org/ * | |
5 | #* * | |
6 | #* This program is free software; you can redistribute it and/or modify * | |
7 | #* it under the terms of the GNU General Public License as published by * | |
8 | #* the Free Software Foundation; either version 2 of the License, or * | |
9 | #* (at your option) any later version. * | |
10 | #* * | |
11 | #* This program is distributed in the hope that it will be useful, * | |
12 | #* but WITHOUT ANY WARRANTY; without even the implied warranty of * | |
13 | #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | |
14 | #* GNU General Public License for more details. * | |
15 | #* * | |
16 | #* You should have received a copy of the GNU General Public License * | |
17 | #* along with this program; if not, write to the Free Software * | |
18 | #* Foundation, Inc., * | |
19 | #* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * | |
20 | #***************************************************************************/ | |
21 | """Django settings for a local SQLite database""" | |
22 | ||
23 | # Build paths inside the project like this: os.path.join(ROOT_DIR, ...) | |
24 | import os.path | |
25 | CURRENT_DIR = os.path.abspath(os.path.dirname(__file__)) | |
26 | ||
27 | DEBUG = True | |
28 | ||
29 | INSTALLED_APPS = ( | |
d171e6c7 NI |
30 | # 'django.contrib.admin', |
31 | # 'django.contrib.auth', | |
32 | # 'django.contrib.contenttypes', | |
33 | # 'django.contrib.sessions', | |
34 | # 'django.contrib.messages', | |
35 | # 'django.contrib.staticfiles', | |
0b2c4760 NI |
36 | 'platal', |
37 | ) | |
38 | ||
39 | ADMINS = ( | |
40 | # ('Your Name', 'your_email@example.com'), | |
41 | ) | |
42 | ||
43 | MANAGERS = ADMINS | |
44 | ||
45 | DATABASES = { | |
46 | 'default': { | |
47 | 'ENGINE': 'django.db.backends.sqlite3', | |
48 | 'NAME': os.path.join(CURRENT_DIR, 'db.sqlite'), | |
49 | 'ATOMIC_REQUESTS': True, | |
50 | } | |
51 | } | |
52 | ||
53 | # Local time zone for this installation. Choices can be found here: | |
54 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name | |
55 | # although not all choices may be available on all operating systems. | |
56 | # On Unix systems, a value of None will cause Django to use the same | |
57 | # timezone as the operating system. | |
58 | # If running in a Windows environment this must be set to the same as your | |
59 | # system time zone. | |
60 | TIME_ZONE = 'Europe/Paris' | |
61 | ||
62 | # Language code for this installation. All choices can be found here: | |
63 | # http://www.i18nguy.com/unicode/language-identifiers.html | |
64 | LANGUAGE_CODE = 'en-us' | |
65 | ||
66 | LANGUAGES = ( | |
67 | ('en', 'English'), | |
68 | ('fr', 'French'), | |
69 | ) | |
70 | ||
71 | # If you set this to False, Django will make some optimizations so as not | |
72 | # to load the internationalization machinery. | |
73 | USE_I18N = True | |
74 | ||
75 | # If you set this to False, Django will not format dates, numbers and | |
76 | # calendars according to the current locale. | |
77 | USE_L10N = True | |
78 | ||
79 | # If you set this to False, Django will not use timezone-aware datetimes. | |
d171e6c7 | 80 | USE_TZ = False |
0b2c4760 NI |
81 | |
82 | SECRET_KEY = 'Key for development purpose only ;)' | |
83 | ||
84 | # List of callables that know how to import templates from various sources. | |
85 | TEMPLATE_LOADERS = ( | |
86 | 'django.template.loaders.filesystem.Loader', | |
87 | 'django.template.loaders.app_directories.Loader', | |
88 | ) | |
89 | ||
90 | MIDDLEWARE_CLASSES = ( | |
91 | 'django.middleware.common.CommonMiddleware', | |
92 | 'django.contrib.sessions.middleware.SessionMiddleware', | |
93 | 'django.middleware.locale.LocaleMiddleware', | |
94 | 'django.middleware.csrf.CsrfViewMiddleware', | |
95 | 'django.contrib.auth.middleware.AuthenticationMiddleware', | |
96 | 'django.contrib.messages.middleware.MessageMiddleware', | |
97 | ) | |
98 | ||
99 | INTERNAL_IPS = ('127.0.0.1', '::1') |