-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
103 lines (75 loc) · 2.08 KB
/
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import os
PRODUCT_NAME = 'Product name'
PRODUCT_DESCRIPTION = 'This is a description for your product.'
COMPANY = 'Company Inc.'
PROJECT_DIR = os.path.abspath(os.path.dirname('__file__'))
URL = 'http://127.0.0.1:8000'
path = lambda *args: os.path.join(PROJECT_DIR, *args)
DEV = True
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('admin', '[email protected]'),
)
MANAGERS = ADMINS
AUTH_PROFILE_MODULE = 'auth.UserProfile'
LOGIN_REDIRECT_URL = '/home/'
LOGIN_URL = '/'
# Twitter keys
TWITTERAUTH_KEY = ''
TWITTERAUTH_SECRET = ''
# Facebook keys
APP_ID_FACEBOOK = ''
SECRET_KEY_FACEBOOK = ''
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': path('db.sqlite'),
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
TIME_ZONE = 'America/Chicago'
LANGUAGE_CODE = 'en'
SITE_ID = 1
USE_I18N = False
USE_L10N = False
MEDIA_ROOT = path('media')
MEDIA_URL = URL+'/medios'
ADMIN_MEDIA_PREFIX = '/media/'
SECRET_KEY = 'iiybage0^@igkdua+wxk%+jcm*e_po2$8n9$-5h2!2^1#6*3s+'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
)
ROOT_URLCONF = 'urls'
TEMPLATE_DIRS = (
path('auth','templates'),
path('main','templates'),
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',
'auth',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.request',
'django.core.context_processors.auth',
'django.core.context_processors.media',
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.csrf',
'context_processors.default',
)