-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal_settings.py.template
41 lines (37 loc) · 1.18 KB
/
local_settings.py.template
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
# local settings
import logging
import os.path
DIRNAME = os.path.dirname(os.path.abspath(__file__))
ROOT_RELATIVE_URL = '/aaronr/'
ROOT_URL = 'http://www.z-pulley.com' + ROOT_RELATIVE_URL
LOGIN_URL = ROOT_URL + 'accounts/login/'
MEDIA_URL = ROOT_URL + 'media/'
ADMIN_MEDIA_PREFIX = ROOT_URL + 'admin-media/'
#
# Configure app logging for debug purposes. Disabled by default in non-debug environments
#
#
# Modules wishing to use logging should:
# import logging
# logging.getLogger(DESCRIPTOR) # DESCRIPTOR is the logger with the name DESCRIPTOR
# log.debug('message for debug')
# log.warning('message for warning')
#
if 1:
LOGFILE="z_web.log"
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
datefmt='%a, %d %b %Y %H:%M:%S',
filename=os.path.join(DIRNAME,LOGFILE),
filemode='w')
logging.info("Infinity Tool Started")
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'z_web',
'USER': 'aaronr',
'PASSWORD': 'aaronr',
'HOST': '',
'PORT': '',
},
}