· 9 years ago · Jan 17, 2017, 08:22 PM
1"""
2This is an example settings/local.py file.
3These settings overrides what's in settings/base.py
4"""
5
6from . import base
7
8
9# To extend any settings from settings/base.py here's an example.
10# If you don't need to extend any settings from base.py, you do not need
11# to import base above
12INSTALLED_APPS = base.INSTALLED_APPS + ('django_nose',)
13
14DATABASES = {
15 'default': {
16 'ENGINE': 'django.db.backends.sqlite3',
17 'NAME': 'db/development.sqlite3',
18 'USER': '',
19 'PASSWORD': '',
20 'HOST': '',
21 'PORT': '',
22 #'OPTIONS': {
23 # 'init_command': 'SET storage_engine=InnoDB',
24 # 'charset' : 'utf8',
25 # 'use_unicode' : True,
26 #},
27 #'TEST_CHARSET': 'utf8',
28 #'TEST_COLLATION': 'utf8_general_ci',
29 },
30 # 'slave': {
31 # ...
32 # },
33}
34
35# Recipients of traceback emails and other notifications.
36ADMINS = (
37 # ('Your Name', 'your_email@domain.com'),
38)
39MANAGERS = ADMINS
40
41EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
42
43CACHES = {
44 'default': {
45 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
46 }
47}
48
49# SECURITY WARNING: don't run with debug turned on in production!
50# Debugging displays nice error messages, but leaks memory. Set this to False
51# on all server instances and True only for development.
52DEBUG = TEMPLATE_DEBUG = True
53
54# Is this a development instance? Set this to True on development/master
55# instances and False on stage/prod.
56DEV = True
57
58# Hosts/domain names that are valid for this site; required if DEBUG is False
59# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
60ALLOWED_HOSTS = []
61
62# SECURITY WARNING: keep the secret key used in production secret!
63# Hardcoded values can leak through source control. Consider loading
64# the secret key from an environment variable or a file instead.
65SECRET_KEY = 's_mtn6p-9&q*!3v^fr#jv67&eeoam3&($k-h^g%g2!bx%+md-e'
66
67# Uncomment these to activate and customize Celery:
68# CELERY_ALWAYS_EAGER = False # required to activate celeryd
69# BROKER_HOST = 'localhost'
70# BROKER_PORT = 5672
71# BROKER_USER = 'django'
72# BROKER_PASSWORD = 'django'
73# BROKER_VHOST = 'django'
74# CELERY_RESULT_BACKEND = 'amqp'
75
76## Log settings
77
78# Remove this configuration variable to use your custom logging configuration
79LOGGING_CONFIG = None
80LOGGING = {
81 'version': 1,
82 'loggers': {
83 'bodegaonline': {
84 'level': "DEBUG"
85 }
86 }
87}
88
89INTERNAL_IPS = ('127.0.0.1')