-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathlocal_settings.py
59 lines (59 loc) · 2.43 KB
/
local_settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
LOCAL_SETTINGS = True
from settings import *
DATABASES = {
'default': {
# Engine type. Ends with 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'ENGINE': 'django.db.backends.postgresql_psycopg2',
# Database name or path to database file if using sqlite3.
'NAME': 'ghiro',
# Credntials. The following settings are not used with sqlite3.
'USER': 'root',
'PASSWORD': 'ghiromanager',
# Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'HOST': '',
# Set to empty string for default port.
'PORT': '',
# Set timeout (avoids SQLite "database is locked" errors).
'timeout': 300,
}
}
# MySQL tuning.
DATABASE_OPTIONS = {
"init_command": "SET storage_engine=INNODB",
}
# Mongo database settings
MONGO_URI = "mongodb://localhost/"
MONGO_DB = "ghirodb"
# Max uploaded image size (in bytes).
# Default is 150MB.
MAX_FILE_UPLOAD = 157286400
# Allowed file types.
ALLOWED_EXT = ['image/bmp', 'image/x-canon-cr2', 'image/jpeg', 'image/png',
'image/x-canon-crw', 'image/x-eps', 'image/x-nikon-nef',
'application/postscript', 'image/gif', 'image/x-minolta-mrw',
'image/x-olympus-orf', 'image/x-photoshop', 'image/x-fuji-raf',
'image/x-panasonic-raw2', 'image/x-tga', 'image/tiff', 'image/pjpeg',
'image/x-x3f', 'image/x-portable-pixmap']
# Override default secret key stored in secret_key.py
# Make this unique, and don't share it with anybody.
# SECRET_KEY = "YOUR_RANDOM_KEY"
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = "en-us"
ADMINS = (
# ("Your Name", "[email protected]"),
)
MANAGERS = ADMINS
# Allow verbose debug error message in case of application fault.
# It's strongly suggested to set it to False if you are serving the
# web application from a web server front-end (i.e. Apache).
DEBUG = True
# A list of strings representing the host/domain names that this Django site
# can serve.
# Values in this list can be fully qualified names (e.g. 'www.example.com').
# When DEBUG is True or when running tests, host validation is disabled; any
# host will be accepted. Thus it's usually only necessary to set it in production.
ALLOWED_HOSTS = ["*"]
# Automatically checks once a day for updates.
# Set it to False to disable update check.
UPDATE_CHECK = True