1
+ """
2
+ Django settings for quokka project.
3
+
4
+ For more information on this file, see
5
+ https://docs.djangoproject.com/en/dev/topics/settings/
6
+
7
+ For the full list of settings and their values, see
8
+ https://docs.djangoproject.com/en/dev/ref/settings/
9
+ """
10
+
11
+ # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
12
+ import os
13
+ from django .conf .global_settings import MEDIA_ROOT
14
+ import sys
15
+
16
+ import socket
17
+
18
+ try :
19
+ HOSTNAME = socket .gethostname ()
20
+ except :
21
+ HOSTNAME = 'localhost'
22
+
23
+ BASE_DIR = os .path .dirname (os .path .dirname (__file__ ))
24
+
25
+
26
+ # Quick-start development settings - unsuitable for production
27
+ # See https://docs.djangoproject.com/en/dev/howto/deployment/checklist/
28
+
29
+ # SECURITY WARNING: keep the secret key used in production secret!
30
+ SECRET_KEY = '!j!rcmgm!@*zhjkq)3tl*r&&zug3&4hklo*s)#b*5_-=u0s1iw'
31
+
32
+ # SECURITY WARNING: don't run with debug turned on in production!
33
+ DEBUG = True
34
+
35
+ TEMPLATE_DEBUG = True
36
+
37
+ ALLOWED_HOSTS = []
38
+
39
+
40
+ # Application definition
41
+
42
+ INSTALLED_APPS = (
43
+ 'django.contrib.admin' ,
44
+ 'django.contrib.auth' ,
45
+ 'django.contrib.contenttypes' ,
46
+ 'django.contrib.sessions' ,
47
+ 'django.contrib.messages' ,
48
+ 'django.contrib.staticfiles' ,
49
+ )
50
+
51
+ MIDDLEWARE_CLASSES = (
52
+ 'django.contrib.sessions.middleware.SessionMiddleware' ,
53
+ 'django.middleware.common.CommonMiddleware' ,
54
+ 'django.middleware.csrf.CsrfViewMiddleware' ,
55
+ 'django.contrib.auth.middleware.AuthenticationMiddleware' ,
56
+ 'django.contrib.messages.middleware.MessageMiddleware' ,
57
+ 'django.middleware.clickjacking.XFrameOptionsMiddleware' ,
58
+ )
59
+
60
+
61
+
62
+ DATABASES = {
63
+ 'default' : {
64
+ 'ENGINE' : 'django.db.backends.sqlite3' ,
65
+ 'NAME' : ':memory:' ,
66
+ }
67
+ }
68
+
69
+ # Internationalization
70
+ # https://docs.djangoproject.com/en/dev/topics/i18n/
71
+
72
+ LANGUAGE_CODE = 'en-us'
73
+
74
+ TIME_ZONE = 'UTC'
75
+
76
+ USE_I18N = True
77
+
78
+ USE_L10N = True
79
+
80
+ USE_TZ = True
0 commit comments