1 # -*- coding: utf-8 -*-
2 #***************************************************************************
3 #* Copyright (C) 2015 Polytechnique.org *
4 #* http://opensource.polytechnique.org/ *
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. *
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. *
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"""
23 # Build paths inside the project like this: os.path.join(ROOT_DIR, ...)
25 CURRENT_DIR
= os
.path
.abspath(os
.path
.dirname(__file__
))
30 # 'django.contrib.admin',
31 # 'django.contrib.auth',
32 # 'django.contrib.contenttypes',
33 # 'django.contrib.sessions',
34 # 'django.contrib.messages',
35 # 'django.contrib.staticfiles',
40 # ('Your Name', 'your_email@example.com'),
47 'ENGINE': 'django.db.backends.sqlite3',
48 'NAME': os
.path
.join(CURRENT_DIR
, 'db.sqlite'),
49 'ATOMIC_REQUESTS': True,
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
60 TIME_ZONE
= 'Europe/Paris'
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'
71 # If you set this to False, Django will make some optimizations so as not
72 # to load the internationalization machinery.
75 # If you set this to False, Django will not format dates, numbers and
76 # calendars according to the current locale.
79 # If you set this to False, Django will not use timezone-aware datetimes.
82 SECRET_KEY
= 'Key for development purpose only ;)'
84 # List of callables that know how to import templates from various sources.
86 'django.template.loaders.filesystem.Loader',
87 'django.template.loaders.app_directories.Loader',
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',
99 INTERNAL_IPS
= ('127.0.0.1', '::1')