settings.py 2.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
"""
Django settings for testproject project.

For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
14

15

16 17 18 19 20 21 22
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'x+)6$acui@od5*0#a=9hnl%0slszm2r!jh5o8i8un-hh!0310$'

# SECURITY WARNING: don't run with debug turned on in production!
23 24
DEBUG = True

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
TEMPLATE_DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'south',
    'django_sshkey',
)
42

43 44 45 46 47 48
MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
49 50
)

51 52 53 54 55 56 57
ROOT_URLCONF = 'testproject.urls'

WSGI_APPLICATION = 'testproject.wsgi.application'


# Database
# https://docs.djangoproject.com/en/1.6/ref/settings/#databases
58 59 60

DATABASES = {
    'default': {
61 62
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
63 64 65
    }
}

66 67
# Internationalization
# https://docs.djangoproject.com/en/1.6/topics/i18n/
68 69 70

LANGUAGE_CODE = 'en-us'

71
TIME_ZONE = 'UTC'
72 73 74 75 76

USE_I18N = True

USE_L10N = True

77
USE_TZ = True
78 79


80 81
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.6/howto/static-files/
82 83 84 85

STATIC_URL = '/static/'

TEMPLATE_DIRS = (
86
  os.path.join(BASE_DIR, 'testproject', 'templates'),
87 88
)

89 90 91 92
import getpass
import socket
DEFAULT_FROM_EMAIL = '%s@%s' % (getpass.getuser(), socket.gethostname())
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'