Skip to content

Commit

Permalink
Merge branch 'release/2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
flibbertigibbet committed Mar 23, 2017
2 parents 9638f2a + b392abf commit 507340a
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## Overview

Brief description of what this PR does, and why it is needed.


### Demo

Optional. Screenshots, `curl` examples, etc.


### Notes

Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else.


## Testing Instructions

* How to test this PR
* Prefer bulleted description
* Start after checking out this branch
* Include any setup required, such as bundling scripts, restarting services, etc.
* Include test case, and expected output


## Checklist
- [ ] No gulp lint warnings
- [ ] No python lint warnings
- [ ] Python tests pass


Connects #XXX
27 changes: 27 additions & 0 deletions python/cac_tripplanner/cac_tripplanner/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
import yaml
import logging.config
BASE_DIR = os.path.dirname(os.path.dirname(__file__))

try:
Expand Down Expand Up @@ -164,6 +165,32 @@
MEDIA_ROOT = '/media/cac/'
MEDIA_URL = '/media/'

# LOGGING CONFIGURATION
LOGGING_CONFIG = None
logging.config.dictConfig({
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'datefmt': '%Y-%m-%d %H:%M:%S %z',
'format': ('[%(asctime)s] [%(process)d] [%(levelname)s]'
' %(message)s'),
},
},
'handlers': {
'console': {
'class': 'logging.StreamHandler',
'formatter': 'verbose',
},
},
'loggers': {
'django': {
'handlers': ['console'],
'level': 'INFO',
}
}
})

# TEMPLATE CONFIGURATION
# See https://docs.djangoproject.com/en/1.8/ref/settings/#templates
TEMPLATES = [
Expand Down

0 comments on commit 507340a

Please sign in to comment.